Skip to main content
ScotlandMathsSyllabus dot point

How do you read and use function notation, evaluate a function and solve for an input?

Working with functional notation: evaluating a function f of x for a given input, finding the input that gives a required output, and identifying a function from its formula.

A focused answer to the SQA National 5 Mathematics functional notation content, covering how to read f of x notation, evaluate a function for a given value including negatives, find the input that produces a given output, and substitute expressions into a function.

Generated by Claude Opus 4.88 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. What f(x) means
  3. Evaluating a function
  4. Finding the input for a given output
  5. Substituting an expression
  6. Reading values from a graph
  7. Two functions in one question
  8. Examples in context
  9. Try this

What this dot point is asking

The SQA wants you to read and use function notation: evaluate a function f(x)f(x) for a given input (including negatives and fractions), find the input that produces a required output by forming and solving an equation, and substitute an expression into a function.

What f(x) means

The notation f(x)f(x) is read "f of x" and names a function: a rule that takes an input xx and produces one output. The letter ff is just the name of the rule (other common names are gg and hh), and whatever is written inside the brackets is the input that replaces xx in the formula.

So if f(x)=x2+1f(x) = x^2 + 1, then f(3)f(3) means "put 33 in place of xx": f(3)=32+1=10f(3) = 3^2 + 1 = 10. The notation is compact and exact, which is why it is used throughout the course.

Evaluating a function

To evaluate, substitute the given value for every xx in the formula and simplify. Negative and fractional inputs need care, especially inside powers.

Finding the input for a given output

If you know the output and want the input, set the formula equal to that output and solve the resulting equation.

Substituting an expression

Sometimes the input is itself an expression. Replace every xx with that whole expression, keeping it in brackets to avoid errors.

This idea of putting one expression in place of the input is the foundation of composite functions, which are studied at Higher.

Reading values from a graph

A function can also be given as a graph rather than a formula. To find f(2)f(2) from a graph, go to x=2x = 2 on the horizontal axis, read up to the curve, and across to the yy value: that height is f(2)f(2). To solve f(x)=3f(x) = 3, do the reverse: find where the curve is at height 33 and read off the xx value (or values). The same two questions, evaluating and solving, appear whether the function is a formula or a graph.

Two functions in one question

A question may define more than one function, such as ff and gg, and ask you to combine their values. Work out each separately and then combine. For f(x)=2xf(x) = 2x and g(x)=x+5g(x) = x + 5, the value f(3)+g(4)f(3) + g(4) is 6+9=156 + 9 = 15. Treat each function name as its own rule, and always read carefully which function and which input each part is asking about.

Examples in context

Function notation is how science and computing describe rules. A formula for the cost of hiring a tool, C(d)=8d+15C(d) = 8d + 15 pounds for dd days, is a function: C(3)=8×3+15=£39C(3) = 8 \times 3 + 15 = \pounds 39 gives the cost of a three-day hire. Asking "how many days does £63\pounds 63 buy" means solving 8d+15=638d + 15 = 63, giving d=6d = 6. The same notation turns a real-world rule into something you can evaluate or invert.

Try this

Q1. Given f(x)=4x1f(x) = 4x - 1, find f(3)f(3). [1 mark]

  • Cue. 4×31=114 \times 3 - 1 = 11.

Q2. Given g(x)=x2+2g(x) = x^2 + 2, find g(3)g(-3). [2 marks]

  • Cue. (3)2+2=11(-3)^2 + 2 = 11.

Q3. Given h(x)=3x+5h(x) = 3x + 5, find xx when h(x)=20h(x) = 20. [2 marks]

  • Cue. 3x+5=203x + 5 = 20, so x=5x = 5.

Exam-style practice questions

Practice questions written in the style of SQA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

SQA National 5 20182 marksA function is defined as f(x)=3x25f(x) = 3x^2 - 5. Evaluate f(2)f(-2).
Show worked answer →

Substitute x=2x = -2 into the formula, taking care with the square of a negative: f(2)=3×(2)25f(-2) = 3 \times (-2)^2 - 5 (1 mark). Since (2)2=4(-2)^2 = 4, this is 3×45=125=73 \times 4 - 5 = 12 - 5 = 7 (1 mark). Markers reward correct substitution with (2)2=4(-2)^2 = 4 and the final value 77. A common error is writing (2)2=4(-2)^2 = -4.

SQA National 5 20213 marksA function is defined by g(x)=2x+1g(x) = 2x + 1. Given that g(a)=9g(a) = 9, find the value of aa.
Show worked answer →

Set the formula equal to the required output: g(a)=2a+1=9g(a) = 2a + 1 = 9 (1 mark). Solve the equation: 2a=82a = 8 (1 mark), so a=4a = 4 (1 mark). Markers reward forming the equation 2a+1=92a + 1 = 9 and solving for a=4a = 4.

Related dot points

Sources & how we know this