Function Transformations, Composition, and Piecewise Rules

A function rule acts on its input. Track inner and outer operations in order, choose a piecewise rule from its condition, and distinguish inverse functions from reciprocals.

2 worked examples and 3 practice questions, with explained answers. No sign-in required.

Jump to practice

A reliable method

  1. Identify the exact input to the function.
  2. For composition evaluate the inner function first.
  3. For a piecewise rule test the input against the branch conditions.
  4. For an inverse solve for the input producing the specified output.

Example 1

Let \(f(x)=x^2\) and \(g(x)=f(x-2)\). Find g(5).

  1. Evaluate the shifted input 5-2 before squaring.
  2. Substitute and keep the operation order: \(\left(5-2\right)^{2}\).
  3. Calculate exactly: \(9\).
  4. The result is f(3), not f(5)-2.

Answer: \(9\)

Example 2

Let \(f(x)=\begin{cases}-2x+1,&x<0\\x^2,&x\geq0\end{cases}\). Find f(-3).

  1. Because -3<0, choose the first rule.
  2. Substitute and keep the operation order: \(-2\times \left(-3\right)+1\).
  3. Calculate exactly: \(7\).
  4. Do not use the squared branch for this negative input.

Answer: \(7\)

Common mistakes

  • A horizontal shift has the opposite sign inside the input expression.
  • Conditions apply to the input, not the resulting output.

Practice without the answer first

  1. For \(f(x)=2x-1\) and \(g(x)=x+4\), find f(g(3)).
  2. If \(f(x)=5x+2\), find \(f^{-1}(17)\).
  3. What is the x-coordinate of the vertex of \(y=(x+4)^2-3\)?
Answers and step-by-step explanations

Practice 1

  1. First find g(3)=7, then find f(7).
  2. Substitute and keep the operation order: \(2\times \left(3+4\right)-1\).
  3. Calculate exactly: \(13\).
  4. The order is dictated by the nested notation.

Answer: \(13\)

Practice 2

  1. Solve 5x+2=17 for the original input x.
  2. Substitute and keep the operation order: \(\frac{17-2}{5}\).
  3. Calculate exactly: \(3\).
  4. The inverse output is 3, because f(3)=17.

Answer: \(3\)

Practice 3

  1. Set the squared input x+4 equal to zero.
  2. Substitute and keep the operation order: \(-4\).
  3. Calculate exactly: \(-4\).
  4. A plus 4 inside the square shifts the vertex left, not right.

Answer: \(-4\)

These original skill exercises are not official exam questions or a score prediction. Use the coverage notes on your exam hub to choose relevant practice.

Use this skill in your study plan

This is shared skill instruction, not an official question set or a prediction of your exam score. Choose your exam for its coverage notes and provider requirements.

Original Testinar instructional content. Updated November 12, 2026. Editorial standards ยท Report a correction

Page UP