Open Mathhh

Function notation and straight lines

Level 10: Equations and Functions · worksheets 141 to 160 · 3 min read

I can

  • find the value of a function such as f(−2)
  • find k when f(k) is given, and simplify f(a − 2)
  • find a gradient and an x-intercept
  • write the equation of a line, and a parallel or perpendicular line

Key idea

A function such as f(x) = 3x − 7 is a rule. f(−2) means put −2 in place of x. If the input is an expression like a − 2, put the whole expression in brackets, then expand.

For a line, the gradient is rise over run: (y₂ − y₁)/(x₂ − x₁). A line is y = mx + c, where m is the gradient and c the y-intercept. The x-intercept is where y = 0. Parallel lines have the same gradient. Perpendicular lines have gradients that multiply to −1.

Worked examples

Example 1: h(x) = 2x² − 5x + 7. Find h(−4).

Watch it: h(−4) where h(x) = 2x² − 5x + 7, step by step:

  1. h(x) = 2x² − 5x + 7. Find h(−4).
  2. Put −4 in place of x.
  3. (−4)² = 16, so 2 × 16 = 32. Then −5 × (−4) = 20.
  4. 32 + 20 + 7 = 59. So h(−4) = 59.
  1. Put −4 in place of x: 2(−4)² − 5(−4) + 7.
  2. (−4)² = 16, so 2 × 16 = 32. Then −5 × −4 = 20.
  3. 32 + 20 + 7 = 59.

h(−4) = 59

Example 2: g(x) = x² + 2x + 3. Simplify g(a − 2).

Watch it: g(a − 2) where g(x) = x² + 2x + 3, step by step:

  1. g(x) = x² + 2x + 3. Put a − 2 in place of x.
  2. Expand: (a − 2)² = a² − 4a + 4 and 2(a − 2) = 2a − 4.
  3. Collect like terms: −4a + 2a = −2a, and 4 − 4 + 3 = 3.
  1. g(a − 2) = (a − 2)² + 2(a − 2) + 3.
  2. Expand: a² − 4a + 4 + 2a − 4 + 3.
  3. Collect like terms.

g(a − 2) = a² − 2a + 3

Example 3: Find the equation of the line through (−2, 9) and (0, 1).

Watch it: The line through (−2, 9) and (0, 1), step by step:

  1. The gradient is the change in y divided by the change in x.
  2. Change in y: 1 − 9 = −8. Change in x: 0 − (−2) = 2.
  3. Gradient = −8/2 = −4.
  4. The line crosses the y-axis at (0, 1), so c = 1. So y = −4x + 1.
  1. Gradient = (1 − 9)/(0 − (−2)) = −8/2 = −4.
  2. The line crosses the y-axis at (0, 1), so c = 1.

y = −4x + 1

Try it

f(x) = 3x − 7. Find f(−2).
Show answer-13
h(x) = 3x − 3. If h(k) = 12, find k.
Show answer5
Find the gradient of the line through (−5, −5) and (−9, −1).
Show answer-1
Find the x-intercept of the line −x + 3y = 2.
Show answer-2
Find the equation of the line with gradient 5 through (−3, 3). y =
Show answer5x + 18
Find the line parallel to −x − y = −5 through (3, 3). y =
Show answer-x + 6

Common mistakes

  • Squaring a negative wrongly. (−4)² is 16, not −16.
  • Mixing up the order of the points when finding a gradient. Subtract y and x in the same order.

Remember

  • f(a) means put a in place of x.
  • Parallel lines share a gradient. Perpendicular gradients multiply to −1.

Practise this

Worksheets 141 to 160 of Level 10 practise this note. Sign in to Mathhh, write your answers by hand and see your marks straight away.

Open Mathhh

More Level 10 notes

Keep learning

All Level 10 notes · All study notes