Introduction to Advanced Functions

Welcome to one of the most powerful chapters in the IB Applications and Interpretation HL course! So far, you have worked with standard functions like linear, quadratic, and exponential models. However, the real world is rarely that simple. Sometimes, one process happens after another (Composite Functions), or we need to reverse a process to find an input (Inverse Functions). We also frequently need to shift, flip, or stretch our models to fit real-world data (Transformations).

In this chapter, we will learn how to "build" and "adjust" functions to create highly accurate mathematical models. Don't worry if these sound abstract; we’ll break them down using simple analogies and step-by-step guides.


1. Composite Functions: The "Assembly Line"

A composite function is created when the output of one function becomes the input of another. Think of it like an assembly line: Product A goes into Machine 1, and the result then goes into Machine 2.

The Notation

We write composite functions as \( (f \circ g)(x) \). This is read as "\( f \) of \( g \) of \( x \)" and it means:
\( (f \circ g)(x) = f(g(x)) \)

Important: Always work from the inside out. You calculate \( g(x) \) first, then plug that answer into \( f \).

Step-by-Step Example

If \( f(x) = x^2 \) and \( g(x) = 2x + 3 \), find \( (f \circ g)(x) \).

  1. Identify the "inner" function: \( g(x) = 2x + 3 \).
  2. Place this entire expression inside \( f \): \( f(2x + 3) \).
  3. Apply the rule for \( f \) (which is to square the input): \( (2x + 3)^2 \).
  4. Expand if necessary: \( 4x^2 + 12x + 9 \).

Note: Generally, \( f(g(x)) \) is NOT the same as \( g(f(x)) \). The order matters!

Quick Takeaway: In composite functions, the range of the inner function becomes the domain of the outer function.


2. Inverse Functions and Domain Restriction

An inverse function, written as \( f^{-1}(x) \), "undoes" what the original function did. If \( f(2) = 5 \), then \( f^{-1}(5) = 2 \).

How to find the Inverse Algebraically
  1. Replace \( f(x) \) with \( y \).
  2. Swap the \( x \) and \( y \) variables.
  3. Rearrange the equation to solve for \( y \).
  4. Replace \( y \) with \( f^{-1}(x) \).
The HL Twist: Domain Restriction

Not every function has an inverse. To have an inverse, a function must be one-to-one (each \( y \)-value must come from only one \( x \)-value).
Think of \( f(x) = x^2 \). Both \( 2 \) and \( -2 \) give an output of \( 4 \). If we try to go backward from \( 4 \), we don't know if we should go to \( 2 \) or \( -2 \)!

To fix this, we restrict the domain. For \( f(x) = x^2 \), if we say \( x \geq 0 \), the function becomes one-to-one and we can find an inverse: \( f^{-1}(x) = \sqrt{x} \).

Key Connection: The graph of \( f^{-1}(x) \) is a reflection of \( f(x) \) in the line \( y = x \).


3. Function Transformations

Transformations allow us to take a "parent" function (like \( y = x^2 \)) and move it around the graph to model specific data.

A. Translations (Shifting)

  • Vertical Shift: \( y = f(x) + b \) shifts the graph up by \( b \) units. (If \( b \) is negative, it moves down).
  • Horizontal Shift: \( y = f(x - a) \) shifts the graph right by \( a \) units.

Trick: Horizontal changes are "counter-intuitive." \( f(x - 5) \) moves the graph in the positive direction (right), while \( f(x + 5) \) moves it left.

B. Reflections (Flipping)

  • Reflect in x-axis: \( y = -f(x) \). All \( y \)-values change sign (the graph flips upside down).
  • Reflect in y-axis: \( y = f(-x) \). All \( x \)-values change sign (the graph flips left-to-right).

C. Stretches (Resizing)

  • Vertical Stretch: \( y = p \cdot f(x) \). The graph is stretched vertically by a scale factor of \( p \).
    If \( p > 1 \), it gets taller; if \( 0 < p < 1 \), it gets squashed.
  • Horizontal Stretch: \( y = f(q \cdot x) \). The graph is stretched horizontally by a scale factor of \( \frac{1}{q} \).
    Again, horizontal is "weird." If you see \( f(2x) \), it actually compresses the graph by half!

4. Composite Transformations (Doing it all at once)

When multiple transformations happen, the order can change the final result. In the IB Diploma Programme, you will often be asked to describe a sequence of transformations or find the new equation.

The General Rule of Thumb

If you are applying transformations to a function, follow this general order to stay safe:
1. Stretches and Reflections
2. Translations

Example: Describe the transformations to get from \( f(x) \) to \( y = 2f(x - 3) + 1 \).

  1. Vertical stretch by a scale factor of \( 2 \).
  2. Horizontal translation of \( 3 \) units to the right.
  3. Vertical translation of \( 1 \) unit up.

Summary Table for Quick Review

Notation Transformation Type Effect on Graph
\( f(x) + b \) Vertical Translation Moves up \( b \) (moves down if \( b < 0 \))
\( f(x - a) \) Horizontal Translation Moves right \( a \) (moves left if \( a < 0 \))
\( -f(x) \) Reflection in \( x \)-axis Upside down flip
\( f(-x) \) Reflection in \( y \)-axis Left-to-right flip
\( p \cdot f(x) \) Vertical Stretch Scale factor \( p \)
\( f(q \cdot x) \) Horizontal Stretch Scale factor \( \frac{1}{q} \)

Common Mistakes to Avoid

  • Mixing up Horizontal Shifts: Remember that \( f(x - 2) \) is a shift to the right.
  • Forgetting the Horizontal Scale Factor: If the function is \( f(5x) \), the horizontal stretch factor is \( \frac{1}{5} \), not \( 5 \).
  • Domain Confusion: When finding an inverse, remember that the Domain of \( f \) becomes the Range of \( f^{-1} \), and vice versa.
  • Order of Operations: When calculating \( f(g(x)) \), don't multiply the functions! You are putting one inside the other.

Did you know? Transformations are used every day in computer graphics and photo editing. When you "resize" a photo or "flip" an image, the software is simply applying these mathematical functions to the coordinates of the pixels!