Q.Let f(x)=x2 and g(x)=2x+1 be two real functions. Find (f+g)(x), (f−g)(x), (fg)(x), (gf)(x).
Sikkim CbseNCERTSubjective· 3mImportance★★★★★est
40% · 40/100 Questions
✓ Free question
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
Note
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≥0andx=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.
Watch out
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
These are different functions.
Why This Matters
Function operations let you build complex behaviour from simple pieces. A polynomial like 3x2+2x−5 is just a sum of products of simpler functions. A rational function like x−2x+1 is a quotient. And composition is the engine behind everything from transformations of graphs (shifting, stretching) to the chain rule in calculus.
One final exam tip. When asked to find (f+g)(x) or (f∘g)(x), always write down the domains explicitly. Many marks are lost by forgetting that the quotient excludes zeros of the denominator, or that composition requires the inner output to be valid for the outer function.
Operations on functions, including sum, difference, product, quotient, and composition, are covered in the NCERT Class 11-12 Mathematics curriculum on Relations and Functions, and "composition of functions formula and domain" is a frequently searched topic for CBSE board and JEE Main preparation. Correctly tracking the domain restrictions in these operations is also a common source of lost marks flagged in "functions important questions" for competitive exams.
Concept: Function Operations — adding, subtracting, multiplying, and dividing two functions pointwise.
The results are (f+g)(x)=x2+2x+1, (f−g)(x)=x2−2x−1, (fg)(x)=2x3+x2, and (gf)(x)=2x+1x2 for x=−21.
Function operations combine two functions pointwise: add, subtract, multiply, or divide their outputs for the same input. For f(x)=x2 and g(x)=2x+1, we get (f+g)(x)=x2+2x+1, (f−g)(x)=x2−2x−1, (fg)(x)=2x3+x2, and (gf)(x)=2x+1x2 (with x=−21).
When you have two functions f and g, you can combine them using ordinary arithmetic — but applied pointwise. That means for each x in the domain, you evaluate f(x) and g(x) separately, then perform the operation. The result is a new function whose rule is that combination.
This is exactly like adding or multiplying numbers, except the numbers come from plugging x into each function. The only catch is division: you must exclude any x that makes the denominator zero, because division by zero is undefined.
Let’s work through each operation step by step.
Addition: (f+g)(x)
By definition, (f+g)(x)=f(x)+g(x).
So:
(f+g)(x)=x2+(2x+1)=x2+2x+1.
Notice that x2+2x+1 factors as (x+1)2, but the simplified form is perfectly fine.
Subtraction: (f−g)(x)
Here (f−g)(x)=f(x)−g(x).
(f−g)(x)=x2−(2x+1)=x2−2x−1.
No further simplification is needed — it’s a quadratic expression.
Multiplication: (fg)(x)
The product is (fg)(x)=f(x)⋅g(x).
(fg)(x)=x2⋅(2x+1)=2x3+x2.
Just distribute x2 across the binomial.
Division: (gf)(x)
For division, (gf)(x)=g(x)f(x), provided g(x)=0.
(gf)(x)=2x+1x2.
Now, g(x)=2x+1=0 when x=−21. So the domain of this new function is all real numbers except −21.
Watch out
A common mistake is to forget the domain restriction for division. The expression 2x+1x2 is not defined at x=−21, so you must explicitly state that x=−21 when writing the quotient function.
Tip
Notice that (f+g)(x)=x2+2x+1=(x+1)2. This is a perfect square — a neat observation, but not required for the answer. It can help you check your work quickly.
✓Final answer
The results are (f+g)(x)=x2+2x+1, (f−g)(x)=x2−2x−1, (fg)(x)=2x3+x2, and (gf)(x)=2x+1x2 for x=−21.