Part 1: Function Composition
🔗 Function Composition
Part 1 of 7
What Is Composition?
The composition of f and g, written (f∘g)(x), means "f of g of x":
(f∘g)(x)=f(g(x))
Think of it as a pipeline: input x flows into g first, then the output flows into f.
Example
If f(x)=x2 and g(x)=x+3:
(f∘g)(x)=f(g(x))=f(x+3)=(x+3)2
(g∘f)(x)=g(f(x))=g(x2)=x2+3
⚠️ Order matters! f∘g=g∘f in general.
📝 More Examples
Example 1
f(x)=2x+1,g(x)=x2−4
(f∘g)(x)=2(x2−4)+1=2x2−7
(g∘f)(x)=(2x+1)2−4=4x2+4x−3
Example 2: Evaluating at a Point
f(x)=x,g(x)=3x+1
(f∘g)(5)=f(g(5))=f(16)=4
Example 3: Three Functions
f(x)=x2,g(x)=x+1,h(x)=2x
(f∘g∘h)(x)=f(g(h(x)))=f(g(2x))=f(2x+1)=(2x+1)2
Decomposition
Express h(x)=3x+7 as a composition: let f(x)=x,g(x)=3x+7. Then h=f∘g.
🔍 Domain of a Composition
The domain of f∘g requires:
- x must be in the domain of g
- g(x) must be in the domain of f
Example
f(x)=x,g(x)=4−x2
(f∘g)(x)=4−x2
Domain: 4−x2≥0⟹−2≤x≤2
Another Example
f(x)=x1,g(x)=x−3
(f∘g)(x)=x−31
Domain: x=3 (so g(x)=0, which is not in domain of f).
Composition Practice 🧮
Let f(x)=2x−1,g(x)=x+5.
1) (f∘g)(3) = ?
2) (g∘f)(3) = ?
3) (f∘f)(2) = ?
Part 2: Domain of Compositions
🔄 Inverse Functions
Part 2 of 7
What Is an Inverse?
f−1 undoes f. If f(a)=b, then f−1(b)=a.
f(f−1(x))=xandf−1(f(x))=x
Key Properties
- Domain of f−1 = Range of f
- Range of f−1 = Domain of f
- The graph of f−1 is the reflection of f across the line y=x
When Does f−1 Exist?
f must be one-to-one (each output comes from exactly one input).
- One-to-one → passes the Horizontal Line Test
- Not one-to-one → no inverse (unless we restrict the domain)
📝 Finding Inverse Functions
Algorithm
- Replace f(x) with y
- Swap x and y
- Solve for y
- Write f−1(x)=y
Example 1: f(x)=3x−7
y=3x−7 → x=3y−7 → x+7=3y → y=3x+7
f−1(x)=3x+7
Verify: f(f−1(x))=3⋅3x+7−7=x+7−7=x ✓
Example 2: f(x)=x2+1,x≥0
x=y2+1⟹y=x−1
f−1(x)=x−1,x≥1
📊 The Horizontal Line Test
| Function | One-to-one? | Inverse exists? |
|---|
| f(x)=2x+3 | Yes | Yes |
| f(x)=x2 (all reals) | No | No (without restriction) |
| f(x)=x3 | Yes | Yes (f−1(x)=3x) |
| f(x)=sinx (all reals) | No | No (restrict to [−π/2,π/2]) |
| f(x)=ex | Yes | Yes (f−1(x)=lnx) |
Restricting Domains
f(x)=x2 on x≥0: now one-to-one!
f−1(x)=x (the principal square root)
💡 When we write sin−1x, we use the restricted domain [−π/2,π/2].
Finding Inverses 🧮
1) f(x)=4x−3. Find f−1(9):
2) f(x)=2x+1. Find f−1(x)=ax+b. What is a?
3) Same function: What is b?
Part 3: Inverse Functions
🧮 Inverses of Common Functions
Part 3 of 7
Inverse Pairs
| Function f(x) | Inverse f−1(x) | Domain restriction |
|---|
| x2 | x | x≥0 for both |
| x3 | 3x | All reals |
| ex | lnx | x>0 for ln |
| 10x | log10x | x>0 for log |
| ax | logax | x>0 for loga |
| sinx | sin−1x | [−π/2,π/2], [−1,1] |
| cosx | cos−1x | [0,π], [−1,1] |
| tanx | tan−1x | (−π/2,π/2) |
💡 The graph of each inverse is the reflection of the original function over y=x.
📝 Exponential & Logarithmic Inverses
Why ln and ex are inverses
elnx=x(x>0)
ln(ex)=x(all x)
Solving with Inverses
Solve e2x=15:
ln(e2x)=ln15
2x=ln15
x=2ln15≈1.354
Solve log2(x−3)=5:
x−3=25=32
x=35
Key Identities
- loga(ax)=x
- alogax=x
🔀 Inverses of Rational Functions
Example: f(x)=x−32x+1
Swap and solve:
x=y−32y+1
x(y−3)=2y+1
xy−3x=2y+1
xy−2y=3x+1
y(x−2)=3x+1
f−1(x)=x−23x+1
Verification: f(f−1(x)):
f(x−23x+1)=x−23x+1−32⋅x−23x+1+1=x−23x+1−3x+6x−26x+2+x−2=77x=x ✓
Inverse Calculations 🧮
1) Solve ex=20: x=ln(?). Enter the number.
2) Solve log3x=4: x = ?
3) If f(x)=5x−3, then f−1(12) = ?
Part 4: Finding Inverses
📊 Composition with Tables & Graphs
Part 4 of 7
Reading from Tables
Given tables of f and g:
| x | f(x) | g(x) |
|---|
| 1 | 3 | 2 |
| 2 | 5 | 4 |
| 3 | 1 | 1 |
| 4 | 2 | 3 |
| 5 | 4 | 5 |
Find (f∘g)(2):
g(2)=4, then f(4)=2. So (f∘g)(2)=2.
Find (g∘f)(3):
f(3)=1, then g(1)=2. So (g∘f)(3)=2.
📝 Inverse from Tables
If f is one-to-one, we can read f−1 from the table by swapping input/output:
So f−1(3)=1,f−1(5)=2,f−1(1)=3,f−1(2)=4.
Verifying One-to-One from a Table
Check: does any output appear more than once? If yes, f is NOT one-to-one.
Composition Chains from Tables
(f∘f)(1): f(1)=3, then f(3)=1. So (f∘f)(1)=1.
This means 1 and 3 form a 2-cycle under f.
📈 Composition with Graphs
To find (f∘g)(a) from graphs:
- Go to x=a on the graph of g → read g(a)
- Go to x=g(a) on the graph of f → read f(g(a))
Graph of f−1
Reflect the graph of f across y=x.
Key observations:
- If f passes through (2,5), then f−1 passes through (5,2)
- Increasing functions have increasing inverses
- x-intercepts of f become y-intercepts of f−1
Fixed Points
A fixed point is where f(x)=x (the graph crosses y=x).
At fixed points: f(a)=a=f−1(a). Both the function and its inverse share this point!
Tables & Graphs Quiz 🎯
Use this table:
| x | 1 | 2 | 3 | 4 |
|---|
| f(x) | 4 | 1 | 2 | 3 |
| g(x) | 2 | 3 | 4 | 1 |
Table Practice 🧮
Use: f(1)=3,f(2)=5,f(3)=7,f(4)=9
1) (f∘f−1)(7) = ?
2) f−1(9) = ?
3) f−1(f−1(7)) = ? (Hint: find f−1(7) first, then apply f−1 again)
Part 5: Verifying Inverses
🧩 Piecewise & Absolute Value Compositions
Part 5 of 7
Composing with Piecewise Functions
If f(x)={x+2x2x<0x≥0 and g(x)=x−1:
(f∘g)(3)=f(g(3))=f(2)=22=4 (since 2≥0)
(f∘g)(−2)=f(g(−2))=f(−3)=−3+2=−1 (since −3<0)
Composing with Absolute Value
∣f(x)∣ takes the output and makes it positive.
f(∣x∣) takes the input and makes it positive first.
These are different! For f(x)=x−3:
- ∣f(x)∣=∣x−3∣ (V-shape at x=3)
- f(∣x∣)=∣x∣−3 (V-shape at x=0, shifted down 3)
📝 Function Operations Review
Arithmetic Operations
- (f+g)(x)=f(x)+g(x)
- (f−g)(x)=f(x)−g(x)
- (fg)(x)=f(x)⋅g(x)
- (f/g)(x)=f(x)/g(x),g(x)=0
Example
f(x)=x2,g(x)=2x+1
(f+g)(x)=x2+2x+1=(x+1)2
(fg)(x)=x2(2x+1)=2x3+x2
(f/g)(x)=2x+1x2,x=−21
Domains of Combined Functions
dom(f+g)=dom(f)∩dom(g)
dom(f/g)=dom(f)∩dom(g)∖{x:g(x)=0}
🔧 Decomposition Strategies
Breaking a complex function into simpler pieces:
Chain Decomposition (for Calculus)
| Complex Function | Inner g(x) | Outer f(u) |
|---|
| x2+1 | x2+1 | u |
| (3x−5)7 | 3x−5 | u7 |
| sin(x2) | x2 | sinu |
| e−x2 | −x2 | eu |
| ln(cosx) | cosx | lnu |
💡 This decomposition is the foundation of the Chain Rule in calculus: dxdf(g(x))=f′(g(x))⋅g′(x).
Operations & Decomposition Quiz 🎯
Operations Practice 🧮
f(x)=x+3,g(x)=2x
1) (f+g)(4) = ?
2) (f⋅g)(2) = ?
3) (f/g)(6) = ? (Enter as a fraction like "3/4")
Part 6: Problem-Solving Workshop
📐 Verifying Inverses & Algebraic Techniques
Part 6 of 7
How to Verify Two Functions Are Inverses
If f and g are inverses, BOTH must hold:
f(g(x))=xANDg(f(x))=x
⚠️ Verifying only ONE direction is not enough! You need both.
Example: Are f(x)=3x−6 and g(x)=3x+6 inverses?
Check 1: f(g(x))=3⋅3x+6−6=x+6−6=x ✓
Check 2: g(f(x))=3(3x−6)+6=33x=x ✓
Both hold → yes, they are inverses!
🔧 Algebraic Techniques for Finding Inverses
Technique 1: Quadratic Inverses
f(x)=x2−4x+7,x≥2
Complete the square: f(x)=(x−2)2+3
Swap: x=(y−2)2+3
(y−2)2=x−3
y=2+x−3 (positive root, since x≥2)
Technique 2: Implicit Solving
f(x)=x2−1x2+1,x>1
x=y2−1y2+1⟹x(y2−1)=y2+1⟹xy2−x=y2+1
y2(x−1)=x+1⟹y2=x−1x+1⟹y=x−1x+1
🔗 Composition & Inverse Connections
Self-Inverse Functions (Involutions)
Some functions are their own inverse: f(f(x))=x.
Examples:
- f(x)=x1: f(f(x))=1/x1=x ✓
- f(x)=−x: f(f(x))=−(−x)=x ✓
- f(x)=1+axa−x for certain a
Composition of Inverses
If h=f∘g, then h−1=g−1∘f−1
💡 The inverse of a composition reverses the order — like undoing layers. Remove the outer layer first!
Derivative Preview
The slope of f−1 at a point is the reciprocal of the slope of f:
If f′(a)=m, then (f−1)′(f(a))=m1
Verification & Techniques Quiz 🎯
Verification Practice 🧮
f(x)=2x+5,g(x)=2x−5
1) f(g(10)) = ?
2) g(f(10)) = ?
3) Are they inverses? (Enter "yes" or "no")
Advanced Inverse Concepts 🔽
Part 7: Review & Applications
🎯 Composition & Inverses — Full Synthesis
Part 7 of 7
Master Summary
| Concept | Key Formula |
|---|
| Composition | (f∘g)(x)=f(g(x)) |
| Inverse | f(f−1(x))=f−1(f(x))=x |
| Finding inverse | Swap x,y and solve |
| One-to-one test | Horizontal Line Test |
| Self-inverse | f(f(x))=x |
| Inverse of composition | (f∘g)−1=g−1∘f−1 |
Essential Inverse Pairs
xn↔nx, ex↔lnx, ax↔logax, sinx↔sin−1x (restricted)
🗺️ Problem-Solving Strategies
Composition
- Identify inner and outer functions
- Substitute the inner into the outer
- Simplify
- Check domain restrictions
Finding Inverses
- Check one-to-one (HLT or algebraic)
- Write y=f(x), swap x and y
- Solve for y
- Verify with f(f−1(x))=x
Decomposition (for Calculus prep)
- Identify the "last operation" → outer function
- Everything inside → inner function
- Practice: h(x)=esin(x2)→ outer eu, middle sinv, inner x2
📝 Mixed Practice
Problem 1
f(x)=x−1x+1. Show f is its own inverse.
f(f(x))=x−1x+1−1x−1x+1+1=x−1x+1−x+1x−1x+1+x−1=22x=x ✓
Problem 2
f(x)=2x,g(x)=x2. Find (f∘g)(3):
g(3)=9,f(9)=29=512
Problem 3
Find f−1(x) for f(x)=ln(x−3)+2:
x=ln(y−3)+2⟹x−2=ln(y−3)⟹y−3=ex−2
f−1(x)=ex−2+3
Mixed Calculations 🧮
1) f(x)=3x+1,g(x)=x2. Find (g∘f)(−1):
2) f(x)=lnx. Find f−1(0):
3) If f(2)=7 and f(5)=2, find (f∘f−1)(7):