Lesson 2 of 8 · 13 min

Function notation and variables

Use function notation to name, evaluate and solve with functions, and identify the independent and dependent variables in a model.

What you will be able to do

  • Read and write function notation, and connect f(a)=bf(a) = b with the point (a,b)(a, b) on the graph.
  • Evaluate f(x)f(x) for numbers and for expressions such as f(a+1)f(a + 1).
  • Solve f(x)=kf(x) = k algebraically and from a graph.
  • Identify the independent and dependent variables in a rule or model.

When you write y=x2−2x−3y = x^2 - 2x - 3, you describe how yy depends on xx. But in a problem with several functions, "yy" could mean anything. Function notation gives each function a name and makes the input visible: f(4)f(4) means "the output of ff when the input is 44".

Definition

Function notation

f(x)f(x) is read "ff of xx". Here ff is the name of the function, xx is the input and f(x)f(x) is the output.

Writing f(x)=x2−2x−3f(x) = x^2 - 2x - 3 says the same as y=x2−2x−3y = x^2 - 2x - 3, and names the rule ff. To find f(4)f(4), replace every xx with 44:

f(4)=42−2(4)−3=5f(4) = 4^2 - 2(4) - 3 = 5

So f(4)=5f(4) = 5 tells you the point (4,5)(4, 5) is on the graph of y=f(x)y = f(x).

Reading f(4)=5f(4) = 5 from the graph of f(x)=x2−2x−3f(x) = x^2 - 2x - 3: go up from x=4x = 4 to the curve, then across to the yy-axis. The zeros f(−1)=0f(-1) = 0 and f(3)=0f(3) = 0 are where the graph meets the xx-axis.

For f(x)=5−2xf(x) = 5 - 2x, find f(−3)f(-3).

The input does not have to be a number. You can substitute an expression, such as aa, a+1a + 1 or 2x2x. The rule is the same: replace every xx with the whole input, in brackets, then simplify.

For f(x)=x2−2x−3f(x) = x^2 - 2x - 3:

f(a+1)=(a+1)2−2(a+1)−3=a2+2a+1−2a−2−3=a2−4f(a + 1) = (a + 1)^2 - 2(a + 1) - 3 = a^2 + 2a + 1 - 2a - 2 - 3 = a^2 - 4

Common mistake

f(a + 1) is not f(a) + 1

f(a+1)f(a + 1) means "put a+1a + 1 in". f(a)+1f(a) + 1 means "put aa in, then add 11 to the answer". For f(x)=x2−2x−3f(x) = x^2 - 2x - 3 they differ:

f(a+1)=a2−4,f(a)+1=a2−2a−2f(a + 1) = a^2 - 4, \qquad f(a) + 1 = a^2 - 2a - 2

In the same way, f(2x)f(2x) is not 2f(x)2f(x).

For f(x)=x2−3xf(x) = x^2 - 3x, find f(a+1)f(a + 1). Expand and simplify your answer.

f(a + 1) =
Reads asYour answer shows here as maths.

Function notation also works backwards. "Solve f(x)=5f(x) = 5" asks for every input that gives the output 55. Set the rule equal to 55 and solve. On a graph, draw the horizontal line y=5y = 5 and read off the xx-values where it meets the curve.

Interactive

Read inputs and outputs from the graph

Move along the curve with the trace. At x=4x = 4 the readout shows y=5y = 5, so f(4)=5f(4) = 5. Find the other input that gives the output 55, then check it by substitution.

Worked example

Evaluate and solve with f(x)=2x2−3xf(x) = 2x^2 - 3x

  • Simple familiar
  • Technology free

Let f(x)=2x2−3xf(x) = 2x^2 - 3x.

(a) Find f(−2)f(-2). (b) Find and simplify f(a+1)f(a + 1). (c) Solve f(x)=9f(x) = 9.

6 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Replace every xx with the input, in brackets.

  2. Expand and collect like terms.

  3. To solve f(x)=kf(x) = k, rearrange to …=0\ldots = 0 and factorise (or use the quadratic formula).

  4. Check solutions by substituting back.

Watch out for

  • Writing f(a+1)=2a2−3a+1f(a + 1) = 2a^2 - 3a + 1, which is f(a)+1f(a) + 1.

  • Getting 2(−2)2=−82(-2)^2 = -8 by squaring 22 and keeping the minus sign.

Key idea

Independent and dependent variables

In y=f(x)y = f(x), xx is the independent variable — the input, which you choose or which changes freely — and yy is the dependent variable, whose value depends on xx.

In a model, the independent variable is usually the quantity you control or time, and it goes on the horizontal axis. In A=πr2A = \pi r^2, the radius rr is independent and the area AA is dependent.

The cost CC dollars of hiring a kayak for tt hours is C=15+12tC = 15 + 12t. Which statement is correct?

Choose one answer

Without technology

Substitute with brackets and simplify, following the order of operations. To solve f(x)=kf(x) = k, rearrange to …=0\ldots = 0 and factorise, or use the quadratic formula. Answers stay exact. This is what Paper 1 expects.

With technology

Enter the rule in the graphing menu. Use the table or the value tool to find f(4)f(4). To solve f(x)=5f(x) = 5, graph y=5y = 5 too and use the intersect tool. The calculator gives decimals, so in Paper 2 round only at the end, to the accuracy asked for.

Summary

  • f(x)f(x) is the output of the function ff for the input xx; f(a)=bf(a) = b means the point (a,b)(a, b) is on the graph.

  • To evaluate, replace every xx with the input in brackets, then simplify.

  • f(a+1)f(a + 1) is not f(a)+1f(a) + 1, and f(2x)f(2x) is not 2f(x)2f(x).

  • To solve f(x)=kf(x) = k, set the rule equal to kk and solve; on a graph, see where y=ky = k meets the curve.

  • The independent variable is the input (horizontal axis); the dependent variable is the output (vertical axis).

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 2 of 80% read

Save your progress with a free account