College Algebra
Composition and Inverse Functions Last updated: March 2026 · Advanced
Before you start
You should be comfortable with:
π Nursing Medication dosages, IV drip rates, vital monitoring
Function composition chains two functions together β the output of one becomes the input of the next. Inverse functions reverse the process entirely. Together, these ideas form the foundation for solving equations, converting units, and understanding how multi-step processes can be undone.
Composition of Functions
The composition of f f f with g g g , written ( f β g ) ( x ) (f \circ g)(x) ( f β g ) ( x ) , means βapply g g g first, then apply f f f to the resultβ:
( f β g ) ( x ) = f ( g ( x ) ) (f \circ g)(x) = f(g(x)) ( f β g ) ( x ) = f ( g ( x ))
The function g g g is the inner function and f f f is the outer function. Composition is not commutative β in general, f β g β g β f f \circ g \neq g \circ f f β g ξ = g β f .
Worked Example 1: Basic Composition
Let f ( x ) = 2 x + 3 f(x) = 2x + 3 f ( x ) = 2 x + 3 and g ( x ) = x 2 β 1 g(x) = x^2 - 1 g ( x ) = x 2 β 1 .
( f β g ) ( x ) = f ( g ( x ) ) = f ( x 2 β 1 ) = 2 ( x 2 β 1 ) + 3 = 2 x 2 β 2 + 3 = 2 x 2 + 1 (f \circ g)(x) = f(g(x)) = f(x^2 - 1) = 2(x^2 - 1) + 3 = 2x^2 - 2 + 3 = 2x^2 + 1 ( f β g ) ( x ) = f ( g ( x )) = f ( x 2 β 1 ) = 2 ( x 2 β 1 ) + 3 = 2 x 2 β 2 + 3 = 2 x 2 + 1
( g β f ) ( x ) = g ( f ( x ) ) = g ( 2 x + 3 ) = ( 2 x + 3 ) 2 β 1 = 4 x 2 + 12 x + 9 β 1 = 4 x 2 + 12 x + 8 (g \circ f)(x) = g(f(x)) = g(2x + 3) = (2x + 3)^2 - 1 = 4x^2 + 12x + 9 - 1 = 4x^2 + 12x + 8 ( g β f ) ( x ) = g ( f ( x )) = g ( 2 x + 3 ) = ( 2 x + 3 ) 2 β 1 = 4 x 2 + 12 x + 9 β 1 = 4 x 2 + 12 x + 8
Since 2 x 2 + 1 β 4 x 2 + 12 x + 8 2x^2 + 1 \neq 4x^2 + 12x + 8 2 x 2 + 1 ξ = 4 x 2 + 12 x + 8 , composition order matters.
Worked Example 2: Evaluating at a Point
Using the same f f f and g g g , find ( f β g ) ( 3 ) (f \circ g)(3) ( f β g ) ( 3 ) .
Method 1 (compose, then evaluate): ( f β g ) ( x ) = 2 x 2 + 1 (f \circ g)(x) = 2x^2 + 1 ( f β g ) ( x ) = 2 x 2 + 1 , so ( f β g ) ( 3 ) = 2 ( 9 ) + 1 = 19 (f \circ g)(3) = 2(9) + 1 = 19 ( f β g ) ( 3 ) = 2 ( 9 ) + 1 = 19 .
Method 2 (evaluate step by step): g ( 3 ) = 9 β 1 = 8 g(3) = 9 - 1 = 8 g ( 3 ) = 9 β 1 = 8 , then f ( 8 ) = 2 ( 8 ) + 3 = 19 f(8) = 2(8) + 3 = 19 f ( 8 ) = 2 ( 8 ) + 3 = 19 .
Both methods give the same result. Method 2 is faster for a single evaluation; Method 1 is better when you need the full composed formula.
Domain of a Composition
The domain of ( f β g ) ( x ) (f \circ g)(x) ( f β g ) ( x ) is not simply the domain of g g g . You need:
x x x must be in the domain of g g g (so g ( x ) g(x) g ( x ) is defined)
g ( x ) g(x) g ( x ) must be in the domain of f f f (so f ( g ( x ) ) f(g(x)) f ( g ( x )) is defined)
Worked Example 3: Domain Restrictions from Composition
Let f ( x ) = 1 x β 2 f(x) = \frac{1}{x - 2} f ( x ) = x β 2 1 β and g ( x ) = x g(x) = \sqrt{x} g ( x ) = x β .
Find the domain of ( f β g ) ( x ) = f ( x ) = 1 x β 2 (f \circ g)(x) = f(\sqrt{x}) = \frac{1}{\sqrt{x} - 2} ( f β g ) ( x ) = f ( x β ) = x β β 2 1 β .
Restriction 1: g ( x ) = x g(x) = \sqrt{x} g ( x ) = x β requires x β₯ 0 x \geq 0 x β₯ 0 .
Restriction 2: f f f requires its input β 2 \neq 2 ξ = 2 , so x β 2 \sqrt{x} \neq 2 x β ξ = 2 , meaning x β 4 x \neq 4 x ξ = 4 .
Domain of f β g f \circ g f β g : [ 0 , 4 ) βͺ ( 4 , β ) [0, 4) \cup (4, \infty) [ 0 , 4 ) βͺ ( 4 , β ) .
Worked Example 4: Another Domain Analysis
Let f ( x ) = ln β‘ ( x ) f(x) = \ln(x) f ( x ) = ln ( x ) and g ( x ) = 4 β x 2 g(x) = 4 - x^2 g ( x ) = 4 β x 2 .
( f β g ) ( x ) = ln β‘ ( 4 β x 2 ) (f \circ g)(x) = \ln(4 - x^2) ( f β g ) ( x ) = ln ( 4 β x 2 )
Restriction from g g g : g g g is defined for all x x x (no restriction from g g g alone).
Restriction from f f f : ln β‘ \ln ln requires its argument positive: 4 β x 2 > 0 4 - x^2 > 0 4 β x 2 > 0 , so x 2 < 4 x^2 < 4 x 2 < 4 , giving β 2 < x < 2 -2 < x < 2 β 2 < x < 2 .
Domain of f β g f \circ g f β g : ( β 2 , 2 ) (-2, 2) ( β 2 , 2 ) .
Decomposing Functions
Given a complex function, we can write it as a composition of simpler functions.
Example: Express h ( x ) = ( 3 x β 7 ) 5 h(x) = (3x - 7)^5 h ( x ) = ( 3 x β 7 ) 5 as f β g f \circ g f β g .
Choose g ( x ) = 3 x β 7 g(x) = 3x - 7 g ( x ) = 3 x β 7 (inner) and f ( x ) = x 5 f(x) = x^5 f ( x ) = x 5 (outer). Then f ( g ( x ) ) = ( 3 x β 7 ) 5 = h ( x ) f(g(x)) = (3x - 7)^5 = h(x) f ( g ( x )) = ( 3 x β 7 ) 5 = h ( x ) .
Example: Express k ( x ) = ln β‘ ( x ) k(x) = \sqrt{\ln(x)} k ( x ) = ln ( x ) β as f β g f \circ g f β g .
Choose g ( x ) = ln β‘ ( x ) g(x) = \ln(x) g ( x ) = ln ( x ) and f ( x ) = x f(x) = \sqrt{x} f ( x ) = x β . Then f ( g ( x ) ) = ln β‘ ( x ) = k ( x ) f(g(x)) = \sqrt{\ln(x)} = k(x) f ( g ( x )) = ln ( x ) β = k ( x ) .
Decomposition is not unique β there may be multiple valid ways to split a function.
Inverse Functions
A function f f f has an inverse function f β 1 f^{-1} f β 1 if and only if f f f is one-to-one (each output comes from exactly one input). When the inverse exists:
f ( f β 1 ( x ) ) = x and f β 1 ( f ( x ) ) = x f(f^{-1}(x)) = x \quad \text{and} \quad f^{-1}(f(x)) = x f ( f β 1 ( x )) = x and f β 1 ( f ( x )) = x
The inverse βundoesβ the function: if f ( a ) = b f(a) = b f ( a ) = b , then f β 1 ( b ) = a f^{-1}(b) = a f β 1 ( b ) = a .
Important notation: f β 1 ( x ) f^{-1}(x) f β 1 ( x ) is the inverse function β it does not mean 1 f ( x ) \frac{1}{f(x)} f ( x ) 1 β . The reciprocal would be written ( f ( x ) ) β 1 (f(x))^{-1} ( f ( x ) ) β 1 or 1 f ( x ) \frac{1}{f(x)} f ( x ) 1 β .
The Horizontal Line Test
A function is one-to-one if and only if every horizontal line intersects its graph at most once. If any horizontal line crosses the graph twice, the function fails the test and has no inverse (without domain restriction).
Verifying Inverses via Composition
To verify that f f f and g g g are inverses, check both compositions:
f ( g ( x ) ) = x and g ( f ( x ) ) = x f(g(x)) = x \quad \text{and} \quad g(f(x)) = x f ( g ( x )) = x and g ( f ( x )) = x
Both must hold on the appropriate domains.
Worked Example 5: Verification
Verify that f ( x ) = 3 x β 5 f(x) = 3x - 5 f ( x ) = 3 x β 5 and g ( x ) = x + 5 3 g(x) = \frac{x + 5}{3} g ( x ) = 3 x + 5 β are inverses.
f ( g ( x ) ) = f ββ£ ( x + 5 3 ) = 3 β
x + 5 3 β 5 = x + 5 β 5 = x f(g(x)) = f\!\left(\frac{x + 5}{3}\right) = 3 \cdot \frac{x + 5}{3} - 5 = x + 5 - 5 = x f ( g ( x )) = f ( 3 x + 5 β ) = 3 β
3 x + 5 β β 5 = x + 5 β 5 = x
g ( f ( x ) ) = g ( 3 x β 5 ) = ( 3 x β 5 ) + 5 3 = 3 x 3 = x g(f(x)) = g(3x - 5) = \frac{(3x - 5) + 5}{3} = \frac{3x}{3} = x g ( f ( x )) = g ( 3 x β 5 ) = 3 ( 3 x β 5 ) + 5 β = 3 3 x β = x
Both compositions yield x x x , confirming the functions are inverses.
Finding Inverses Algebraically
Method: Replace f ( x ) f(x) f ( x ) with y y y , swap x x x and y y y , then solve for y y y .
Worked Example 6: Linear Function
Find f β 1 f^{-1} f β 1 for f ( x ) = 2 x + 1 3 f(x) = \frac{2x + 1}{3} f ( x ) = 3 2 x + 1 β .
Write y = 2 x + 1 3 y = \frac{2x + 1}{3} y = 3 2 x + 1 β . Swap: x = 2 y + 1 3 x = \frac{2y + 1}{3} x = 3 2 y + 1 β . Solve:
3 x = 2 y + 1 β
β βΉ β
β 2 y = 3 x β 1 β
β βΉ β
β y = 3 x β 1 2 3x = 2y + 1 \implies 2y = 3x - 1 \implies y = \frac{3x - 1}{2} 3 x = 2 y + 1 βΉ 2 y = 3 x β 1 βΉ y = 2 3 x β 1 β
f β 1 ( x ) = 3 x β 1 2 f^{-1}(x) = \frac{3x - 1}{2} f β 1 ( x ) = 2 3 x β 1 β
Worked Example 7: Rational Function
Find f β 1 f^{-1} f β 1 for f ( x ) = x + 3 x β 1 f(x) = \frac{x + 3}{x - 1} f ( x ) = x β 1 x + 3 β , x β 1 x \neq 1 x ξ = 1 .
Swap: x = y + 3 y β 1 x = \frac{y + 3}{y - 1} x = y β 1 y + 3 β . Solve:
x ( y β 1 ) = y + 3 β
β βΉ β
β x y β x = y + 3 β
β βΉ β
β x y β y = x + 3 β
β βΉ β
β y ( x β 1 ) = x + 3 x(y - 1) = y + 3 \implies xy - x = y + 3 \implies xy - y = x + 3 \implies y(x - 1) = x + 3 x ( y β 1 ) = y + 3 βΉ x y β x = y + 3 βΉ x y β y = x + 3 βΉ y ( x β 1 ) = x + 3
y = x + 3 x β 1 y = \frac{x + 3}{x - 1} y = x β 1 x + 3 β
Remarkably, f β 1 ( x ) = x + 3 x β 1 = f ( x ) f^{-1}(x) = \frac{x + 3}{x - 1} = f(x) f β 1 ( x ) = x β 1 x + 3 β = f ( x ) . This function is its own inverse β it is called an involution .
Worked Example 8: Radical Function
Find f β 1 f^{-1} f β 1 for f ( x ) = x β 2 + 5 f(x) = \sqrt{x - 2} + 5 f ( x ) = x β 2 β + 5 , where x β₯ 2 x \geq 2 x β₯ 2 .
Swap: x = y β 2 + 5 x = \sqrt{y - 2} + 5 x = y β 2 β + 5 . Solve:
x β 5 = y β 2 β
β βΉ β
β ( x β 5 ) 2 = y β 2 β
β βΉ β
β y = ( x β 5 ) 2 + 2 x - 5 = \sqrt{y - 2} \implies (x - 5)^2 = y - 2 \implies y = (x - 5)^2 + 2 x β 5 = y β 2 β βΉ ( x β 5 ) 2 = y β 2 βΉ y = ( x β 5 ) 2 + 2
f β 1 ( x ) = ( x β 5 ) 2 + 2 , x β₯ 5 f^{-1}(x) = (x - 5)^2 + 2, \quad x \geq 5 f β 1 ( x ) = ( x β 5 ) 2 + 2 , x β₯ 5
The domain of f β 1 f^{-1} f β 1 is the range of f f f : since x β 2 β₯ 0 \sqrt{x - 2} \geq 0 x β 2 β β₯ 0 , f ( x ) β₯ 5 f(x) \geq 5 f ( x ) β₯ 5 .
Restricting Domains to Create Inverses
Many common functions are not one-to-one on their entire domain. By restricting the domain , we can create a one-to-one function that has an inverse.
Worked Example 9: Quadratic with Restricted Domain
f ( x ) = x 2 f(x) = x^2 f ( x ) = x 2 is not one-to-one on ( β β , β ) (-\infty, \infty) ( β β , β ) because, for instance, f ( 3 ) = f ( β 3 ) = 9 f(3) = f(-3) = 9 f ( 3 ) = f ( β 3 ) = 9 .
Restrict to x β₯ 0 x \geq 0 x β₯ 0 : f ( x ) = x 2 f(x) = x^2 f ( x ) = x 2 , x β₯ 0 x \geq 0 x β₯ 0 .
Now f f f is one-to-one (the right half of the parabola passes the horizontal line test).
Find the inverse: x = y 2 x = y^2 x = y 2 , y β₯ 0 y \geq 0 y β₯ 0 , so y = x y = \sqrt{x} y = x β .
f β 1 ( x ) = x , x β₯ 0 f^{-1}(x) = \sqrt{x}, \quad x \geq 0 f β 1 ( x ) = x β , x β₯ 0
We could also restrict to x β€ 0 x \leq 0 x β€ 0 , giving f β 1 ( x ) = β x f^{-1}(x) = -\sqrt{x} f β 1 ( x ) = β x β .
Graphing Inverses
The graph of f β 1 f^{-1} f β 1 is the reflection of the graph of f f f over the line y = x y = x y = x . Every point ( a , b ) (a, b) ( a , b ) on f f f corresponds to ( b , a ) (b, a) ( b , a ) on f β 1 f^{-1} f β 1 .
This means:
The domain of f f f becomes the range of f β 1 f^{-1} f β 1 (and vice versa)
Intercepts reflect: if f f f has y y y -intercept ( 0 , b ) (0, b) ( 0 , b ) , then f β 1 f^{-1} f β 1 has x x x -intercept ( b , 0 ) (b, 0) ( b , 0 )
Real-World Application: Nursing Dosage Conversions
In nursing, drug concentrations often require converting between units. If the conversion function is:
C ( x ) = 0.001 x + 2.5 C(x) = 0.001x + 2.5 C ( x ) = 0.001 x + 2.5
where x x x is the dosage in micrograms and C C C is the blood concentration in mg/L, the inverse tells us what dosage produces a target concentration:
x = C β 2.5 0.001 = 1000 ( C β 2.5 ) x = \frac{C - 2.5}{0.001} = 1000(C - 2.5) x = 0.001 C β 2.5 β = 1000 ( C β 2.5 )
C β 1 ( y ) = 1000 ( y β 2.5 ) = 1000 y β 2500 C^{-1}(y) = 1000(y - 2.5) = 1000y - 2500 C β 1 ( y ) = 1000 ( y β 2.5 ) = 1000 y β 2500
For a target concentration of 3.2 mg/L: C β 1 ( 3.2 ) = 1000 ( 3.2 ) β 2500 = 700 C^{-1}(3.2) = 1000(3.2) - 2500 = 700 C β 1 ( 3.2 ) = 1000 ( 3.2 ) β 2500 = 700 micrograms.
Real-World Application: Temperature Conversion
The Fahrenheit-to-Celsius conversion is C = f ( F ) = 5 9 ( F β 32 ) C = f(F) = \frac{5}{9}(F - 32) C = f ( F ) = 9 5 β ( F β 32 ) . The inverse converts Celsius back to Fahrenheit:
F = f β 1 ( C ) = 9 5 C + 32 F = f^{-1}(C) = \frac{9}{5}C + 32 F = f β 1 ( C ) = 5 9 β C + 32
Verify: f ( f β 1 ( C ) ) = 5 9 ββ£ ( 9 5 C + 32 β 32 ) = 5 9 β
9 5 C = C f(f^{-1}(C)) = \frac{5}{9}\!\left(\frac{9}{5}C + 32 - 32\right) = \frac{5}{9} \cdot \frac{9}{5}C = C f ( f β 1 ( C )) = 9 5 β ( 5 9 β C + 32 β 32 ) = 9 5 β β
5 9 β C = C .
Practice Problems
Test your understanding with these problems. Click to reveal each answer.
Problem 1: Let f ( x ) = x 2 + 1 f(x) = x^2 + 1 f ( x ) = x 2 + 1 and g ( x ) = 3 x β 2 g(x) = 3x - 2 g ( x ) = 3 x β 2 . Find ( f β g ) ( x ) (f \circ g)(x) ( f β g ) ( x ) and ( g β f ) ( x ) (g \circ f)(x) ( g β f ) ( x ) .( f β g ) ( x ) = f ( 3 x β 2 ) = ( 3 x β 2 ) 2 + 1 = 9 x 2 β 12 x + 4 + 1 = 9 x 2 β 12 x + 5 (f \circ g)(x) = f(3x - 2) = (3x - 2)^2 + 1 = 9x^2 - 12x + 4 + 1 = 9x^2 - 12x + 5 ( f β g ) ( x ) = f ( 3 x β 2 ) = ( 3 x β 2 ) 2 + 1 = 9 x 2 β 12 x + 4 + 1 = 9 x 2 β 12 x + 5
( g β f ) ( x ) = g ( x 2 + 1 ) = 3 ( x 2 + 1 ) β 2 = 3 x 2 + 3 β 2 = 3 x 2 + 1 (g \circ f)(x) = g(x^2 + 1) = 3(x^2 + 1) - 2 = 3x^2 + 3 - 2 = 3x^2 + 1 ( g β f ) ( x ) = g ( x 2 + 1 ) = 3 ( x 2 + 1 ) β 2 = 3 x 2 + 3 β 2 = 3 x 2 + 1
Answer: ( f β g ) ( x ) = 9 x 2 β 12 x + 5 (f \circ g)(x) = 9x^2 - 12x + 5 ( f β g ) ( x ) = 9 x 2 β 12 x + 5 and ( g β f ) ( x ) = 3 x 2 + 1 (g \circ f)(x) = 3x^2 + 1 ( g β f ) ( x ) = 3 x 2 + 1 .
Problem 2: Find the domain of ( f β g ) ( x ) (f \circ g)(x) ( f β g ) ( x ) where f ( x ) = x f(x) = \sqrt{x} f ( x ) = x β and g ( x ) = 6 β 2 x g(x) = 6 - 2x g ( x ) = 6 β 2 x .( f β g ) ( x ) = 6 β 2 x (f \circ g)(x) = \sqrt{6 - 2x} ( f β g ) ( x ) = 6 β 2 x β
g ( x ) g(x) g ( x ) is defined for all x x x . But f f f requires 6 β 2 x β₯ 0 6 - 2x \geq 0 6 β 2 x β₯ 0 , so x β€ 3 x \leq 3 x β€ 3 .
Domain: ( β β , 3 ] (-\infty, 3] ( β β , 3 ] .
Problem 3: Find f β 1 ( x ) f^{-1}(x) f β 1 ( x ) for f ( x ) = 4 x β 3 2 x + 1 f(x) = \frac{4x - 3}{2x + 1} f ( x ) = 2 x + 1 4 x β 3 β , x β β 1 2 x \neq -\frac{1}{2} x ξ = β 2 1 β .Swap: x = 4 y β 3 2 y + 1 x = \frac{4y - 3}{2y + 1} x = 2 y + 1 4 y β 3 β . Solve:
x ( 2 y + 1 ) = 4 y β 3 β
β βΉ β
β 2 x y + x = 4 y β 3 β
β βΉ β
β 2 x y β 4 y = β x β 3 β
β βΉ β
β y ( 2 x β 4 ) = β ( x + 3 ) x(2y + 1) = 4y - 3 \implies 2xy + x = 4y - 3 \implies 2xy - 4y = -x - 3 \implies y(2x - 4) = -(x + 3) x ( 2 y + 1 ) = 4 y β 3 βΉ 2 x y + x = 4 y β 3 βΉ 2 x y β 4 y = β x β 3 βΉ y ( 2 x β 4 ) = β ( x + 3 )
y = β ( x + 3 ) 2 x β 4 = β x β 3 2 ( x β 2 ) y = \frac{-(x + 3)}{2x - 4} = \frac{-x - 3}{2(x - 2)} y = 2 x β 4 β ( x + 3 ) β = 2 ( x β 2 ) β x β 3 β
Answer: f β 1 ( x ) = β x β 3 2 ( x β 2 ) f^{-1}(x) = \frac{-x - 3}{2(x - 2)} f β 1 ( x ) = 2 ( x β 2 ) β x β 3 β , x β 2 x \neq 2 x ξ = 2 .
Problem 4: Restrict the domain of h ( x ) = ( x β 3 ) 2 + 1 h(x) = (x - 3)^2 + 1 h ( x ) = ( x β 3 ) 2 + 1 so that it is one-to-one, then find its inverse.Restrict to x β₯ 3 x \geq 3 x β₯ 3 (right side of the vertex).
Swap: x = ( y β 3 ) 2 + 1 β
β βΉ β
β x β 1 = ( y β 3 ) 2 β
β βΉ β
β y β 3 = x β 1 x = (y - 3)^2 + 1 \implies x - 1 = (y - 3)^2 \implies y - 3 = \sqrt{x - 1} x = ( y β 3 ) 2 + 1 βΉ x β 1 = ( y β 3 ) 2 βΉ y β 3 = x β 1 β (positive root since y β₯ 3 y \geq 3 y β₯ 3 ).
h β 1 ( x ) = x β 1 + 3 h^{-1}(x) = \sqrt{x - 1} + 3 h β 1 ( x ) = x β 1 β + 3 , x β₯ 1 x \geq 1 x β₯ 1 .
Answer: h β 1 ( x ) = x β 1 + 3 h^{-1}(x) = \sqrt{x - 1} + 3 h β 1 ( x ) = x β 1 β + 3 for x β₯ 1 x \geq 1 x β₯ 1 .
Problem 5: Verify that f ( x ) = x x + 2 f(x) = \frac{x}{x + 2} f ( x ) = x + 2 x β and g ( x ) = 2 x 1 β x g(x) = \frac{2x}{1 - x} g ( x ) = 1 β x 2 x β are inverses (for x β β 2 x \neq -2 x ξ = β 2 and x β 1 x \neq 1 x ξ = 1 respectively).f ( g ( x ) ) = f ββ£ ( 2 x 1 β x ) = 2 x 1 β x 2 x 1 β x + 2 = 2 x 1 β x 2 x + 2 ( 1 β x ) 1 β x = 2 x 2 x + 2 β 2 x = 2 x 2 = x f(g(x)) = f\!\left(\frac{2x}{1 - x}\right) = \frac{\frac{2x}{1 - x}}{\frac{2x}{1 - x} + 2} = \frac{\frac{2x}{1 - x}}{\frac{2x + 2(1 - x)}{1 - x}} = \frac{2x}{2x + 2 - 2x} = \frac{2x}{2} = x f ( g ( x )) = f ( 1 β x 2 x β ) = 1 β x 2 x β + 2 1 β x 2 x β β = 1 β x 2 x + 2 ( 1 β x ) β 1 β x 2 x β β = 2 x + 2 β 2 x 2 x β = 2 2 x β = x
g ( f ( x ) ) = g ββ£ ( x x + 2 ) = 2 β
x x + 2 1 β x x + 2 = 2 x x + 2 x + 2 β x x + 2 = 2 x 2 = x g(f(x)) = g\!\left(\frac{x}{x + 2}\right) = \frac{2 \cdot \frac{x}{x + 2}}{1 - \frac{x}{x + 2}} = \frac{\frac{2x}{x + 2}}{\frac{x + 2 - x}{x + 2}} = \frac{2x}{2} = x g ( f ( x )) = g ( x + 2 x β ) = 1 β x + 2 x β 2 β
x + 2 x β β = x + 2 x + 2 β x β x + 2 2 x β β = 2 2 x β = x
Answer: Both compositions yield x x x , confirming f f f and g g g are inverses.
Key Takeaways
Composition ( f β g ) ( x ) = f ( g ( x ) ) (f \circ g)(x) = f(g(x)) ( f β g ) ( x ) = f ( g ( x )) applies g g g first, then f f f β order matters
The domain of f β g f \circ g f β g requires x x x in the domain of g g g and g ( x ) g(x) g ( x ) in the domain of f f f
Inverse functions satisfy f ( f β 1 ( x ) ) = x f(f^{-1}(x)) = x f ( f β 1 ( x )) = x and f β 1 ( f ( x ) ) = x f^{-1}(f(x)) = x f β 1 ( f ( x )) = x
To find an inverse algebraically: write y = f ( x ) y = f(x) y = f ( x ) , swap x x x and y y y , solve for y y y
A function must be one-to-one (pass the horizontal line test) to have an inverse
Restricting the domain can make a non-one-to-one function invertible
The graph of f β 1 f^{-1} f β 1 is the reflection of f f f over the line y = x y = x y = x
Return to College Algebra for more topics in this section.
β Previous Transformations (Comprehensive) Next Symmetry of Functions β
Last updated: March 29, 2026