An Initiative by SAARTHI IAS
Maarg Manthan · Topic 23.4

Composite Functions and Inverse Functions

Quantitative Aptitude › Set Theory, Functions and Graphs · Topic 23.4

A composite function applies one function to the output of another, written (f ∘ g)(x) = f(g(x)). The inverse function f⁻¹ reverses f, so f⁻¹(f(x)) = x, and it exists only when f is one-one and onto.

Share:
Composite Functions and Inverse Functions - Quantitative Aptitude - MaargX UPSC Maarg Manthan

Quick Answer

A composite function applies one function to the output of another, written (f ∘ g)(x) = f(g(x)). The inverse function f⁻¹ reverses f, so f⁻¹(f(x)) = x, and it exists only when f is one-one and onto.

At a Glance

  • Composite (f ∘ g)(x) = f(g(x))
  • Order g acts first, then f
  • Inverse Swap x and y, solve for y
  • Needs One-one and onto
  • Property f(f⁻¹(x)) = x

Where Does It Fit?

This topic follows Functions – Domain, Range and Types of Functions (One-One, Onto, Bijective), because an inverse exists only for bijective functions. Graphs of the functions are in Graphs of Linear, Quadratic and Modulus Functions.

What Is a Composite Function?

In short: in f(g(x)), first apply g to x, then apply f to the result.

f(x) g(x) f(g(x)) g(f(x))
2x + 1 x² 2x² + 1 (2x + 1)²
x + 3 2x – 1 2x + 2 2x + 5
x² x + 1 (x + 1)² x² + 1

Composition is generally not commutative, so f(g(x)) and g(f(x)) are different. It is associative: (f ∘ g) ∘ h = f ∘ (g ∘ h).

How Do You Find the Inverse of a Function?

In short: write y = f(x), solve for x in terms of y, then replace y by x.

  • Step 1: write y = f(x).
  • Step 2: solve for x.
  • Step 3: swap the symbols x and y.
  • Step 4: check that f(f⁻¹(x)) = x.
f(x) f⁻¹(x)
3x – 5 (x + 5)/3
(x – 4)/2 2x + 4
(2x + 1)/(x – 3) (3x + 1)/(x – 2)
x³ cube root of x

What Are the Key Properties?

In short: inverse functions undo each other, and the inverse of a composite reverses the order.

Properties

  • f⁻¹(f(x)) = x and f(f⁻¹(x)) = x.
  • (f ∘ g)⁻¹ = g⁻¹ ∘ f⁻¹.
  • The graph of f⁻¹ is the reflection of the graph of f in the line y = x.
  • A function that is not one-one has no inverse over its whole domain.

The reflection idea is used with graphs in Graphs of Linear, Quadratic and Modulus Functions.

Solved Examples

Example 1

Question: If f(x) = 2x + 1 and g(x) = x², find f(g(2)) and g(f(2)).

  1. g(2) = 4, so f(g(2)) = f(4) = 9.
  2. f(2) = 5, so g(f(2)) = g(5) = 25.

Answer: f(g(2)) = 9 and g(f(2)) = 25.

Example 2

Question: Find the inverse of f(x) = 3x – 5 and f⁻¹(10).

  1. y = 3x – 5, so x = (y + 5)/3.
  2. f⁻¹(x) = (x + 5)/3.
  3. f⁻¹(10) = 15/3 = 5.

Answer: f⁻¹(x) = (x + 5)/3 and f⁻¹(10) = 5.

Example 3

Question: Find the inverse of f(x) = (2x + 1)/(x – 3).

  1. y(x – 3) = 2x + 1, so xy – 3y = 2x + 1.
  2. x(y – 2) = 3y + 1, so x = (3y + 1)/(y – 2).

Answer: f⁻¹(x) = (3x + 1)/(x – 2).

Example 4

Question: If f(x) = x + 3 and g(x) = 2x – 1, find (f ∘ g)(4) and (g ∘ f)(4).

  1. g(4) = 7, so f(g(4)) = 10.
  2. f(4) = 7, so g(f(4)) = 13.

Answer: (f ∘ g)(4) = 10 and (g ∘ f)(4) = 13, so composition is not commutative.

Example 5

Question: If f(x) = x/(1 – x), find f(f(x)).

  1. f(f(x)) = f(x)/(1 – f(x)).
  2. 1 – f(x) = (1 – 2x)/(1 – x).
  3. So f(f(x)) = [x/(1 – x)] / [(1 – 2x)/(1 – x)] = x/(1 – 2x).

Answer: f(f(x)) = x/(1 – 2x).

Shortcuts and Tricks

  • Work from the inside: evaluate g first in f(g(x)).
  • To find the inverse of a linear function a x + b, use (x – b)/a.
  • For a fraction (ax + b)/(cx + d), cross-multiply and collect the x terms.
  • Check an inverse by substituting a value and returning to the start.
  • f(f(x)) = x means f is its own inverse, as in f(x) = 1/x.

Common Mistakes

  • Applying f first in f(g(x)); g is applied first.
  • Assuming f(g(x)) = g(f(x)).
  • Confusing the inverse f⁻¹ with the reciprocal 1/f.
  • Forgetting to swap x and y at the end.
  • Finding an inverse of a function that is not one-one.

Practice Questions

  1. If f(x) = x + 2 and g(x) = x², find f(g(3)).
  2. For the same functions, find g(f(3)).
  3. Find the inverse of f(x) = (x – 4)/2.
  4. If f(x) = 2x + 3, find f⁻¹(7).
  5. If f(x) = 2x + 1, find f(f(x)).
  6. If f(x) = 1/x, find f(f(x)).

Answers: 1) 11; 2) 25; 3) 2x + 4; 4) 2; 5) 4x + 3; 6) x.

Why Is This Topic Important?

What Comes Next?

The next topic is Graphs of Linear, Quadratic and Modulus Functions, which draws the graphs of linear, quadratic and modulus functions.

Key Terms and Formulas

  • Composition Applying one function after another
  • Inverse The function that reverses another
  • Identity function f(x) = x
  • Commutative Order does not matter

Exam Corner

Points to Remember

  • (f ∘ g)(x) = f(g(x)); g acts first.
  • Composition is not commutative.
  • The inverse exists only for bijective functions.
  • (f ∘ g)⁻¹ = g⁻¹ ∘ f⁻¹.

Do Not Confuse With

  • f(g(x)) vs g(f(x)) Different in general because the inner function changes.
  • Inverse vs reciprocal f⁻¹ reverses the function; 1/f is the reciprocal of its value.
  • f(f(x)) vs f²(x) The first is composition; the second may mean squaring.

Memory Hook

Inside out for composition; swap and solve for the inverse.

GS Relevance

Composite and inverse functions for SSC CGL and CAT quantitative aptitude: finding f(g(x)), the inverse of a linear or fractional function and properties.

Frequently Asked Questions

What is a composite function?

A composite function applies one function to the output of another, written f of g of x. The inner function g acts first on x, and then the outer function f acts on the result. For f of x equal to 2x plus 1 and g of x equal to x squared, f of g of 2 is 9.

Is f(g(x)) equal to g(f(x))?

No, composition is generally not commutative, so f of g of x and g of f of x usually differ. For f of x equal to x plus 3 and g of x equal to 2x minus 1, f of g of 4 is 10 while g of f of 4 is 13.

How do you find the inverse of a function?

Write y equal to f of x, solve the equation for x in terms of y, and then swap the symbols x and y. For f of x equal to 3x minus 5, solving gives x equal to y plus 5 over 3, so the inverse is x plus 5 over 3.

When does an inverse function exist?

An inverse function exists only when the function is one-one and onto, which means it is bijective. If two inputs share an output, the reverse mapping would not be a function, so x squared on all real numbers has no inverse unless the domain is restricted.

What is the inverse of a composite function?

The inverse of a composite function reverses the order of the inverses: the inverse of f of g equals g inverse of f inverse. The last function applied is undone first, in the same way that socks are removed after shoes when reversing getting dressed.

PYQ Practice — Statement Analysis

1 (f ∘ g)(x) = f(g(x)).
True

The inner function g is applied first.

2 f(g(x)) = g(f(x)) for all functions f and g.
False

Composition is generally not commutative.

3 The inverse of f(x) = 3x - 5 is (x + 5)/3.
True

Solve y = 3x - 5 for x.

4 Every function has an inverse function over its whole domain.
False

Only bijective functions do.

Share: