P3 1.2 - Composite and inverse functions

P3 1.2 - Composite and inverse functions

Combine functions in a specified order and reverse a one-one function with an inverse. Domains decide which combinations exist, which inverse branch to choose and which portion of a reflected graph to draw.

Composition order and domains

If you square a number and then add one, do you get the same result as adding one and then squaring? At input 22, these give 55 and 99. The order of two functions matters just as much.

Composite function

The composite fgfg means “apply gg first, then ff”:

fg(x)=f(g(x)).fg(x)=f(g(x)).

An input xx is allowed only if it belongs to the domain of gg and its intermediate output g(x)g(x) belongs to the domain of ff.

Read the function nearest the input first. To find a composite's rule, substitute the whole inner rule into the outer rule; to find its domain, check both stages before simplifying.

Worked example 1: a restriction at the second stage

Question. Let f(x)=xf(x)=\sqrt{x}, with domain x≥0x\ge0, and g(x)=2x−6g(x)=2x-6, with domain R\mathbb R. Find fg(x)fg(x) and its domain.

Plan. Apply the linear rule first and require its output to be an allowed square-root input.

fg(x)=f(2x−6)=2x−6.fg(x)=f(2x-6)=\sqrt{2x-6}.

The first stage accepts every real input. The second requires

2x−6≥0⇒x≥3.2x-6\ge0\quad\Rightarrow\quad x\ge3.

Answer. fg(x)=2x−6fg(x)=\sqrt{2x-6}, with domain [3,∞)[3,\infty).

Check. At x=5x=5, gg gives 44, then ff gives 22. The composite formula also gives 4=2\sqrt4=2. At x=2x=2, the intermediate value is −2-2, so the composition fails.

Change only the composition order. The square-root restriction now acts on the original input.

Worked example 2: reversing the order

Question. For the same functions, find gf(x)gf(x) and its domain.

Plan. Apply the square root first, then the linear rule.

gf(x)=g(x)=2x−6.gf(x)=g(\sqrt{x})=2\sqrt{x}-6.

The input must satisfy x≥0x\ge0. The output x\sqrt{x} is always an allowed input for gg, which accepts every real number.

Answer. gf(x)=2x−6gf(x)=2\sqrt{x}-6, with domain [0,∞)[0,\infty).

Check. At x=4x=4, ff gives 22, then gg gives −2-2. Negative final outputs are allowed: the square root has already been taken.

A given domain remains binding even when the formula alone would accept more inputs. If gg above were defined only for x≥5x\ge5, the domain of fgfg would be x≥5x\ge5, not x≥3x\ge3.

Watch out

fg(x)fg(x) is neither f(x)g(x)f(x)g(x) nor g(f(x))g(f(x)). Write the nested form f(g(x))f(g(x)) before substituting to keep the order clear.

Check both stages for each order.

Finding an inverse

An inverse takes an output back to the unique input that produced it.

For f(x)=2x+3f(x)=2x+3, input 44 gives output 1111. Undoing the steps in reverse order gives (11−3)/2=4(11-3)/2=4. Thus the inverse rule is f−1(x)=(x−3)/2f^{-1}(x)=(x-3)/2.

Inverse function

For a one-one function ff, its inverse f−1f^{-1} reverses every input-output pair. The domain of f−1f^{-1} is the range of ff, and its range is the domain of ff. On the appropriate domains,

f−1f(x)=x,ff−1(x)=x.f^{-1}f(x)=x,\qquad ff^{-1}(x)=x.

The superscript −1-1 denotes an inverse function, not a reciprocal.

To find an inverse algebraically, put y=f(x)y=f(x), solve for the original input xx, then express that reversed rule using xx as its new input variable. Include the inverse domain when the function itself is requested.

Worked example 3: an inverse with an excluded input

Question. Find f−1f^{-1} for f(x)=3x+1x−2f(x)=\dfrac{3x+1}{x-2}, with domain x≠2x\ne2.

Plan. Collect the terms containing the original input before dividing, then determine the range of ff.

y=3x+1x−2yx−2y=3x+1multiply by x−2x(y−3)=2y+1collect and factorise xx=2y+1y−3\begin{aligned} y&=\frac{3x+1}{x-2}\\ yx-2y&=3x+1 &&\text{multiply by }x-2\\ x(y-3)&=2y+1 &&\text{collect and factorise }x\\ x&=\frac{2y+1}{y-3} \end{aligned}

Output y=3y=3 is impossible: it would require 3x−6=3x+13x-6=3x+1. Every y≠3y\ne3 gives an input from the final rule, and that input is not 22, since 2y+1=2(y−3)2y+1=2(y-3) is impossible.

Answer. f−1(x)=2x+1x−3f^{-1}(x)=\dfrac{2x+1}{x-3}, with domain x≠3x\ne3. The unique recovered input also establishes that ff is one-one.

Check. f(0)=−1/2f(0)=-1/2, and f−1(−1/2)=0f^{-1}(-1/2)=0. Also f−1(1)=−3/2f^{-1}(1)=-3/2, and f(−3/2)=1f(-3/2)=1: the rules undo one another in both directions.

Change only the numerator's constant from 11 to −4-4. Collecting the input terms still creates the same excluded inverse input.

Worked example 4: retaining the inverse domain

Question. Find g−1g^{-1} for g(x)=3x−4x−2g(x)=\dfrac{3x-4}{x-2}, with domain x≠2x\ne2.

Plan. Reverse the mapping by solving y=g(x)y=g(x) for xx.

yx−2y=3x−4x(y−3)=2y−4x=2y−4y−3\begin{aligned} yx-2y&=3x-4\\ x(y-3)&=2y-4\\ x&=\frac{2y-4}{y-3} \end{aligned}

Again y=3y=3 would give a contradiction, now −6=−4-6=-4. For any y≠3y\ne3, the recovered input cannot equal 22.

Answer. g−1(x)=2x−4x−3g^{-1}(x)=\dfrac{2x-4}{x-3}, with domain x≠3x\ne3.

Check. g(0)=2g(0)=2 and g−1(2)=0g^{-1}(2)=0. Conversely g−1(4)=4g^{-1}(4)=4, and g(4)=4g(4)=4.

The domain is part of a function's description, not an optional note after its formula.

Watch out

For f(x)=2x+3f(x)=2x+3, the inverse is (x−3)/2(x-3)/2, while the reciprocal is 1/(2x+3)1/(2x+3). Only the inverse reverses the input-output pair 4↦114\mapsto11.

Collect both terms involving the original input on one side.

Restricting a domain to make an inverse

A many-one function needs a restricted domain before its reversal can be a function.

For f(x)=(x−1)2+2f(x)=(x-1)^2+2 on all real inputs, both −1-1 and 33 produce 66. Reversing would ask one input, 66, to produce two outputs. Keeping only one side of the vertex removes that ambiguity.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account