Composite and Invertible Functions: fog, gof and the Inverse f⁻¹
Updated 15 October 2026 · Fact-checked
The composite gof applies f first and then g, so (gof)(x) = g(f(x)); it needs the range of f inside the domain of g. A function is invertible exactly when it is one-one and onto. To find the inverse, solve y = f(x) for x and then rename y as x.
f acts first, then g, so g∘f jumps from A to C; the inverses undo the steps in reverse order, which works only if f is one-one and onto.
Illustration drawn for QuestionBuddy.
Understand Composite and Invertible Functions
Composite functions. If and , the composite is defined by . Read it from the inside: acts first, then . It exists only when every output of is an allowed input of , that is, the range of lies inside the domain of .
Order matters. With and , but . So in general . Composition is, however, associative: . If and are both one-one, so is ; if both are onto, so is .
Invertible functions. is invertible if there is a function with and , where is the identity function. Then is written , and it undoes : and . The key theorem is: ** is invertible if and only if it is one-one and onto.** One-one guarantees that never has to choose between two answers; onto guarantees that is defined at every point of . The inverse, when it exists, is unique. For a composite, , like taking off socks and shoes in the reverse order.
Finding the inverse. Put , solve for in terms of , and you have . Then replace by to write , and state its domain, which is the co-domain of . The CISCE syllabus restricts this to algebraic functions, so the solving step is always algebra: cross-multiplying, completing the square, or taking a root whose sign is fixed by the domain.
Domain restrictions make functions invertible. is not invertible on , but on onto its inverse is . This is why ISC questions give carefully chosen domains such as and co-domains such as for rational functions.
Graphs. The point lies on the graph of exactly when lies on the graph of . So the graph of is the mirror image of the graph of in the line , and the domain and range swap. When the syllabus asks you to sketch a function and its inverse, draw as a dashed line first, plot two or three points of , reflect them, and join.
A function that is its own inverse satisfies ; its graph is symmetric about . Rational functions such as have this property, which ISC questions often ask you to prove.
Composite and Invertible Functions: formulas to remember
- Composite function
- f acts first. Needs Range(f) ⊆ Domain(g).
- Order matters
- Always check by a numerical value if unsure.
- Associativity
- Brackets can be moved; order cannot.
- Condition for an inverse
- Prove both before finding the inverse unless invertibility is given.
- Defining property
- Use it to check your inverse.
- Inverse of a composite
- Reverse the order, like socks and shoes.
- Graph of the inverse
- Reflect the graph of f in the line y = x.
How to solve Composite and Invertible Functions questions
Most ISC questions here are "find fog/gof" (1 to 2 marks) or "show f is invertible and find f⁻¹" (2 to 5 marks). Use these steps.
- 1For a composite, write the outer function with a blank: . Put the whole inner expression into the blank and simplify.
- 2Check the composite is defined: is the range of the inner function inside the domain of the outer one?
- 3For an inverse, first confirm that is one-one and onto (or note that the question says it is invertible).
- 4Write and solve for . Keep track of excluded values and of the sign of any square root, using the domain.
- 5Write , then replace by to get , and state its domain (the co-domain of ).
- 6Check one value: pick a simple , compute , and confirm that takes it back to .
- 7For "show is its own inverse", compute in one fraction and simplify to .
Composite and Invertible Functions in real life
Each concept, met in an everyday situation. Read the situation, try the problem, then check the solution. The one-line hook is what to remember.
Order of a composite function
Suppose an online shop applies a Rs 100 coupon, , and a tax of 18 per cent, , to a basket worth Rs (with ).
Find and and say in words what each one means. For a basket of Rs 1000, which order is cheaper for the customer, and by how much?
Try it first, then show the solutionSolution
- : coupon first, then tax on the reduced price.
- : tax first, then coupon off the taxed amount.
- At : gives ; gives .
- The difference is rupees, which is the tax on the Rs 100 coupon.
Answer: Coupon first () costs Rs 1062; tax first () costs Rs 1080. Coupon first is cheaper by Rs 18.
Memory hook: At the checkout, the order of coupon and tax changes the bill: gof is not fog.
Inverse of a function as decoding
Imagine two friends who hide a whole number in their messages by sending . To make it harder to crack, they sometimes encode twice, sending .
Find the decoding function and decode the number 151. Find and decode a twice-encoded 1110.
Try it first, then show the solutionSolution
- , so .
- . Check: .
- .
- Decode 1110: . (Equivalently, apply twice: , .)
Answer: ; 151 decodes to 21; , and 1110 decodes to 22.
Memory hook: Encoding is f, decoding is f⁻¹: a code only works if it is a bijection.
Tricks to remember Composite and Invertible Functions
Short memory aids. Say each one aloud once, then use it on a question the same day.
Inside first
In g(f(x)), the function nearest x acts first. Read gof from right to left.
Use it when: Avoiding the common swap of fog and gof.
Swap and solve
Inverse = solve y = f(x) for x, then swap the letters. Domain and range swap too.
Use it when: Every "find f⁻¹(x)" question.
Socks and shoes
You put on socks then shoes, and take off shoes then socks: (gof)⁻¹ = f⁻¹ o g⁻¹.
Use it when: Inverse of a composite.
Mirror y = x
The graph of the inverse is the graph of f seen in a mirror placed along y = x.
Use it when: Sketching a function and its inverse.
Composite and Invertible Functions: solved examples
Ordered from board level to HOTS. Try each one before you open the solution.
Example 1: Inverse of a rational function · 2 marks · Short answerBoard level
The function defined by is invertible. Find .
Try it first, then show the solutionSolution
- Let , with . Then . (½ mark)
- . (½ mark)
- So . Replacing by : , . (1 mark)
- Check: and .
Answer: , . A question of this type was asked in ISC 2024; the examiners noted that candidates left the answer as instead of replacing by .
Example 2: Composites in both orders · 1 mark · MCQBoard level
If and for , then equals:
(a) 0
(b) 16
(c) 25
(d) 34
Try it first, then show the solutionSolution
- .
- .
- .
Answer: (b) 16.
Example 3: A function that is its own inverse · 3 marks · Short answerHarder board level
Let be . Show that and hence find .
Try it first, then show the solutionSolution
- . (½ mark)
- Multiply numerator and denominator by : numerator . (1 mark)
- Denominator . So . (1 mark)
- Since , is invertible and . (½ mark)
Answer: , so .
Example 4: Restricting the domain to get an inverse · 3 marks · Short answerHarder board level
Show that , , is invertible and find .
Try it first, then show the solutionSolution
- One-one: , because both are non-negative. (1 mark)
- Onto: for , is real and non-negative, and . (1 mark)
- Hence is invertible with , that is, for . (1 mark)
Answer: , . The positive root is chosen because the domain of is .
Example 5: Showing gof and fog differ · 2 marks · Short answerHarder board level
For and on , find and , and show they are not equal.
Try it first, then show the solutionSolution
- ; . (1 mark)
- At : but . So . (1 mark)
Answer: , ; they differ, for example at .
Example 6: Inverse by completing the square · 5 marks · Long answerHOTS / competency
Let , , where is the range of . Show that is invertible, find , and use it to find the natural numbers whose images are 31 and 87.
Try it first, then show the solutionSolution
- Complete the square: . (1 mark)
- One-one: . Both and are positive for natural numbers, so and . (1 mark)
- Onto: is defined as the range, so every element of is an image. Hence is bijective and invertible. (1 mark)
- Inverse: (positive root) . So , . (1 mark)
- and . Check: , . (1 mark)
Answer: ; the pre-images of 31 and 87 are 1 and 3.
Where students lose marks in Composite and Invertible Functions
The slips examiners see most often, and what to write instead.
Mistake: Leaving the answer as f⁻¹(y)
The question asks for f⁻¹(x); stopping at f⁻¹(y) leaves the last step undone.
Wrong working
, so .
Right working
, hence , .
Do this: Always finish by replacing y with x and stating the domain.
Usually costs: 1 mark (noted by the ISC 2024 examiners).
Mistake: Composing in the wrong order
gof means f first; students often substitute g into f instead.
Wrong working
.
Right working
.
Do this: Write in words: "g of (f of x)", and fill the inner bracket first.
Usually costs: The whole part.
Mistake: Taking both signs of a square root
An inverse must be a function, so only one root can be kept; the domain decides which.
Do this: Write "positive root, since x ≥ 0" (or the domain condition) beside the step.
Usually costs: 1 mark.
Mistake: Finding an inverse without checking invertibility
If f is not one-one and onto, the algebra can still produce a formula that is not an inverse.
Do this: Unless the question states that f is invertible, prove one-one and onto first.
Usually costs: 1 to 2 marks in a 3- or 5-mark question.
Exam tips
- State the domain of ; it is the co-domain of , and it often carries the last half-mark.
- In "show that " questions, multiply the top and bottom of the big fraction by the inner denominator at once; it keeps the algebra to two lines.
- If a question asks for , you may either invert the composite directly or use ; check one numerical value either way.
- For a sketch of and , label the line and mark at least two pairs of reflected points.
- Keep inverse functions and reciprocals apart: is not .
Practice questions on Composite and Invertible Functions
Write each answer on paper first. Open the hint only if you are stuck, and the answer only when you have finished.
Q1 · 1 mark · MCQBoard level
If is , then is:
(a)
(b)
(c)
(d)Hint
Solve for .
Answer
(b) .
Q2 · 1 mark · Very short answerBoard level
If and , find and .
Hint
Work from the inside out.
Answer
; .
Q3 · 3 marks · Short answerHarder board level
Show that , , is invertible and find .
Hint
Show one-one by cross-multiplying; for onto, solve for and check it is not .
Answer
One-one: . Onto: for , and this is never (that would need ). So , .
Q4 · 3 marks · Short answerHarder board level
Let , . Show that for all . What is ?
Hint
Clear the inner denominator .
Answer
Numerator: . Denominator: . So and .
Q5 · 2 marks · Short answerHarder board level
The graph of meets the graph of its inverse at a point. Find the point.
Hint
For a strictly increasing function, the graphs of f and f⁻¹ can only meet on the line y = x.
Answer
. On : . Check: . The point is .
Q6 · 3 marks · Short answerHOTS / competency
Find all linear functions such that for all real .
Hint
Expand and compare coefficients.
Answer
. So and . gives ; gives . So or .
Q7 · 4 marks · Case-basedHOTS / competency
Case study: Suppose a cab company charges rupees for a ride of km, and during rain applies a surge to the fare .
(i) Find . (1 mark)
(ii) Find the rainy-day fare for a 10 km ride. (1 mark)
(iii) Find and hence the distance of a rainy-day ride that costs Rs 307.50. (1 mark)
(iv) Find and explain why it does not describe the surge correctly. (1 mark)Hint
The surge multiplies the whole fare, so it must act last.
Answer
(i) . (ii) Rs 217.50. (iii) ; km. (iv) multiplies the distance by 1.5 (in effect raising only the per-km rate to Rs 18) and leaves the Rs 25 base charge unsurged, so it gives Rs 205 for 10 km instead of Rs 217.50.
Test your recall
Answer in your head or on paper first, then open the card. Pulling an answer out of memory makes it stick far better than re-reading.
1.What does mean?Show answer
: apply first, then .
2.State the condition for to be invertible.Show answer
must be one-one and onto (bijective).
3.Find for .Show answer
.
4.Write in terms of and .Show answer
.
5.How is the graph of related to that of ?Show answer
It is the reflection of the graph of in the line .
6.If , what is ?Show answer
8, since is the identity.
Composite and Invertible Functions: frequently asked questions
What is the difference between f⁻¹(x) and 1/f(x)?
f⁻¹ is the inverse function, which undoes f. 1/f(x) is the reciprocal of the value of f. For f(x) = 2x, the inverse is x/2, while the reciprocal is 1/(2x).
Why must a function be one-one and onto to have an inverse?
If two inputs shared an output, the inverse would have to send that output back to two places, which a function cannot do. If some element of the co-domain had no pre-image, the inverse would have nowhere to send it. One-one and onto remove both problems.
Is gof always defined when fog is defined?
No. fog needs the range of g inside the domain of f, while gof needs the range of f inside the domain of g. One can hold without the other.
Which functions are included for composites and inverses in the ISC 2027 syllabus?
The CISCE syllabus restricts composite and invertible functions to algebraic functions, so the questions use polynomials, rational functions and roots rather than exponential or logarithmic functions.
How can I check my inverse quickly?
Pick a simple value of x, work out f(x), and put the result into your f⁻¹. You should get back the value you started with. Doing this for one value catches most sign and algebra errors.