Functions Worksheets

Evaluate functions, compose two functions and find the inverse of a linear function. Grades 11–12.

Ctrl+P to print worksheet Ctrl+R to randomize

What these worksheets practise

A function is a rule that turns each input into exactly one output. Pre-Calculus treats functions as objects of their own: they can be evaluated, chained together (composition) and undone (inverses). The worksheets practise one of these at each difficulty level:

  • Easy — evaluate a quadratic function f(x)=ax2+bx+cf(x) = ax^{2} + bx + c at a whole number, often a negative one.
  • Medium — composition: with f(x)=ax+bf(x) = ax + b and g(x)=x2+cg(x) = x^{2} + c, find (f∘g)(k)(f \circ g)(k).
  • Hard — find the inverse f−1(x)f^{-1}(x) of a linear function f(x)=ax+bf(x) = ax + b.

The steps below start from the simplest possible function and add one idea at a time. Steps 1–3 prepare for the Easy worksheets; step 4 is composition (Medium) and step 5 the inverse (Hard).

Watch: functions as machines (3:25)

Read the transcript

Let's learn what a function is, how to chain two functions together, and how to undo one.

A function is a rule that turns each input into exactly one output. Think of f(x) = x + 3 as a machine that adds 3. Put in 1, and out comes 4. Put in 5, out comes 8. Put in 10, out comes 13. f(3) just means: the output when 3 goes in.

Now f(x) = 2x + 1: double the input, then add 1. f(3) = 2(3) + 1 = 7. With a negative input, write it in parentheses first: f(−2) = 2(−2) + 1 = −4 + 1 = −3.

For f(x) = x², the whole input is squared, sign and all: f(3) = 9, and f(−3) = (−3)² = 9. Put it together: for f(x) = 2x² − 3x + 1, f(−2) = 2(−2)² − 3(−2) + 1 = 2(4) + 6 + 1 = 15.

Composition chains two machines. (f∘g)(3) means f(g(3)): the function on the right, g, goes first. With g(x) = 2x and f(x) = x + 1: g(3) = 6, then f(6) = 7. So (f∘g)(3) = 7. Swap the order and the answer changes: f(3) = 4, then g(4) = 8. So (g∘f)(3) = 8. A Medium problem works the same way. With f(x) = 3x − 2 and g(x) = x² + 1, g(2) = 5 and f(5) = 3(5) − 2 = 13.

The inverse f⁻¹ runs a function backwards. f(x) = 4x + 5 multiplies by 4, then adds 5. To undo it, take the steps off in reverse order, like socks after shoes: subtract 5, then divide by 4. So f⁻¹(x) = (x − 5) / 4. The algebra gives the same answer: write y = 4x + 5, swap x and y, and solve for y.

Check with 9: f⁻¹(9) = (9 − 5) ÷ 4 = 1, and f(1) = 4(1) + 5 = 9. You're back where you started.

Watch out for these common mistakes. Losing the sign of a negative input: 2(−2)² = 2(4) = 8, not −8. Composing in the wrong order: (f∘g)(2) is 13, but (g∘f)(2) is 17. The function on the right goes first. Confusing the inverse with a reciprocal: f⁻¹(x) is not 1 / (4x + 5). The −1 means undo. Dividing only part of it: (x − 5) / 4 is not x/4 − 5.

Practise with free function worksheets and answer keys at mathgem.ca.

Worked examples, one step at a time

Step 1: a function is a machine

Think of f(x)=x+3f(x) = x + 3 as a machine: whatever number goes in, the machine adds 3 and sends the result out. The letter xx stands for the input, and f(3)f(3) means "the output when 3 goes in".

f(1)=1+3=4f(5)=5+3=8f(10)=10+3=13f(1) = 1 + 3 = 4 \qquad f(5) = 5 + 3 = 8 \qquad f(10) = 10 + 3 = 13

Each input gives exactly one output. That is the only thing a rule needs to be a function.

Step 2: two operations, and negative inputs

The machine f(x)=2x+1f(x) = 2x + 1 doubles the input, then adds 1. When the input is negative, write it in parentheses before doing anything else. This one habit prevents most mistakes on these worksheets.

f(3)=2(3)+1=7f(−2)=2(−2)+1=−4+1=−3f(3) = 2(3) + 1 = 7 \qquad f(-2) = 2(-2) + 1 = -4 + 1 = -3

Step 3: squares

For f(x)=x2f(x) = x^{2}, the parentheses matter even more. The whole input is squared, sign and all, so a negative input gives a positive output:

f(3)=32=9f(−3)=(−3)2=9f(3) = 3^{2} = 9 \qquad f(-3) = (-3)^{2} = 9

Now put the pieces together, as on an Easy worksheet. For f(x)=2x2−3x+1f(x) = 2x^{2} - 3x + 1, find f(−2)f(-2). Replace every xx with (−2)(-2), square first, then multiply, then add:

f(−2)=2(−2)2−3(−2)+1=2(4)+6+1=15f(-2) = 2(-2)^{2} - 3(-2) + 1 = 2(4) + 6 + 1 = 15

Step 4: one machine after another (composition)

Composition feeds the output of one function into another. Start small, with f(x)=x+1f(x) = x + 1 and g(x)=2xg(x) = 2x. The notation (f∘g)(3)(f \circ g)(3) means f(g(3))f(g(3)): the function written on the right, gg, goes first.

g(3)=2(3)=6f(6)=6+1=7so (f∘g)(3)=7g(3) = 2(3) = 6 \qquad f(6) = 6 + 1 = 7 \qquad \text{so } (f \circ g)(3) = 7
3g× 26f+ 17
(f∘g)(3)(f \circ g)(3): 3 goes into gg first, and gg's output 6 goes into ff.

The order matters. Swapping the machines gives a different answer:

f(3)=3+1=4g(4)=2(4)=8so (g∘f)(3)=8f(3) = 3 + 1 = 4 \qquad g(4) = 2(4) = 8 \qquad \text{so } (g \circ f)(3) = 8
3f+ 14g× 28
(g∘f)(3)(g \circ f)(3): the same two machines in the other order give 8, not 7.

A Medium problem works the same way with bigger rules. With f(x)=3x−2f(x) = 3x - 2 and g(x)=x2+1g(x) = x^{2} + 1, find (f∘g)(2)(f \circ g)(2):

g(2)=22+1=5f(5)=3(5)−2=13g(2) = 2^{2} + 1 = 5 \qquad f(5) = 3(5) - 2 = 13

Answer: (f∘g)(2)=13(f \circ g)(2) = 13.

Step 5: undoing a function (the inverse)

The inverse f−1f^{-1} is the machine that runs ff backwards. For one operation it is easy to see:

f(x)=x+5  ⇒  f−1(x)=x−5f(x)=3x  ⇒  f−1(x)=x3f(x) = x + 5 \;\Rightarrow\; f^{-1}(x) = x - 5 \qquad\qquad f(x) = 3x \;\Rightarrow\; f^{-1}(x) = \frac{x}{3}

When ff has two operations, undo them in reverse order, the way you take off socks after shoes. f(x)=4x+5f(x) = 4x + 5 multiplies by 4 and then adds 5, so the inverse subtracts 5 first and then divides by 4:

f−1(x)=x−54f^{-1}(x) = \frac{x - 5}{4}

The method used on the Hard worksheets gives the same result: write y=4x+5y = 4x + 5, swap xx and yy, and solve for yy.

x=4y+5⇒x−5=4y⇒y=x−54x = 4y + 5 \quad\Rightarrow\quad x - 5 = 4y \quad\Rightarrow\quad y = \frac{x - 5}{4}

Check your answers

An inverse undoes the function, so putting a number through both must give it back. With 9: f−1(9)=9−54=1f^{-1}(9) = \tfrac{9 - 5}{4} = 1 and f(1)=4+5=9f(1) = 4 + 5 = 9. For composition, check the first step on its own before using its output.

Common mistakes

  • Losing the sign of a negative input. 2(−2)2=2(4)=82(-2)^{2} = 2(4) = 8, not −8-8. Always substitute with parentheses.
  • Composing in the wrong order. (f∘g)(2)=f(g(2))=13(f \circ g)(2) = f(g(2)) = 13, but (g∘f)(2)=g(f(2))=g(4)=17(g \circ f)(2) = g(f(2)) = g(4) = 17. The function written on the right is applied first.
  • Confusing the inverse with a reciprocal. f−1(x)f^{-1}(x) is not 14x+5\dfrac{1}{4x + 5}. The −1-1 means "undo", not "divide into 1".
  • Dividing only part of the expression. x−54\dfrac{x - 5}{4} is not x4−5\dfrac{x}{4} - 5.

Sample problems

These problems come from the same generator as the worksheet above, three at each difficulty level. Press Generate for a fresh set.

Easy

  1. f(x)=−x2+2x−1,f(x) = -x^{2} + 2x - 1,\quad find f(3)f(3)
  2. f(x)=−3x2−3x−2,f(x) = -3x^{2} - 3x - 2,\quad find f(3)f(3)
  3. f(x)=3x2−x−4,f(x) = 3x^{2} - x - 4,\quad find f(3)f(3)

Medium

  1. f(x)=4x+4,g(x)=x2f(x) = 4x + 4,\quad g(x) = x^{2}
    Find (f∘g)(−3)(f\circ g)(-3)
  2. f(x)=3x−3,g(x)=x2−1f(x) = 3x - 3,\quad g(x) = x^{2} - 1
    Find (f∘g)(−3)(f\circ g)(-3)
  3. f(x)=2x−2,g(x)=x2+3f(x) = 2x - 2,\quad g(x) = x^{2} + 3
    Find (f∘g)(3)(f\circ g)(3)

Hard

  1. f(x)=5x+7,f(x) = 5x + 7,\quad find f−1(x)f^{-1}(x)
  2. f(x)=5x+3,f(x) = 5x + 3,\quad find f−1(x)f^{-1}(x)
  3. f(x)=5x+4,f(x) = 5x + 4,\quad find f−1(x)f^{-1}(x)
Show answers
  1. f(3)=−4f(3) = -4
  2. f(3)=−38f(3) = -38
  3. f(3)=20f(3) = 20
  4. (f∘g)(−3)=40(f\circ g)(-3) = 40
  5. (f∘g)(−3)=21(f\circ g)(-3) = 21
  6. (f∘g)(3)=22(f\circ g)(3) = 22
  7. f−1(x)=(x−7)/5f^{-1}(x) = (x - 7) / 5
  8. f−1(x)=(x−3)/5f^{-1}(x) = (x - 3) / 5
  9. f−1(x)=(x−4)/5f^{-1}(x) = (x - 4) / 5

Tips for teachers and parents

  • The "function machine" picture works well for composition: the output of the first machine is fed into the second.
  • On Easy worksheets, ask students to write the substitution with parentheses before simplifying; most errors come from skipping that line.
  • For inverses, have students check one value with f(f−1(x))=xf(f^{-1}(x)) = x. It shows immediately whether the inverse is right.

Related topics