A7 - Inverse and composite functions

A7 - Inverse and composite functions

Function notation lets you name a rule, reverse it and combine it with another rule. You will calculate with numerical and algebraic inputs, find inverse functions with appropriate restrictions, and solve equations involving compositions in either order.

Function notation and permitted inputs (Higher)

Two machines use the rules “double and add one” and “square”. If you feed in 33, does swapping the machines change the answer? One order gives 1919, the other 4949. Naming the functions will help us explain exactly why.

You already know

A function gives one output for each permitted input. Substitute into the whole rule, and reverse operations in the opposite order when recovering an input.

Write f(x)=3x−2f(x)=3x-2. The letter ff names the function, while xx is an input placeholder. The notation f(5)f(5) means the output at input 55, not ff multiplied by five. You replace every input placeholder with the new input.

Domain and range

The domain is the set of permitted inputs. The range is the set of outputs actually obtained from that domain. For f(x)=x2f(x)=x^2 with all real inputs, the domain is all real numbers and the range is f(x)≥0f(x)\geq0.

The notation works for a number or a whole algebraic expression.

Worked example 1: a numerical input

Question. Given f(x)=3x−2f(x)=3x-2, find f(5)f(5).

Plan. Replace xx by 55, then follow the rule.

f(5)=3(5)−2substitute the input=15−2multiply first=13subtract two\begin{aligned} f(5)&=3(5)-2 && \text{substitute the input} \\ &=15-2 && \text{multiply first} \\ &=13 && \text{subtract two} \end{aligned}

Why substitute inside the rule? The bracket after the function's name specifies the input; it is not an instruction to multiply the function by that input.

Answer. f(5)=13f(5)=13.

Check. Reversing numerically gives (13+2)/3=5(13+2)/3=5.

Change only the input, from a number to the expression a+1a+1. The rule still acts on the complete input.

Worked example 2: an algebraic input

Question. Given f(x)=3x−2f(x)=3x-2, find f(a+1)f(a+1).

Plan. Replace xx with the whole bracket a+1a+1, then expand.

f(a+1)=3(a+1)−2substitute the whole input=3a+3−2expand the bracket=3a+1collect the constants\begin{aligned} f(a+1)&=3(a+1)-2 && \text{substitute the whole input} \\ &=3a+3-2 && \text{expand the bracket} \\ &=3a+1 && \text{collect the constants} \end{aligned}

Why keep brackets? Three must multiply both terms of the input. Writing 3a+1−23a+1-2 would fail to multiply its added one.

Answer. f(a+1)=3a+1f(a+1)=3a+1.

Check. At a=4a=4, the input is 55, and the result is 3(4)+1=133(4)+1=13, agreeing with example 1.

Negative inputs need the same care: f(−4)=3(−4)−2=−14f(-4)=3(-4)-2=-14. Restrictions still apply before substitution. For g(x)=4/(x−2)g(x)=4/(x-2), input 22 is forbidden, but g(4)=2g(4)=2. For h(x)=xh(x)=\sqrt{x} with real outputs, x≥0x\geq0 and h(9)=3h(9)=3, since the square-root symbol selects the non-negative root.

A model can restrict inputs further. If C(t)=6+4tC(t)=6+4t describes a hire charge in pounds for 0≤t≤80\leq t\leq8 hours, C(−2)C(-2) is outside its stated domain even though the expression can be evaluated there.

Watch out

Wrong: h(9)=±3h(9)=\pm3 for h(x)=xh(x)=\sqrt{x}. Right: 9=3\sqrt{9}=3. The equation u2=9u^2=9 has two solutions; the square-root function gives one output.

Change only the algebraic input for your turn.

Reversing a function (Higher)

An inverse function takes an original output and returns the input that produced it.

For f(x)=3x−2f(x)=3x-2, input 55 gives output 1313. The inverse therefore sends 1313 back to 55. Its notation is f−1f^{-1}, read “f inverse”.

Inverse function

An inverse function reverses a function uniquely on the chosen domain. If f(a)=bf(a)=b, then f−1(b)=af^{-1}(b)=a. Its domain is the original function's range, and its range is the original function's domain.

The diagram makes both the reversed operations and their reversed order visible.

[DIAGRAM: asset_name: A function and its inverse; asset_slug: 1ma1_m20_inverse; caption: The inverse reverses the order of the forward operations.; description: The top row sends input 5 through multiply by 3 and subtract 2 to output 13. The lower row sends 13 through add 2 and divide by 3 back to 5.]
The inverse reverses the order of the forward operations.

To obtain a formula, write y=f(x)y=f(x), make the original xx the subject, then rename the inverse input as xx.

Worked example 3: an inverse of a linear function

Question. Let f(x)=3x−2f(x)=3x-2, for all real xx. Find f−1(x)f^{-1}(x).

Plan. Undo subtracting two, then undo multiplying by three.

y=3x−2name the original outputy+2=3xadd two to both sidesx=y+23divide by threef−1(x)=x+23rename the inverse input\begin{aligned} y&=3x-2 && \text{name the original output} \\ y+2&=3x && \text{add two to both sides} \\ x&=\frac{y+2}{3} && \text{divide by three} \\ f^{-1}(x)&=\frac{x+2}{3} && \text{rename the inverse input} \end{aligned}

Why rename at the end? The inverse input was the original output. The letter xx in the final answer names that new input.

Answer. f−1(x)=(x+2)/3f^{-1}(x)=(x+2)/3, for all real inputs.

Check. f−1(13)=(13+2)/3=5f^{-1}(13)=(13+2)/3=5, and f(5)=13f(5)=13.

Change only the sign of the constant: the forward function now adds two, so the inverse subtracts it.

Worked example 4: the changed constant

Question. Let g(x)=3x+2g(x)=3x+2, for all real xx. Find g−1(x)g^{-1}(x).

Plan. Subtract two before dividing by three.

y=3x+2name the outputy−2=3xundo additionx=y−23undo multiplicationg−1(x)=x−23rename the input\begin{aligned} y&=3x+2 && \text{name the output} \\ y-2&=3x && \text{undo addition} \\ x&=\frac{y-2}{3} && \text{undo multiplication} \\ g^{-1}(x)&=\frac{x-2}{3} && \text{rename the input} \end{aligned}

Why not divide first and then subtract two? That would subtract two from one third of the output rather than undoing the final addition to the tripled input.

Answer. g−1(x)=(x−2)/3g^{-1}(x)=(x-2)/3, for all real inputs.

Check. g(4)=14g(4)=14, and g−1(14)=(14−2)/3=4g^{-1}(14)=(14-2)/3=4.

For a fraction rule, reverse in the same way: y=(x−4)/2y=(x-4)/2 gives 2y=x−42y=x-4, then x=2y+4x=2y+4, so its inverse rule is 2x+42x+4.

Squaring on all real inputs has no inverse function: both 33 and −3-3 give 99, so reversing cannot choose one output. Restricting q(x)=x2q(x)=x^2 to x≥0x\geq0 gives q−1(x)=xq^{-1}(x)=\sqrt{x}, with inverse domain x≥0x\geq0. Restricting the original to x≤0x\leq0 instead gives q−1(x)=−xq^{-1}(x)=-\sqrt{x}, again with inverse domain x≥0x\geq0. The original domain decides the branch.

Restrictions also matter for linear functions. If r(x)=2x+1r(x)=2x+1 for x≥3x\geq3, its range is r(x)≥7r(x)\geq7. Thus r−1(x)=(x−1)/2r^{-1}(x)=(x-1)/2 has domain x≥7x\geq7 and range r−1(x)≥3r^{-1}(x)\geq3.

Watch out

Wrong: f−1(x)=1/f(x)f^{-1}(x)=1/f(x). Right: the inverse undoes the function. A reciprocal divides one by its output and usually gives a completely different rule.

Continue this lesson.

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

Create free account