HA7 - Composite and inverse functions

HA7 - Composite and inverse functions

Does “square, then subtract” give the same result as “subtract, then square”? HA7 names input-output rules, combines them in a stated order, and reverses rules when each output identifies exactly one allowed input.

Function notation

A function machine can be written as a rule. The letter names the machine; the expression in brackets tells you what to put into it.

Functions and allowed inputs

A function assigns exactly one output to each allowed input. In f(x)=3x−2f(x)=3x-2, f(x)f(x) means the output of function ff at input xx; it does not mean f×xf\times x. The domain is the set of allowed inputs. The range is the set of outputs actually produced from that domain.

To evaluate a function, replace every occurrence of its input letter by the complete new input, using brackets. Unless a smaller domain is stated, use all real inputs for which the displayed rule is defined. For real-valued rules, a denominator cannot be zero and a quantity under a square root cannot be negative.

Worked example 1: numerical and algebraic inputs

Question. Let f(x)=3x−2f(x)=3x-2, with all real inputs allowed. Find f(−4)f(-4), f(2/3)f(2/3) and f(a+1)f(a+1).

Plan. Substitute the whole input for xx, then apply the rule's operations.

f(−4)=3(−4)−2=−14,f(2/3)=3(2/3)−2=0,f(a+1)=3(a+1)−2=3a+1.\begin{aligned} f(-4)&=3(-4)-2=-14,\\ f(2/3)&=3(2/3)-2=0,\\ f(a+1)&=3(a+1)-2=3a+1. \end{aligned}

The brackets in the final line ensure that both terms in a+1a+1 are multiplied by three.

Answer. −14-14, 00 and 3a+13a+1, respectively.

Check. Reversing the numerical operations gives (−14+2)/3=−4(-14+2)/3=-4 and (0+2)/3=2/3(0+2)/3=2/3. At a=0a=0, the original input is one and f(1)=1f(1)=1, matching 3a+1=13a+1=1.

An expression can look substitutable while the resulting input is forbidden.

Worked example 2: a restricted domain

Question. Let g(x)=12/(x−3)g(x)=12/(x-3). State its real domain and find g(−1)g(-1), g(5)g(5) and, if possible, g(3)g(3).

Plan. Identify a zero denominator before evaluating the permitted inputs.

The denominator is zero when x−3=0x-3=0, so three is excluded. Then

g(−1)=12−1−3=−3,g(5)=125−3=6.g(-1)=\frac{12}{-1-3}=-3,\qquad g(5)=\frac{12}{5-3}=6.

At three the denominator would be zero; division by zero has no defined real value.

Answer. Domain: all real xx with x≠3x\ne3. The outputs are g(−1)=−3g(-1)=-3, g(5)=6g(5)=6; g(3)g(3) is undefined.

Check. Output times denominator recovers twelve: (−3)(−4)=12(-3)(-4)=12 and 6(2)=126(2)=12. No output multiplied by zero could recover twelve, confirming why the excluded input cannot work.

A square-root example has a different restriction: h(x)=x+4h(x)=\sqrt{x+4} is real-valued for x≥−4x\ge-4, and its range is h(x)≥0h(x)\ge0. The square root symbol denotes the non-negative root, so this rule still gives one output per input.

Watch out

f(2)f(2) means apply the rule to two. Writing 2f(x)2f(x) instead means double the output at xx, which is a different instruction.

Use a domain condition as well as substitution.

Composite functions

Two machines in succession form one new rule. Their order is part of the instruction.

Composition

The composite function fg(x)fg(x) means f(g(x))f(g(x)): apply gg first, then apply ff to its output. Read the function nearest the input first. Both stages must be defined: xx must be in the domain of gg, and g(x)g(x) must be an allowed input of ff.

Composition is not multiplication. It is usually order-dependent: the output of the first rule becomes the entire input of the second.

Worked example 3: comparing the two orders

Question. Let f(x)=2x−3f(x)=2x-3 and g(x)=x2+1g(x)=x^2+1, both with all real inputs. Find fg(x)fg(x), gf(x)gf(x), fg(2)fg(2) and gf(2)gf(2).

Plan. Write the nested brackets first, replacing the outer rule's input by the complete inner output.

fg(x)=f(x2+1)=2(x2+1)−3=2x2−1,gf(x)=g(2x−3)=(2x−3)2+1=4x2−12x+10.\begin{aligned} fg(x)&=f(x^2+1)=2(x^2+1)-3=2x^2-1,\\ gf(x)&=g(2x-3)=(2x-3)^2+1\\ &=4x^2-12x+10. \end{aligned}

Both composite domains are all real numbers. At two, these give 2(2)2−1=72(2)^2-1=7 and 4(2)2−12(2)+10=24(2)^2-12(2)+10=2.

Answer. fg(x)=2x2−1fg(x)=2x^2-1, gf(x)=4x2−12x+10gf(x)=4x^2-12x+10; fg(2)=7fg(2)=7, gf(2)=2gf(2)=2.

Check. Direct machine routes give 2→5→72\to5\to7 for gg then ff, and 2→1→22\to1\to2 for ff then gg. This checks the order independently of the expanded expressions.

Simplifying the resulting expression does not erase a restriction needed during either original stage.

Continue this lesson.

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

Create free account