Composition and Inverse Functions

Pass outputs through composed functions in the correct order, including domain restrictions on intermediate values. Determine when an inverse can uniquely recover an input and distinguish inversion from reciprocation.

Function composition joins rules by using one function's output as another function's input. An inverse function reverses a rule without losing which input produced which output. Both ideas require attention to order, domains, and information that may have been discarded.

Composition Passes an Output Forward

Let

f(x)=2xf(x)=2x

and

g(x)=x+3.g(x)=x+3.

The composition gfg\circ f means apply ff first and then apply gg:

(gf)(x)=g(f(x))=g(2x)=2x+3.(g\circ f)(x)=g(f(x))=g(2x)=2x+3.

gg composed with ff, evaluated at xx, means apply ff to xx first and then apply gg to that result.

At x=4x=4, the intermediate value is f(4)=8f(4)=8, and the final output is g(8)=11g(8)=11.

Composition is read from the inside outward. In g(f(x))g(f(x)), the inner expression f(x)f(x) is evaluated first. The notation gfg\circ f follows the same order even though gg is written on the left.

Order matters. Reversing the functions gives:

(fg)(x)=f(g(x))=f(x+3)=2x+6,(f\circ g)(x)=f(g(x))=f(x+3)=2x+6,

which is generally different from 2x+32x+3.

Exercise: Evaluate a composition

Let f(x)=x2f(x)=x^2 and g(x)=x+1g(x)=x+1. What is (fg)(3)(f\circ g)(3)?

Compute it first, then check your number.

Review

Not marked done.

Your checked work will be saved automatically.

Correct records the checked result. Done is your learning status, and you can undo it.

Clearing an answer or resetting code starts the response again. It does not remove Done or Review.

Your checked work will be saved automatically.

HintWork from the inside outward

First compute g(3)g(3). Use that output as the input to ff.

SolutionFollow the composition order

Apply gg first:

g(3)=3+1=4.g(3)=3+1=4.

Then apply ff:

f(4)=42=16.f(4)=4^2=16.

Therefore (fg)(3)=16(f\circ g)(3)=16. Reversing the order would evaluate g(f(3))=g(9)=10g(f(3))=g(9)=10, a different result.

The Intermediate Output Must Be Allowed

The composition gfg\circ f is defined only for inputs xx for which f(x)f(x) is defined and the resulting value f(x)f(x) belongs to the domain of gg.

For example, let:

f(x)=x2,g(u)=u.f(x)=x-2, \qquad g(u)=\sqrt{u}.

Then:

(gf)(x)=x2.(g\circ f)(x)=\sqrt{x-2}.

Over the real numbers, the intermediate value must satisfy x20x-2\ge0. Therefore the composition has domain x2x\ge2, even though f(x)=x2f(x)=x-2 itself accepts every real input.

Exercise: Find the domain of a composition

Let f(x)=x+5f(x)=x+5 and g(u)=ug(u)=\sqrt{u}. What is the smallest real input allowed for (gf)(x)(g\circ f)(x)?

Compute it first, then check your number.

Review

Not marked done.

Your checked work will be saved automatically.

Correct records the checked result. Done is your learning status, and you can undo it.

Clearing an answer or resetting code starts the response again. It does not remove Done or Review.

Your checked work will be saved automatically.

HintApply the outer function's domain

The outer square root requires x+50x+5\ge0.

SolutionRestrict the intermediate value

The composition is:

(gf)(x)=x+5.(g\circ f)(x)=\sqrt{x+5}.

Its real-valued domain requires:

x+50x5.x+5\ge0 \quad\Longrightarrow\quad x\ge-5.

The smallest allowed input is 5-5.

Long compositions are often easier to inspect when intermediate values are named. If h=f(x)h=f(x) and y=g(h)y=g(h), then y=g(f(x))y=g(f(x)). The same pattern describes unit conversion, coordinate transformations, signal processing stages, and layers in a neural network.

Composition is associative when all expressions are defined:

h(gf)=(hg)f.h\circ(g\circ f)=(h\circ g)\circ f.

The grouping may change, but the order ff then gg then hh does not.

An Inverse Reverses a Function

Suppose ff maps an input xx to an output yy. An inverse function f1f^{-1} maps that output back to the original input. On the relevant domains, both directions must hold:

f1(f(x))=xf^{-1}(f(x))=x

and

f(f1(y))=y.f(f^{-1}(y))=y.

The notation f1f^{-1} means inverse function. It does not mean the reciprocal 1/f(x)1/f(x).

For:

f(x)=3x+2,f(x)=3x+2,

write y=3x+2y=3x+2 and solve for xx:

y2=3x,x=y23.y-2=3x, \qquad x=\frac{y-2}{3}.

Therefore:

f1(y)=y23.f^{-1}(y)=\frac{y-2}{3}.

The inverse undoes the forward operations in reverse order: subtract 22 and then divide by 33.

Exercise: Evaluate an inverse

For f(x)=5x1f(x)=5x-1, what is f1(19)f^{-1}(19)?

Compute it first, then check your number.

Review

Not marked done.

Your checked work will be saved automatically.

Correct records the checked result. Done is your learning status, and you can undo it.

Clearing an answer or resetting code starts the response again. It does not remove Done or Review.

Your checked work will be saved automatically.

HintReverse the two operations

The forward rule multiplies by 55 and then subtracts 11. Undo them in reverse order.

SolutionRecover the original input

Solving y=5x1y=5x-1 for xx gives:

f1(y)=y+15.f^{-1}(y)=\frac{y+1}{5}.

Therefore:

f1(19)=205=4.f^{-1}(19)=\frac{20}{5}=4.

Checking with the forward rule gives f(4)=5(4)1=19f(4)=5(4)-1=19.

Exercise: Distinguish an inverse from a reciprocal

If f(x)=2xf(x)=2x, which rule is its inverse?

Choose the inverse rule

Select one choice, then check.

Review

Not marked done.

Your checked work will be saved automatically.

Correct records the checked result. Done is your learning status, and you can undo it.

Clearing an answer or resetting code starts the response again. It does not remove Done or Review.

Your checked work will be saved automatically.

HintTest the round trip

Apply the candidate rule to f(x)=2xf(x)=2x and see whether it returns xx.

SolutionUndo multiplication

The forward function multiplies by 22, so the inverse divides by 22:

f1(y)=y2.f^{-1}(y)=\frac{y}{2}.

The round trip confirms it:

f1(f(x))=2x2=x.f^{-1}(f(x))=\frac{2x}{2}=x.

The reciprocal 1/f(x)1/f(x) is a different function and does not undo ff.

An Inverse Requires Unique Recovery

For an inverse to recover an input, different allowed inputs must not produce the same output. Such a function is called one-to-one, or injective.

The function f(x)=x2f(x)=x^2 is not one-to-one on all real numbers because both 33 and 3-3 map to 99. From the output 99 alone, an inverse cannot know which input to return. On a graph, this failure appears when a horizontal line crosses the graph more than once.

If the domain is restricted to x0x\ge0, every output in [0,)[0,\infty) has one allowed input, and the inverse is:

f1(y)=y,y0.f^{-1}(y)=\sqrt{y}, \qquad y\ge0.

The inverse swaps the original function's domain and range. Its graph is the reflection of the original graph across the line y=xy=x.

Exercise: Identify a lost input distinction

Why does f(x)=xf(x)=|x| have no inverse on all real numbers?

Choose the reason

Select one choice, then check.

Review

Not marked done.

Your checked work will be saved automatically.

Correct records the checked result. Done is your learning status, and you can undo it.

Clearing an answer or resetting code starts the response again. It does not remove Done or Review.

Your checked work will be saved automatically.

HintTest opposite inputs

Evaluate the function at 22 and 2-2.

SolutionShow the collision

Both inputs produce the same output:

2=2,2=2.|2|=2, \qquad |-2|=2.

An inverse receiving 22 would not know which original input to return. Restricting the domain to x0x\ge0 or to x0x\le0 would remove the collision and permit an inverse on the corresponding range.

Trace Forward, Then Reverse

For a composition, work from the innermost function outward and check that each intermediate value belongs to the next function's domain. For an inverse, ask whether the output uniquely identifies its input, reverse the operations in the opposite order, and verify both round trips. If a stage merges several inputs into one output, later stages cannot recover the lost distinction.

Review

Not marked done.