DoAssignment.ca

SL 2.5 · Work with composite and inverse functions

Learn to work with composite and inverse functions through clear examples and targeted practice.

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

Functions

IB Mathematics: Analysis and Approaches SL — Study topic SL 2.5

A function takes an allowed input and assigns an output. If one function doubles an input and another adds 33, applying one after the other creates a composite function. An inverse function reverses an input-output relationship when that relationship can be reversed uniquely. In this lesson, you will work with both ideas using algebra, numerical values, graphs, and contexts. The order of composition matters, and a function may need a restricted domain before it has an inverse function.

What you will learn

1. Prior knowledge: function notation and domains

The notation f(x)f(x) means the output of function ff for input xx; it does not mean ff multiplied by xx. A function's domain is the set of inputs it accepts, and its range is the set of outputs it produces. Check these restrictions before combining functions.
For example, g(x)=x−1g(x)=\sqrt{x-1} accepts inputs for which x−1≥0x-1\geq 0, so its domain is x≥1x\geq 1. The rule h(x)=2x+5h(x)=2x+5 accepts every real input. Such restrictions matter when one function's output becomes another function's input.
Function notation can describe a process. If ff converts a time in hours into a distance and gg converts a distance into a cost, then g(f(t))g(f(t)) gives the cost associated with time tt. The input and output units help identify which order makes sense.

2. Composite functions: apply one rule, then another

The composite function g∘fg\circ f is defined by (g∘f)(x)=g(f(x))(g\circ f)(x)=g(f(x)). Read this as “gg after ff”: apply ff first, then apply gg to the result. The function written on the inside acts first. Changing the order can change the result, so g∘fg\circ f and f∘gf\circ g need not be equal.
To find a rule for a composite function, substitute the entire expression f(x)f(x) wherever the input variable appears in gg. Use brackets to keep the substitution clear, then simplify. You can also evaluate at a particular input by following the two functions in order.
The domain of g∘fg\circ f includes inputs in the domain of ff whose outputs are in the domain of gg. This is a two-part check: the starting input must be allowed for ff, and the intermediate value f(x)f(x) must be allowed for gg. A simplified expression does not automatically remove these restrictions.
A table can show an input passing through ff to give an intermediate value, which then passes through gg. On a graph, the first function's output becomes the input used for the second function. In a context, check the units at each stage.
(g∘f)(x)=g(f(x))(g\circ f)(x)=g(f(x))

3. Inverse functions: reverse an input-output rule

An inverse function reverses a function's action. If ff sends aa to bb, its inverse sends bb back to aa. The notation is f−1f^{-1}; it does not mean the reciprocal 1/f1/f. Reversing is possible as a function only when each output in the relevant range comes from exactly one input.
For a one-to-one function, write y=f(x)y=f(x), interchange xx and yy, and solve for yy. The resulting rule is f−1(x)f^{-1}(x). The domain of f−1f^{-1} is the range of ff, and the range of f−1f^{-1} is the domain of ff.
A function that gives the same output for two different inputs cannot be reversed uniquely on its full domain. For example, x2x^2 gives 44 for both 22 and −2-2. It has no inverse function on all real inputs; restricting its original domain to x≥0x\geq 0 makes each output correspond to one input.
The graphs of a function and its inverse are reflections across the line y=xy=x, because reversing an input-output pair (a,b)(a,b) gives (b,a)(b,a). A graphing calculator can help check whether every horizontal line meets the original graph at most once. This is a visual check; algebra and any needed domain restriction still matter.
f−1(f(x))=xf^{-1}(f(x))=x

4. Technology and checking

A graphing calculator can display a function, a proposed inverse, and the line y=xy=x. Check whether the two function graphs appear reflected across that line, using a suitable viewing window. This visual check does not replace finding the inverse algebraically.
For a composite function, compare a calculator's value at a chosen input with a two-step calculation by hand. For an inverse, substitute the proposed rule into the original in both orders where the domains allow it. These checks can reveal a reversed order, an algebra error, or a domain mismatch.
In a written solution, show the substitutions and solving steps, then state relevant domain restrictions. Give decimal approximations only when needed and state their accuracy. In a context, include units in the interpretation.

Worked example

1. Find and evaluate composite functions

Let f(x)=3x−2f(x)=3x-2 and g(x)=x2+1g(x)=x^2+1. Find (g∘f)(x)(g\circ f)(x) and (f∘g)(x)(f\circ g)(x), then evaluate (g∘f)(2)(g\circ f)(2).
  1. Apply the inside function first
    For g∘fg\circ f, substitute the complete expression f(x)f(x) into the input of gg.
    (g∘f)(x)=(3x−2)2+1(g\circ f)(x)=(3x-2)^2+1
  2. Simplify and reverse the order
    Expand the square for the first rule. For f∘gf\circ g, put g(x)g(x) into the input of ff instead.
    (g∘f)(x)=9x2−12x+5,(f∘g)(x)=3x2+1(g\circ f)(x)=9x^2-12x+5,\quad (f\circ g)(x)=3x^2+1
  3. Evaluate using the composite rule
    Substitute x=2x=2 into g∘fg\circ f. Equivalently, f(2)=4f(2)=4 and then g(4)=17g(4)=17.
    (g∘f)(2)=9(2)2−12(2)+5=17(g\circ f)(2)=9(2)^2-12(2)+5=17
Answer: (g∘f)(x)=9x2−12x+5(g\circ f)(x)=9x^2-12x+5, (f∘g)(x)=3x2+1(f\circ g)(x)=3x^2+1, and (g∘f)(2)=17(g\circ f)(2)=17. Both composites have domain all real numbers.
Check: The two composite rules differ, confirming that order matters. Following the two function steps gives f(2)=4f(2)=4 and g(4)=17g(4)=17, as required.

Worked example

2. Find an inverse with a restricted domain

Let f(x)=x2−4f(x)=x^2-4 with domain x≥0x\geq 0. Find f−1(x)f^{-1}(x) and state its domain and range.
  1. Write the function with an output variable
    Use yy for the output and retain the given restriction on the original input.
    y=x2−4,x≥0y=x^2-4,\quad x\geq0
  2. Interchange input and output
    Reversing the input-output pairs means swapping xx and yy.
    x=y2−4x=y^2-4
  3. Solve for the new output
    Rearrange to get y2=x+4y^2=x+4. The original restriction x≥0x\geq0 means the inverse output must be non-negative, so choose the non-negative square root.
    y=x+4y=\sqrt{x+4}
Answer: f−1(x)=x+4f^{-1}(x)=\sqrt{x+4}, with domain x≥−4x\geq -4 and range y≥0y\geq 0.
Check: For original inputs x≥0x\geq0, f−1(f(x))=x2=xf^{-1}(f(x))=\sqrt{x^2}=x. The range of the original function is y≥−4y\geq-4, which is the domain of the inverse.

Worked example

3. Find a composite rule and its domain in context

A conversion rule changes a temperature CC in degrees Celsius to f(C)=1.8C+32f(C)=1.8C+32 degrees Fahrenheit. A second rule is g(F)=F−32g(F)=\sqrt{F-32}. Find (g∘f)(C)(g\circ f)(C) and its domain.
  1. Substitute the conversion output
    The Fahrenheit value f(C)f(C) becomes the input to gg. Substitute the full expression into the square root.
    (g∘f)(C)=1.8C+32−32(g\circ f)(C)=\sqrt{1.8C+32-32}
  2. Simplify and impose the domain condition
    The expression under a square root must be non-negative. Since 1.81.8 is positive, solve the resulting inequality for CC.
    (g∘f)(C)=1.8C,C≥0(g\circ f)(C)=\sqrt{1.8C},\quad C\geq0
Answer: (g∘f)(C)=1.8C(g\circ f)(C)=\sqrt{1.8C} for C≥0C\geq0. The output has the units specified by gg.
Check: At C=10C=10, the conversion gives 5050 degrees Fahrenheit, and g(50)=18≈4.24g(50)=\sqrt{18}\approx4.24 to three significant figures. This agrees with evaluating the composite rule.

Common mistakes and how to avoid them

Reading (g∘f)(x)(g\circ f)(x) as f(g(x))f(g(x)).
Correction: The function on the inside acts first, so (g∘f)(x)=g(f(x))(g\circ f)(x)=g(f(x)).
Assuming f−1(x)f^{-1}(x) means 1/f(x)1/f(x).
Correction: The superscript −1-1 denotes the inverse function; a reciprocal is written 1/f(x)1/f(x).
Finding an inverse formula but ignoring whether the original function is one-to-one.
Correction: Check whether an output can come from more than one input. If so, restrict the original domain appropriately or state that there is no inverse function on that domain.
Using the original domain as the inverse's domain.
Correction: The inverse's domain is the original function's range, and its range is the original domain.

Lesson summary

Check your understanding

Question 1

If f(x)=2x+1f(x)=2x+1 and g(x)=x2g(x)=x^2, what is (g∘f)(3)(g\circ f)(3)?
  1. 4949
  2. 3737
  3. 77
  4. 1919
Show answer and explanation
4949
First f(3)=7f(3)=7, then g(7)=49g(7)=49.

Question 2

For f(x)=5x−10f(x)=5x-10, what is f−1(x)f^{-1}(x)?
  1. 5x+105x+10
  2. x+105\frac{x+10}{5}
  3. x−105\frac{x-10}{5}
  4. 10−5x10-5x
Show answer and explanation
x+105\frac{x+10}{5}
From y=5x−10y=5x-10, swap variables and solve: x=5y−10x=5y-10, so y=(x+10)/5y=(x+10)/5.

Question 3

The function h(x)=x2h(x)=x^2 has domain all real numbers. Which statement is correct?
  1. It has an inverse function because every output is positive.
  2. It has no inverse function on all real numbers because different inputs can give the same output.
  3. Its inverse is 1/x21/x^2.
  4. Its inverse has domain all real numbers.
Show answer and explanation
It has no inverse function on all real numbers because different inputs can give the same output.
For instance, h(2)=h(−2)=4h(2)=h(-2)=4, so the output does not identify a unique input.

Key terms

Composite function
A function formed by applying one function to the output of another, such as (g∘f)(x)=g(f(x))(g\circ f)(x)=g(f(x)).
Inverse function
A function that reverses the input-output pairs of an original function when each relevant output comes from exactly one input.
One-to-one
A function for which different inputs in its domain always produce different outputs.
Domain
The set of inputs for which a function is defined.
Range
The set of outputs a function produces from its domain.

Continue through IB AA SL

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

About this lesson and its review

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

Before publication, the draft is checked for structure, mathematical or chemical notation, calculations, course boundaries, and readability, and then requires administrator approval. Errors can still occur, so corrections are welcomed.

Official curriculum reference

Report a correction or ask a question