IB Mathematics: Analysis and Approaches HL · IB AA HL SL 2.5

SL 2.5 · Work with composite and inverse functions

A function takes an allowed input and assigns it an output. In this lesson, you will use outputs as inputs to other functions, and you will…

International Baccalaureate (IB) IB AA HL: Mathematics: Analysis and Approaches HL

Functions

Build, interpret, and check functions made from other functions

A function takes an allowed input and assigns it an output. In this lesson, you will use outputs as inputs to other functions, and you will reverse a function when its outputs uniquely identify its inputs. These ideas occur in formulas that describe successive processes—for example, converting a measurement and then calculating a cost. The order of operations matters, and a function may need a restricted domain before it has an inverse. We will use algebra to explain the methods, then connect them to tables, graphs, and a technology check.

What you will learn

  • Evaluate a composite function by applying its functions in the correct order.
  • Find a composite function rule and identify where the composition is defined.
  • Understand an inverse function as a rule that reverses a one-to-one function.
  • Find and verify inverse functions, including any necessary domain restriction.
  • Use a table, graph, or graphing technology to check function relationships.

1. Prior knowledge: inputs, outputs, and domains

A function is a rule that assigns exactly one output to each input in its domain. The domain is the set of permitted inputs. For example, if f(x)=2x+3f(x)=2x+3, then an input of 44 produces f(4)=11f(4)=11. The notation f(x)f(x) names the output; it does not mean ff multiplied by xx.
When working with a function rule, substitute the input wherever its variable appears, using brackets to keep the substitution clear. For instance, if g(x)=x2−1g(x)=x^2-1, then g(3)=(3)2−1=8g(3)=(3)^2-1=8. A domain restriction can come from the context or from the rule: in a real-valued function involving a square root, the expression under the root must be non-negative.
These basics matter for composition because one function's output becomes the next function's input. They also matter for inverses: reversing a function is only possible as a function when each output being considered comes from just one input.
f(a)=bf(a)=b
  • The domain states which inputs are allowed.
  • Use brackets when substituting an expression for a variable.
  • A function must give one output for each allowed input.

2. Composite functions: apply one rule, then another

The composite function g∘fg\circ f means “gg after ff.” Its value at xx is g(f(x))g(f(x)): first find f(x)f(x), then use that result as the input to gg. The order is read from right to left in the composition symbol. In general, g∘fg\circ f and f∘gf\circ g are different functions.
To find a rule for a composite, substitute the entire expression for the inner function into the outer function. If f(x)=2x+1f(x)=2x+1 and g(x)=x2g(x)=x^2, then g(f(x))=(2x+1)2g(f(x))=(2x+1)^2. By contrast, f(g(x))=2x2+1f(g(x))=2x^2+1. The different rules show why order cannot be ignored.
A composite is defined only for inputs allowed by the inner function whose outputs are also allowed as inputs to the outer function. Thus, check both stages. In the example above, both rules accept every real input, so both composites have domain all real numbers. With restricted domains, the domain of the composite may be smaller.
A table makes the sequence visible: start with an input, record its output under ff, then use that output under gg. On a graph, the height of ff at an input is the input value to look up in gg. Graphing technology can help check a resulting rule over its domain, but it does not replace checking the substitution or restrictions.
(g∘f)(x)=g(f(x))(g\circ f)(x)=g(f(x))
  • g∘fg\circ f means apply ff first and then gg.
  • Substitute the complete inner expression into the outer rule.
  • The composition domain must satisfy the restrictions of both stages.

3. Inverse functions: reverse a one-to-one rule

An inverse function reverses the input-output process. If f(a)=bf(a)=b, then the inverse sends bb back to aa. The notation is f−1f^{-1}; it is not the reciprocal 1/f1/f. A function has an inverse function on a given domain when distinct inputs in that domain have distinct outputs.
For a simple algebraic rule, write y=f(x)y=f(x), interchange xx and yy, and solve for yy. The new expression is the inverse rule. The domain and range exchange roles: outputs of the original become inputs of the inverse. Check the result by composing in either order; where defined, the original input should be returned.
A graph gives a visual check. The points (a,b)(a,b) on the graph of ff correspond to (b,a)(b,a) on the graph of f−1f^{-1}. Thus the graphs are reflections across the line y=xy=x. If the original graph gives the same output for two different inputs, swapping coordinates would give two outputs for one inverse input, so the inverse would not be a function. A domain restriction can sometimes make the original one-to-one and allow an inverse.
When using graphing technology, plot the original rule and the proposed inverse, along with the line y=xy=x. The reflected appearance is a useful check, but confirm the domain restriction and algebra as well. A graphing window shows only part of a graph, so it cannot by itself establish the full domain.
f−1(f(x))=xf^{-1}(f(x))=x
  • An inverse reverses input and output; it is not a reciprocal.
  • Interchange variables and solve for the new output.
  • Original domain and range exchange roles.
  • The inverse must itself give one output for each allowed input.

A numerical view of a composition

xxf(x)=2x+1f(x)=2x+1g(f(x))=(f(x))2g(f(x))=(f(x))^2
011
2525

Worked example

Compose two rules and determine the domain

Let f(x)=x+1f(x)=\sqrt{x+1} and g(x)=3x−2g(x)=3x-2. Find (g∘f)(x)(g\circ f)(x) and its domain. Then evaluate it at x=8x=8.
  1. Identify the order
    In g∘fg\circ f, apply ff first. Its output is then the input to gg.
  2. Substitute
    Replace the input of gg with the full expression for f(x)f(x). Since f(x)f(x) is defined only when x+1x+1 is non-negative, the composition has the same restriction; gg accepts every real input.
    (g∘f)(x)=3x+1−2,x≥−1(g\circ f)(x)=3\sqrt{x+1}-2,\quad x\geq -1
  3. Evaluate
    At x=8x=8, the inner output is 9=3\sqrt{9}=3, and gg then maps 33 to 77.
    (g∘f)(8)=39−2=7(g\circ f)(8)=3\sqrt{9}-2=7
Answer: (g∘f)(x)=3x+1−2(g\circ f)(x)=3\sqrt{x+1}-2 for x≥−1x\geq -1, and (g∘f)(8)=7(g\circ f)(8)=7.
Check: The stages give f(8)=3f(8)=3 and g(3)=7g(3)=7, agreeing with the composite rule.

Worked example

Find an inverse and verify it

For f(x)=5x−4f(x)=5x-4, with domain all real numbers, find f−1(x)f^{-1}(x) and check the result by composition.
  1. Set the output equal to y
    This makes it possible to interchange input and output before solving for the inverse output.
    y=5x−4y=5x-4
  2. Interchange and solve
    Swap xx and yy, then isolate yy. The original rule has range all real numbers, so those values form the inverse's domain.
    x=5y−4⇒y=x+45x=5y-4\quad\Rightarrow\quad y=\frac{x+4}{5}
  3. Check the composition
    Substituting one rule into the other returns the starting input, confirming that the rules reverse each other.
    f−1(f(x))=(5x−4)+45=xf^{-1}(f(x))=\frac{(5x-4)+4}{5}=x
Answer: f−1(x)=x+45f^{-1}(x)=\frac{x+4}{5}, with domain all real numbers.
Check: Also, f(f−1(x))=5(x+45)−4=xf(f^{-1}(x))=5\left(\frac{x+4}{5}\right)-4=x.

Worked example

Restrict a domain before reversing

Let h(x)=x2+2h(x)=x^2+2 with domain x≥0x\geq 0. Find its inverse and state the inverse's domain.
  1. Use the stated restriction
    Without a restriction, the same output from squaring can come from a positive and a negative input. On x≥0x\geq 0, each output occurs once, so the rule can be reversed as a function.
  2. Interchange and solve
    Write y=x2+2y=x^2+2, interchange the variables, and solve for the non-negative output. The positive square root is required because the original input domain was non-negative.
    x=y2+2⇒y=x−2x=y^2+2\quad\Rightarrow\quad y=\sqrt{x-2}
  3. Exchange domain and range
    The original outputs satisfy y≥2y\geq 2, so they become the inverse's allowed inputs. The inverse outputs are non-negative, matching the original domain.
    h−1(x)=x−2,x≥2h^{-1}(x)=\sqrt{x-2},\quad x\geq 2
Answer: h−1(x)=x−2h^{-1}(x)=\sqrt{x-2} for x≥2x\geq 2.
Check: For x≥0x\geq0, h−1(h(x))=x2=xh^{-1}(h(x))=\sqrt{x^2}=x because the stated restriction ensures xx is non-negative.

Common mistakes and how to avoid them

Reading g∘fg\circ f as applying gg first.
Correction: Read from right to left: calculate f(x)f(x) first, then use that result in gg.
Substituting only part of the inner expression.
Correction: Use brackets around the complete inner output before applying the outer rule.
Assuming every function has an inverse function on its full domain.
Correction: Check whether distinct inputs can produce the same output. If necessary, use a suitable stated domain restriction.
Treating f−1(x)f^{-1}(x) as 1/f(x)1/f(x).
Correction: The notation means the inverse function, which reverses input and output; a reciprocal is a different operation.
Ignoring the domain when taking a square root while finding an inverse.
Correction: Use the original domain restriction to choose the correct inverse output and state the inverse's domain.

Lesson summary

  • A composite applies an inner function and then an outer function: (g∘f)(x)=g(f(x))(g\circ f)(x)=g(f(x)).
  • Find the domain by checking that the input is allowed for the inner function and its output is allowed for the outer function.
  • To find an inverse, interchange input and output and solve; state the resulting domain.
  • Check an inverse by composition and, when useful, by the reflection relationship between graphs.

Check your understanding

Question 1

If f(x)=x+4f(x)=x+4 and g(x)=2xg(x)=2x, what is (g∘f)(3)(g\circ f)(3)?
  1. 10
  2. 14
  3. 7
  4. 18
Show answer and explanation
14
First f(3)=7f(3)=7, then g(7)=14g(7)=14.

Question 2

For p(x)=3x+6p(x)=3x+6 on the real numbers, which expression is p−1(x)p^{-1}(x)?
  1. 3x−63x-6
  2. x−63\frac{x-6}{3}
  3. x+63\frac{x+6}{3}
  4. 13x+6\frac{1}{3x+6}
Show answer and explanation
x−63\frac{x-6}{3}
Interchange variables in y=3x+6y=3x+6 and solve to get y=(x−6)/3y=(x-6)/3.

Question 3

The rule q(x)=x2q(x)=x^2 has domain all real numbers. Why is its inverse relation not an inverse function on that domain?
  1. Its outputs are not real numbers.
  2. It has no outputs for negative inputs.
  3. The same output can come from two distinct inputs.
  4. It is already its own inverse.
Show answer and explanation
The same output can come from two distinct inputs.
For example, both 22 and −2-2 map to 44, so reversing the mapping would assign two outputs to input 44.

Key terms

Domain
The set of inputs for which a function is defined.
Composite function
A function formed by applying one function and then another.
Inverse function
A function that reverses the input-output mapping of another function on the stated domains.
One-to-one
A function property meaning that different allowed inputs give different outputs.

Continue through IB AA HL

View the complete IB AA HL International Baccalaureate (IB) IB AA HL: Mathematics: Analysis and Approaches HL curriculum and lessons

Tutor support for SL 2.5 · Work with composite and inverse functions

Working on SL 2.5 · Work with composite and inverse functions in IB AA HL? Bring the question and your own attempt. In a live session, you can label the axes and connect each feature of the graph to the equation or situation. Ask about the first step that does not make sense, then try a similar question yourself.

Explore math tutoring · Request an eligible free 30-minute introduction. Your request is matched by subject and language; a tutor must accept before a time is confirmed.

برای مبحث SL 2.5 · کار با توابع مرکب و وارون در درس IB AA HL، سؤال و تلاش خود را همراه بیاورید. در جلسه می‌توانید محورها را برچسب بزنید و هر ویژگی نمودار را به معادله یا موقعیت مسئله ربط دهید. راهنمای معلم ریاضی را ببینید یا جلسهٔ معارفهٔ رایگان ۳۰ دقیقه‌ای درخواست کنید. زمان جلسه پس از پذیرش معلم قطعی می‌شود.

About this lesson and its review

Published by DoAssignment. This reviewed lesson follows International Baccalaureate (IB) IB AA HL: Mathematics: Analysis and Approaches HL, study topic SL 2.5. It is a study resource, not an official curriculum publication.

Before publication, content is checked for structure, mathematical or chemical notation, calculations, course boundaries, and readability. Errors can still occur, so corrections are welcomed.

Official curriculum reference

Report a correction or ask a question