∑ MockTestKart
⌂

0 0 0
Complete Formula Lesson

Composition & Inverse Functions: Complete Formula Lesson

This lesson explains composition and inverse functions with clear formulas, worked examples, and common traps. You will learn to evaluate f(g(x)), find inverses, verify them, and apply shortcuts safely.

On this page
  1. 1. Function Notation and Composition Basics
  2. 2. Evaluating Composite Functions
  3. 3. Inverse Functions: Definition and Conditions
  4. 4. Finding the Inverse Algebraically
  5. 5. Composition with Inverses and Identity
  6. 6. Domain and Range in Composition and Inverses
  7. 7. Shortcuts and Algebraic Techniques
  8. 8. Common Traps and How to Avoid Them
  9. Worked examples
  10. Common mistakes
  11. Frequently asked questions

Composition and inverse functions are two fundamental operations on functions. Composition combines two functions by feeding the output of one into another: (f∘g)(x)=f(g(x)). The inverse function reverses a one-to-one function: if f(a)=b, then f⁻¹(b)=a. Mastery requires careful attention to domains, ranges, and order of operations. This lesson builds from definitions to worked examples, shortcuts, and common mistakes, with structured visuals to reinforce learning.

Key Formulas
Composition(f∘g)(x)=f(g(x))
Inverse Propertyf(f⁻¹(x))=x and f⁻¹(f(x))=x
Linear Inversef(x)=ax+b ⇒ f⁻¹(x)=(x-b)/a
Domain of CompositeDom(f∘g) = {x | x∈Dom(g) and g(x)∈Dom(f)}
AspectComposition (f∘g)Inverse f⁻¹
Definitionf(g(x))Reverses f: f(a)=b ⇒ f⁻¹(b)=a
ExistenceAlways defined if domains allowOnly if f is one-to-one
Domainx in Dom(g) and g(x) in Dom(f)Range of f
RangeSubset of Range(f)Domain of f
Key PropertyNot commutativef(f⁻¹(x))=x
1Start with x
2Apply inner function g: g(x)
3Apply outer function f: f(g(x))
4Result is (f∘g)(x)

1. Function Notation and Composition Basics

A function f maps each input x to exactly one output f(x). Composition (f∘g)(x) means apply g first, then f. The notation f(g(x)) is read 'f of g of x'. The domain of f∘g consists of all x in the domain of g such that g(x) is in the domain of f. Composition is not commutative: f(g(x)) and g(f(x)) are generally different. For example, if f(x)=2x+3 and g(x)=x², then f(g(2))=f(4)=11, while g(f(2))=g(7)=49.

  • Order matters: (f∘g)(x)=f(g(x)), not g(f(x)).
  • Domain of f∘g: x must be in domain of g, and g(x) must be in domain of f.
  • Composition is associative: (f∘g)∘h = f∘(g∘h).
  • Composition is not commutative in general.
(f∘g)(x)=f(g(x))

2. Evaluating Composite Functions

To evaluate f(g(a)) for a specific number a: first compute g(a), then substitute that result into f. If g(a) is undefined, the composite is undefined at a. For algebraic evaluation, replace every x in f(x) with the entire expression g(x). For example, if f(x)=2x+3 and g(x)=x², then f(g(x))=2(x²)+3=2x²+3. To evaluate at x=2, substitute: 2(2²)+3=8+3=11. Always simplify carefully and watch for domain restrictions.

  • Step 1: Compute inner function g(a).
  • Step 2: Substitute result into outer function f.
  • For algebraic form, replace x in f with g(x).
  • Check domain: inner output must be valid for outer function.
f(g(x)) = f evaluated at g(x)

3. Inverse Functions: Definition and Conditions

A function f has an inverse f⁻¹ if and only if f is one-to-one (injective). A function is one-to-one if f(a)=f(b) implies a=b. Graphically, it passes the horizontal line test. The inverse reverses the mapping: if f(a)=b, then f⁻¹(b)=a. The domain of f⁻¹ is the range of f, and the range of f⁻¹ is the domain of f. The composition of a function and its inverse yields the identity: f(f⁻¹(x))=x and f⁻¹(f(x))=x, for x in the appropriate domains.

  • f is one-to-one if no horizontal line intersects its graph more than once.
  • f⁻¹ exists only for one-to-one functions.
  • Domain of f⁻¹ = range of f; range of f⁻¹ = domain of f.
  • f(f⁻¹(x))=x and f⁻¹(f(x))=x.
f(f⁻¹(x))=x and f⁻¹(f(x))=x

4. Finding the Inverse Algebraically

To find f⁻¹(x) for a one-to-one function f: 1) Write y=f(x). 2) Swap x and y. 3) Solve for y. 4) Replace y with f⁻¹(x). For example, f(x)=2x+3. Write y=2x+3. Swap: x=2y+3. Solve: y=(x-3)/2. So f⁻¹(x)=(x-3)/2. Verify: f(f⁻¹(x))=2((x-3)/2)+3=x-3+3=x. Also f⁻¹(f(x))=((2x+3)-3)/2=x. Always state domain restrictions if any.

  • Step 1: y = f(x).
  • Step 2: Swap x and y.
  • Step 3: Solve for y.
  • Step 4: Write f⁻¹(x) = y.
  • Verify by composition.
If y=f(x), then f⁻¹(x) is found by solving x=f(y) for y.

5. Composition with Inverses and Identity

The identity function I(x)=x satisfies f∘I=I∘f=f. The inverse function satisfies f∘f⁻¹=I and f⁻¹∘f=I on the appropriate domains. This property is used to verify inverses and to simplify expressions. For example, if f(x)=2x+3, then f⁻¹(x)=(x-3)/2. Then f(f⁻¹(5))=f(1)=5, and f⁻¹(f(5))=f⁻¹(13)=5. This cancellation property is a powerful shortcut when solving equations involving functions and their inverses.

  • f∘f⁻¹ = I on domain of f⁻¹.
  • f⁻¹∘f = I on domain of f.
  • Use cancellation to simplify f(g(x)) when g=f⁻¹.
  • Identity function I(x)=x.
f∘f⁻¹ = I and f⁻¹∘f = I

6. Domain and Range in Composition and Inverses

The domain of f∘g is {x | x∈Dom(g) and g(x)∈Dom(f)}. For inverses, Dom(f⁻¹)=Range(f) and Range(f⁻¹)=Dom(f). When finding f⁻¹, if f has a restricted domain, the inverse may have a restricted range. For example, f(x)=x² is not one-to-one on all real numbers, but if we restrict to x≥0, then f⁻¹(x)=√x with domain x≥0. Always check these conditions to avoid invalid evaluations.

  • Dom(f∘g) = {x | x∈Dom(g) and g(x)∈Dom(f)}.
  • Dom(f⁻¹)=Range(f), Range(f⁻¹)=Dom(f).
  • Restrict domain to make a function one-to-one.
  • Check domain before evaluating composites.
Dom(f∘g) = {x | x∈Dom(g) and g(x)∈Dom(f)}

7. Shortcuts and Algebraic Techniques

For linear functions f(x)=ax+b with a≠0, the inverse is f⁻¹(x)=(x-b)/a. For composition of linear functions, (f∘g)(x)=a(cx+d)+b=acx+ad+b. For simple functions like f(x)=x² (restricted), inverse is square root. When solving f(g(x))=h(x), if f is invertible, apply f⁻¹ to both sides: g(x)=f⁻¹(h(x)). This avoids expanding complex expressions. Also, if g(x)=f⁻¹(x), then f(g(x))=x directly.

  • Linear inverse: f(x)=ax+b ⇒ f⁻¹(x)=(x-b)/a.
  • Apply inverse to both sides to isolate inner function.
  • Use cancellation when composing with inverse.
  • Simplify before substituting large numbers.
f(x)=ax+b ⇒ f⁻¹(x)=(x-b)/a

8. Common Traps and How to Avoid Them

Trap 1: Confusing f(g(x)) with g(f(x)). Always apply inner function first. Trap 2: Forgetting domain restrictions, leading to invalid inverses. Trap 3: Assuming all functions have inverses; only one-to-one functions do. Trap 4: Misplacing parentheses, e.g., f(g(x)) vs f(x)g(x). Trap 5: Not verifying inverse by composition. Trap 6: Ignoring that f⁻¹(x) does not mean 1/f(x). These mistakes are avoidable with careful step-by-step work and verification.

  • Order: inner function first.
  • Check one-to-one before finding inverse.
  • f⁻¹(x) ≠ 1/f(x).
  • Verify inverses by composition.
  • Watch domain and range restrictions.
f⁻¹(x) ≠ 1/f(x)

Worked examples

If f(x)=2x+3 and g(x)=x², find f(g(2)).
Show solution

Compute g(2)=2²=4. Then f(4)=2(4)+3=8+3=11.

11
If f(x)=2x+3 and g(x)=x², find g(f(2)).
Show solution

Compute f(2)=2(2)+3=7. Then g(7)=7²=49.

49
Find the inverse of f(x)=2x+3.
Show solution

Write y=2x+3. Swap x and y: x=2y+3.

Solve for y: 2y=x-3 ⇒ y=(x-3)/2. So f⁻¹(x)=(x-3)/2. Verify: f(f⁻¹(x))=2((x-3)/2)+3=x.

f⁻¹(x)=(x-3)/2
If f(x)=x² (x≥0) and g(x)=√x, find f(g(9)) and g(f(9)).
Show solution

g(9)=√9=3. f(3)=3²=9. So f(g(9))=9. f(9)=9²=81. g(81)=√81=9. So g(f(9))=9.

Both equal 9.
If f(x)=3x-1 and g(x)=x+2, find (f∘g)(x) and (g∘f)(x).
Show solution

(f∘g)(x)=f(g(x))=f(x+2)=3(x+2)-1=3x+6-1=3x+5. (g∘f)(x)=g(f(x))=g(3x-1)=(3x-1)+2=3x+1.

(f∘g)(x)=3x+5, (g∘f)(x)=3x+1
Given f(x)=5x+2, find f⁻¹(12).
Show solution

Method 1: Find inverse: f⁻¹(x)=(x-2)/5. Then f⁻¹(12)=(12-2)/5=10/5=2. Method 2: Solve f(x)=12: 5x+2=12 ⇒ 5x=10 ⇒ x=2. So f⁻¹(12)=2.

2

Common mistakes

  • Applying outer function before inner function in composition.
  • Assuming f⁻¹(x) means 1/f(x).
  • Forgetting to check if a function is one-to-one before finding its inverse.
  • Ignoring domain restrictions when composing or inverting.
  • Not verifying inverse by composition.
  • Misplacing parentheses, e.g., writing f(g(x)) as fg(x).

Frequently asked questions

What is the difference between f(g(x)) and g(f(x))?

f(g(x)) applies g first, then f. g(f(x)) applies f first, then g. They are generally different. For example, if f(x)=2x+3 and g(x)=x², f(g(2))=11 but g(f(2))=49.

How do I know if a function has an inverse?

A function has an inverse if and only if it is one-to-one (injective). Graphically, it must pass the horizontal line test. If any horizontal line intersects the graph more than once, the function is not one-to-one and has no inverse unless you restrict its domain.

Is f⁻¹(x) the same as 1/f(x)?

No. f⁻¹(x) denotes the inverse function, which reverses the mapping of f. 1/f(x) is the reciprocal. For example, if f(x)=2x+3, f⁻¹(x)=(x-3)/2, while 1/f(x)=1/(2x+3). They are completely different.

How do I find the domain of a composite function f(g(x))?

The domain of f(g(x)) consists of all x in the domain of g such that g(x) is in the domain of f. So you must check both conditions: x must be valid for g, and the output g(x) must be valid for f.

Can I verify my inverse function?

Yes. Verify by composition: compute f(f⁻¹(x)) and f⁻¹(f(x)). Both should simplify to x. If they do, your inverse is correct. Also check that the domain and range match appropriately.

What is the inverse of a linear function?

For f(x)=ax+b with a≠0, the inverse is f⁻¹(x)=(x-b)/a. This is found by swapping x and y and solving for y. Always ensure a≠0, otherwise the function is constant and not one-to-one.