Q.Let f(x)=x and g(x)=x be two functions defined in the domain R+∪{0}. Find
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 14-day free trial to unlock the full solution →Concept understanding — Function Operations
Function Operations: Combining Machines
Think of a function as a machine. You feed it an input (say, a number x), it does something, and out comes an output f(x). Now imagine you have two such machines, f and g. Function operations are simply ways to hook these machines together — to add, subtract, multiply, or divide their outputs, or to feed one machine's output into the other.
The core idea is simple: if you can do arithmetic with numbers, you can do arithmetic with functions. The only catch is that both functions must be "ready to work" on the same input at the same time.
The Four Arithmetic Operations
Let f and g be two functions. For any input x that belongs to both their domains (the set of numbers each can accept), we define:
| Operation | Notation | What it means |
|---|---|---|
| Sum | (f+g)(x) | f(x)+g(x) |
| Difference | (f−g)(x) | f(x)−g(x) |
| Product | (f⋅g)(x) | f(x)⋅g(x) |
| Quotient | (gf)(x) | g(x)f(x), provided g(x)=0 |
The domain of the new function is the intersection of the domains of f and g — the numbers both machines can handle. For the quotient, you must also exclude any x where g(x)=0, because division by zero is undefined.
Example. Let f(x)=x (domain: x≥0) and g(x)=x−1 (domain: all real numbers). Then:
- (f+g)(x)=x+x−1, domain: x≥0.
- (gf)(x)=x−1x, domain: x≥0 and x=1.
Composition: Feeding One Machine into Another
This is the most powerful operation. Instead of adding outputs side by side, you take the output of one function and feed it as the input to the other.
(f∘g)(x)=f(g(x))
Read "f composed with g". You do g first, then f on the result.
Intuition. Suppose g is a machine that converts Celsius to Fahrenheit, and f is a machine that converts Fahrenheit to Kelvin. Then f∘g converts Celsius directly to Kelvin — one combined machine.
Domain trap. For f(g(x)) to make sense, two conditions must hold:
- x must be in the domain of g (so g(x) exists).
- g(x) must be in the domain of f (so f can accept it).
So the domain of f∘g is: all x in the domain of g such that g(x) is in the domain of f.
Composition is not commutative. f∘g is almost never the same as g∘f. For example, if f(x)=x2 and g(x)=x+1, then:
- (f∘g)(x)=(x+1)2=x2+2x+1
- (g∘f)(x)=x2+1 …
The key idea here is Function Operations, which define new functions from existing ones by applying arithmetic operations. The domain of the resulting function is the intersection of the domains of the original functions, with an additional restriction for division.
Given f(x)=x and g(x)=x, both defined on the domain R+∪{0} (i.e., x≥0).
- (f+g)(x): This is defined as f(x)+g(x). (f+g)(x)=x+x. The domain is R+∪{0}.
- (f−g)(x): This is defined as f(x)−g(x). (f−g)(x)=x−x. The domain is R+∪{0}.
- (fg)(x): This is defined as f(x)⋅g(x). (fg)(x)=x⋅x=x1/2⋅x1=x3/2. The domain is R+∪{0}.
- (gf)(x): This is defined as g(x)f(x), provided g(x)=0. (gf)(x)=xx=x1x1/2=x−1/2=x1. …
Function operations combine two functions f(x) and g(x) to form new functions like (f+g)(x), (f−g)(x), (fg)(x), and (gf)(x). The domain of the resulting function is the intersection of the domains of f and g, with an additional restriction for division that the denominator cannot be zero.
- (f+g)(x)=x+x for x≥0.
- (f−g)(x)=x−x for x≥0.
- (fg)(x)=x3/2 for x≥0.
- (gf)(x)=x1 for x>0.
When we talk about function operations, we are essentially creating new functions by combining existing ones using basic arithmetic operations: addition, subtraction, multiplication, and division. This is very similar to how we combine numbers. If you have two numbers, say a and b, you can find their sum a+b, difference a−b, product ab, and quotient a/b. Functions work in the same way, but instead of operating on single numbers, we operate on their outputs for a given input x.
The crucial aspect to remember is the domain of these new functions. For any operation involving f(x) and g(x), the new function can only be defined for values of x where both f(x) and g(x) are defined. This means the domain of the resulting function is the intersection of the domains of f and g. For division, there's an additional restriction: the denominator function g(x) cannot be zero.
Let's apply this to the given functions f(x)=x and g(x)=x.
The problem states that both functions are defined in the domain R+∪{0}, which means x≥0.
-
Determine the common domain of f(x) and g(x).
The domain of f(x)=x is x≥0.
The domain of g(x)=x is given as x≥0.
The intersection of these two domains is x≥0. This will be the domain for the sum, difference, and product functions.
-
(i) Find (f+g)(x).
The sum of two functions (f+g)(x) is defined as f(x)+g(x).
Substitute the given expressions for f(x) and g(x):
(f+g)(x)=x+x
The domain for (f+g)(x) is the common domain of f and g, which is x≥0.
-
(ii) Find (f−g)(x).
The difference of two functions (f−g)(x) is defined as f(x)−g(x).
Substitute the given expressions for f(x) and g(x):
(f−g)(x)=x−x
The domain for (f−g)(x) is the common domain of f and g, which is x≥0.
-
(iii) Find (fg)(x).
The product of two functions (fg)(x) is defined as f(x)⋅g(x).
Substitute the given expressions for f(x) and g(x):
(fg)(x)=x⋅x
We can simplify this expression using exponent rules: x=x1/2 and x=x1.
(fg)(x)=x1/2⋅x1=x(1/2)+1=x3/2
The domain for (fg)(x) is the common domain of f and g, which is x≥0.
-
(iv) Find (gf)(x). …
Showing the 12 most recent of 15 on this concept.
- AP EAPCET 2026Set eng-2026-05-13-AN1 markMCQQ.If f:R→R and g:R→R are two functions defined by f(x)=∣x∣ and g(x)=[x] then {x∈R∣(gof)(x)=(fog)(x)}= (Here [x] is the greatest integer function) (A) R (B) [0,∞) (C) [0,∞)∪{n∣−n∈N} (D) Z
›Reveal solutionSolution
The key idea is to compare the composite functions g(f(x)) and f(g(x)) for all real x, using the definitions of absolute value and greatest integer. The equality holds exactly for x≥0 and for negative integers, which matches option (C).
We are given:
- f(x)=∣x∣ (absolute value)
- g(x)=[x] (greatest integer less than or equal to x)
We need the set of all x∈R such that (g∘f)(x)=(f∘g)(x), i.e.
g(f(x))=f(g(x)).
Concept and Intuition
The absolute value makes any input non-negative, while the greatest integer function "rounds down" to the nearest integer.
When we compose them in different orders, we get different behaviors:
- g(f(x)): First take absolute value (so result is ≥0), then take greatest integer. So g(f(x))=[∣x∣], which is always a non-negative integer.
- f(g(x)): First take greatest integer (could be negative, zero, or positive), then take absolute value. So f(g(x))=∣[x]∣, which is also a non-negative integer, but the inner value can be negative.
The equality will fail when the two processes give different integers. The main source of difference is when x is negative but not an integer: then ∣x∣ is positive, but [x] is negative, and their absolute values differ.
Step-by-step reasoning
- Write the composites explicitly For any real x:
(g∘f)(x)=g(f(x))=[∣x∣]
(f∘g)(x)=f(g(x))=∣[x]∣
-
Consider cases based on x
Case 1: x≥0
Then ∣x∣=x, so [∣x∣]=[x].
Also [x]≥0, so ∣[x]∣=[x].
Hence both composites equal [x], so equality holds for all x≥0.
Case 2: x<0
Here ∣x∣=−x>0, so [∣x∣]=[−x], which is a non-negative integer.
Meanwhile [x] is negative or zero, so ∣[x]∣=−[x] (since [x]≤0).
We need:
[−x]=−[x]
Subcase 2a: x is a negative integer
Let x=−n where n∈N (positive integer). Then:
- [x]=−n
- ∣x∣=n, so [∣x∣]=[n]=n
- ∣[x]∣=∣−n∣=n So equality holds for all negative integers.
Subcase 2b: x is negative but not an integer …
- AP EAPCET 2025Set eng-2025-05-21-FN1 markMCQQ.If f:R→R and g:R→R are two functions defined by f(x)=2x−3 and g(x)=5x2−2, then the least value of the function (g∘f)(x) is (A) −2 (B) 2 (C) −4 (D) 4
›Reveal solutionSolution
Composing g with f gives 5(2x−3)2−2, a perfect-square expression shifted down by 2; its minimum occurs when the square term is zero, giving least value −2.
Concept and Intuition
When a composite function reduces to (constant)×(something)2 + (constant), the squared term is always ≥0, so the whole expression is minimised exactly when the square vanishes. This is the same idea as completing the square to find a parabola's vertex value — here it's handed to us already in squared form via the composition.
Step-by-Step Solution
- Compute the composite: (g∘f)(x)=g(f(x))=5[f(x)]2−2=5(2x−3)2−2.
- Note (2x−3)2≥0 for every real x, with equality when 2x−3=0⇒x=3/2.
- Therefore 5(2x−3)2≥0, so (g∘f)(x)=5(2x−3)2−2≥−2. …
- AP EAPCET 2024Set eng-2024-05-18-FN1 markMCQQ.If f(x)=x−1 and g{f(x)}=x+2x+1 then g(x)= (A) (x+2)2 (B) (x−2)2 (C) (x+2)2 (D) (x−2)2
›Reveal solutionSolution
This tests recovering the function g from a composite expression by substituting t=f(x) and rewriting everything in terms of t; the algebraic simplification x+2x+1=(x+1)2 is the key step, giving g(x)=(x+2)2.
Concept and Intuition
When we are given g(f(x)) as an explicit expression in x, the standard technique to find g itself is to substitute t=f(x), express x (or, more usefully here, x) in terms of t, and rewrite the given expression for g(f(x)) purely in terms of t. Whatever expression in t results is exactly g(t), and renaming t→x gives the formula for g.
Step-by-Step Solution
- Let t=f(x)=x−1. Then x=t+1.
- The given composite is g(f(x))=x+2x+1. Notice that x+2x+1=(x)2+2x+1=(x+1)2, a perfect square.
- Substitute x+1=(t+1)+1=t+2: so g(f(x))=(t+2)2.
- Since g(f(x))=g(t) by definition (as t=f(x)), we get g(t)=(t+2)2.
- Renaming the variable, g(x)=(x+2)2.
Common Mistakes …
- AP EAPCET 2024Set eng-2024-05-22-AN1 markMCQQ.Define the functions f, g and h from R to R such that f(x)=x2−1, g(x)=x2+1 and h(x)={0,x,if x≤0if x≥0 consider the following statements (I) fog is invertible (II) h is an identity function (III) fog is not invertible (IV) (hofog)x=x2 Then which one of the following is true? (A) II, IV (B) II, III (C) III, IV (D) I, II
›Reveal solutionSolution
Composing f and g collapses to x2, which is not injective (so fog is not invertible, ruling in III and out I); h only matches the identity for x≥0 (ruling out II); and h(fog(x))=h(x2)=x2 since squares are never negative (ruling in IV).
Concept and Intuition
A function is invertible on its whole stated domain/codomain (R→R here) only if it is a bijection there — in particular it must be one-one. Composing two functions doesn't automatically produce something invertible even if the pieces individually look nice; here g squashes distinct inputs to the same output via f's squaring afterward. Also, a piecewise function like h only counts as "the identity function" if it equals x everywhere in its domain — matching on just one branch isn't enough.
Step-by-Step Solution
- Compute g(x)=x2+1, then f(g(x))=(g(x))2−1=(x2+1)−1=x2. So fog(x)=x2 for all real x.
- Check injectivity of fog: fog(2)=4=fog(−2), so it is not one-one on R→R, hence not invertible. This makes statement I false and statement III true.
- Check h: for x≤0, h(x)=0=x (except at x=0); for x≥0, h(x)=x. Since h fails to equal x for all negative x, h is not the identity function on R. Statement II is false. …
- AP EAPCET 2023Set eng-2023-05-15-FN1 markMCQQ.If f(x)=x3−x and g(x)=sin2x, then f(g(12π))= (A) 0 (B) 1 (C) −83 (D) 2
›Reveal solutionSolution
Compute the inner function first: g(π/12)=sin(π/6)=1/2. Then apply f: f(1/2)=1/8−1/2=−3/8.
Concept and Intuition
This is a direct function-composition evaluation, f(g(x)): evaluate the inner function g at the given point first, then substitute that numerical result into the outer function f. No special identities are needed beyond knowing sin(π/6)=1/2, a standard angle value.
Step-by-Step Solution
- Compute the inner function: g(12π)=sin(2⋅12π)=sin(6π).
- Recall the standard value: sin(6π)=21.
- Substitute this into f: f(21)=(21)3−21.
- Compute: (21)3=81, so f(21)=81−21=81−84=−83. …
- AP EAPCET 2023Set eng-2023-05-18-AN1 markMCQQ.If f:R∖{0}→R is defined by f(x)=x+x1, then the value of (f(x))2= (A) f(x)+f(0) (B) f(x2)+f(2) (C) f(x3)+f(0) (D) f(x2)+f(1)
›Reveal solutionSolution
Squaring f(x)=x+1/x gives x2+1/x2+2, which is f(x2) plus the constant 2; since f(1)=2, this equals f(x2)+f(1).
Concept and Intuition
This is a classic "recognize the pattern" functional-equation question: instead of guessing among the options, just compute (f(x))2 explicitly using algebra, then see which combination of f-values reproduces exactly that expression. The key algebraic fact used is (a+b)2=a2+2ab+b2 with a=x, b=1/x, so the cross term 2ab=2 is a constant, and a2+b2=x2+1/x2=f(x2).
Step-by-Step Solution
- f(x)=x+x1, so (f(x))2=(x+x1)2.
- Expand: (x+x1)2=x2+2⋅x⋅x1+x21=x2+2+x21.
- Group: x2+x21 is exactly f(x2) (substitute x2 in place of x in the definition of f): f(x2)=x2+x21.
- So (f(x))2=f(x2)+2.
- Compute f(1)=1+11=1+1=2. …
- AP EAPCET 2023Set eng-2023-05-18-FN1 markMCQQ.If f:R→R and g:R→R are defined by f(x)=x3−x and g(x)=sin2x, then the value of x∈(0,2π) that satisfy f(g(x))>0, lie in the interval (A) (2π,π) (B) (0,2π)∪(2π,π) (C) (2π,43π)∪(43π,π) (D) (−2π,2π)
›Reveal solutionSolution
f(g(x))>0 requires sin2x strictly between −1 and 0; within (π/2,π) that holds everywhere except the single point x=3π/4 where sin2x=−1 exactly.
Concept and Intuition
Since f(t)=t³−t=t(t−1)(t+1) factors into three linear terms, a sign chart on t immediately shows where f(t)>0. Because t=sin2x is confined to [−1,1], only the middle interval of the sign chart (t between −1 and 0) is achievable, and we must also throw out the boundary t=−1 (a strict inequality).
Step-by-Step Solution
- f(t) = t(t−1)(t+1). Test sign in each interval determined by roots −1, 0, 1:
- t∈(−1,0): (−)(−)(+) = + → f(t)>0.
- t∈(0,1): (+)(−)(+) = − → f(t)<0.
- Since t=sin2x∈[−1,1], f(t)>0 ⟺ sin2x ∈ (−1, 0).
- Look for x where sin2x is negative: this happens when 2x lies in (π, 2π) modulo 2π. Restricting to x in (π/2, π) (2x ∈ (π,2π)), sin2x < 0 throughout. …
- f(t) = t(t−1)(t+1). Test sign in each interval determined by roots −1, 0, 1:
- AP EAPCET 2022Set eng-2022-07-04-FN1 markMCQQ.If f(x)=2−x2 and g(x)=log(1−x) are two real valued functions then the domain of the function (f+g)(x) is (A) [−2,2] (B) [−2,1) (C) (−∞,1) (D) (1,2]
›Reveal solutionSolution
The domain of a sum of two functions is the intersection of their individual domains. Here that intersection is [−2,1), since the square-root's domain caps at 2 but the logarithm's domain caps (more tightly, on the right) at 1.
Concept and Intuition
For (f+g)(x)=f(x)+g(x) to be defined, BOTH f(x) and g(x) must individually be defined at x — so the domain of the sum is always Dom(f)∩Dom(g), never a union.
Step-by-Step Solution
- f(x)=2−x2 needs the radicand non-negative: 2−x2≥0⇒x2≤2⇒−2≤x≤2. So Dom(f)=[−2,2].
- g(x)=log(1−x) needs the argument strictly positive: 1−x>0⇒x<1. So Dom(g)=(−∞,1).
- Domain of (f+g) = [−2,2]∩(−∞,1).
- Since 2≈1.414 is greater than 1, the upper bound from f's domain (2) is irrelevant — the tighter constraint on the right comes from g, capping at x<1 (excluded). …
- AP EAPCET 2022Set eng-2022-07-05-FN1 markMCQQ.Let f:R−{2−1}→R be defined by f(x)=2x+1x−2. If α,β satisfy the equation f(f(x))=−x, then 4(α2+β2)= (A) 17 (B) 12 (C) 24 (D) 34
›Reveal solutionSolution
Composing f with itself and solving f(f(x))=−x reduces to a quadratic whose roots' sum-of-squares, scaled by 4, equals 17.
Concept and Intuition
Composition-of-functions problems like this reduce to algebraic manipulation: compute f(f(x)) explicitly as a single rational function, then solve the resulting equation. Once you have a quadratic in x, symmetric functions of its roots (sum and product, via Vieta's formulas) let you compute α2+β2 without solving for the roots individually.
Step-by-Step Solution
- Let y=f(x)=2x+1x−2. Compute f(y)=2y+1y−2.
- Numerator: y−2=2x+1x−2−2=2x+1(x−2)−2(2x+1)=2x+1−3x−4.
- Denominator: 2y+1=2x+12(x−2)+1=2x+12(x−2)+(2x+1)=2x+14x−3.
- So f(f(x))=4x−3−3x−4.
- Set f(f(x))=−x: 4x−3−3x−4=−x⇒−3x−4=−x(4x−3)=−4x2+3x.
- Rearranging: 4x2−6x−4=0⇒2x2−3x−2=0.
- By Vieta's formulas for this quadratic, α+β=23, αβ=2−2=−1. …
- AP EAPCET 2022Set eng-2022-07-08-FN1 markMCQQ.Let f(x)=x+3x+1 and g(x)=x+32−x be two real valued functions. Then the domain of f/g is (A) (−∞,−3)∪[−1,∞) (B) [−1,2) (C) (−3,2) (D) (−∞,−3)∪[2,∞)
›Reveal solutionSolution
Finding where both square roots are defined and then excluding the point where the denominator g(x) vanishes gives the domain of f/g as [−1,2).
Concept and Intuition
For a quotient of functions f/g to be defined at a point, that point must lie in the domain of f, in the domain of g, AND satisfy g(x)=0 (since we cannot divide by zero). Since f and g here are square roots, each requires its radicand (the expression under the root) to be non-negative, which itself requires careful sign analysis around the zeros of numerator and denominator.
Step-by-Step Solution
- Domain of f: need x+3x+1≥0. The critical points are x=−1 (numerator zero, included since 0=0 is defined) and x=−3 (denominator zero, excluded). Sign analysis: for x<−3, both (x+1) and (x+3) are negative → ratio positive (valid); for −3<x<−1, numerator negative, denominator positive → ratio negative (invalid); for x≥−1, both non-negative → ratio ≥0 (valid). So domain(f)=(−∞,−3)∪[−1,∞).
- Domain of g: need x+32−x≥0. Critical points x=2 (numerator zero, included) and x=−3 (denominator zero, excluded). For x<−3: numerator positive, denominator negative → ratio negative (invalid). For −3<x≤2: numerator ≥0 (until x=2), denominator positive → ratio ≥0 (valid). For x>2: numerator negative, denominator positive → invalid. So domain(g)=(−3,2]. …
- AP EAPCET 2021Set eng-2021-08-19-FN1 markMCQQ.Let f:R→R and g:R→R be defined by f(x)=2x+1 & g(x)=x2−2 determine (gof)(x)= (A) 2x2−3 (B) 4x2+4x−1 (C) 4x2+4x+1 (D) 2x2−4
›Reveal solutionSolution
Substitute f(x) into g and expand: (g∘f)(x)=4x2+4x−1.
Concept and Intuition
Function composition (g∘f)(x) means 'apply f first, then apply g to the result' — i.e., g(f(x)).
Step-by-Step Solution
- f(x)=2x+1.
- g(x)=x2−2, so g(f(x))=(f(x))2−2=(2x+1)2−2.
- Expand (2x+1)2=4x2+4x+1.
- So g(f(x))=4x2+4x+1−2=4x2+4x−1.
Common Mistakes …
- AP EAPCET 2021Set eng-2021-08-19-FN1 markMCQQ.If f is a function defined on (0,1) by f(x)=min{x−[x],−x−[x]}, then (fofofof)(x) is equal to ______ ( [.] greatest integer function ) (A) x (B) −x (C) 4x (D) 2x
›Reveal solutionSolution
Tracking this piecewise-linear map through four successive applications (using the general floor function as each intermediate value moves out of (0,1)) shows it returns exactly to x.
Concept and Intuition
f(t)=min(t−[t],−t−[t]) is naturally defined for all real t via the floor function [t] (greatest integer ≤t). Even though the problem states f on (0,1), applying f repeatedly sends the argument outside (0,1), so we must evaluate the same formula there using the appropriate integer part. Doing this carefully reveals a period-4 orbit that returns to the starting value.
Step-by-Step Solution
- First application, x∈(0,1): [x]=0, so f(x)=min(x−0,−x−0)=min(x,−x). Since x>0, −x<0<x, so f(x)=−x.
- Second application, evaluate f(−x) where −x∈(−1,0): [−x]=−1. So f(−x)=min((−x)−(−1), −(−x)−(−1))=min(1−x, x+1). Since x∈(0,1), 1−x∈(0,1) and x+1∈(1,2), so the minimum is 1−x. Thus f(f(x))=1−x.
- Third application, evaluate f(1−x) where 1−x∈(0,1): [1−x]=0. So f(1−x)=min(1−x, −(1−x))=min(1−x, x−1). Since x−1<0<1−x, the minimum is x−1. Thus f(f(f(x)))=x−1. …
🎓Unlock everything free for 14 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.