Sign in

← All revision topics

English variety

Linear function (direct proportion): y = kx

Machine translation

Around age 13 · Usually taught in ⁨Key Stage 3⁩ · Free

Learn

  1. A linear function is a function of the form f(x) = kx, where k is a fixed number that is not 0. It is direct proportion written with letters. If Ellie sells the bread rolls at £2 each, the price of x bread rolls is y = 2x, with k = 2.

    The number k is the constant of proportionality: the value of one unit, f(1) = k. You find it from a single pair: k = y ÷ x. In this table, 3 ÷ 1 = 6 ÷ 2 = 9 ÷ 3 = 12 ÷ 4 = 3, so k = 3 and the function is y = 3x.

    x1234
    y36912
    A linear function: the quotient y ÷ x is always 3
  2. The graph of y = kx is a straight line that passes through the origin, because with x = 0 you get y = k × 0 = 0. For every 1 you move to the right, the line goes up by k. That number k is the gradient of the line. The greater k is, the steeper the line. If k is negative, the line goes down: y = −x passes through (1, −1) and (2, −2).

    k = 2k = 1k = 0.5k = −1−4−3−2−11234−6−5−4−3−2−11234560xy
    Lines y = kx: they all pass through the origin and their steepness depends on k
  3. Watch out for functions that look linear. In y = 2x + 1 the line does not pass through the origin: with x = 0, y is 1. It is not a linear function y = kx, because the quotient y ÷ x is not always the same: 3 ÷ 1 = 3, but 5 ÷ 2 = 2.5.

    x123
    y = 2x246
    y = 2x + 1357
    y = 2x is linear; y = 2x + 1 is not
  4. To write the function for a situation, look for what 1 is worth. If Gus walks 3 km per hour, f(x) = 3x. To find x, divide: from 3x = 21 you get x = 7. In a linear function, if x doubles, y doubles too; if x trebles, y trebles.

Worked examples

Example 1

Gus walks at a steady pace and covers 12 km in 4 hours. Write the function and work out how many km he covers in 7 hours.

  1. The constant is k = 12 ÷ 4 = 3 km per hour.
  2. The function is f(x) = 3x.
  3. For 7 hours: f(7) = 3 × 7 = 21 km.

f(x) = 3x, and in 7 hours he covers 21 km.

Watch out! Here many people add: 12 + 7 = 19. A proportional relationship is worked out by multiplying by k, not by adding.

Common mistake

Example 2

Mara says this table is from a linear function. Is she right?

x123
y258
  1. In a linear function, y ÷ x is always the same number.
  2. 2 ÷ 1 = 2, 5 ÷ 2 = 2.5 and 8 ÷ 3 is almost 2.67.
  3. The quotients are not equal.

It is not a linear function.

Watch out! Here many people see that y goes up by 3 each time and say yes. Going up by the same amount is not enough: the quotient has to be the same.

Common mistake

Example 3

The line passes through the origin and through the point A(4, 6). What is its function, and what is f(10)?

A1234561234567890xy
  1. k = 6 ÷ 4 = 1.5.
  2. The function is f(x) = 1.5x.
  3. f(10) = 1.5 × 10 = 15.

f(x) = 1.5x, and f(10) = 15.

Watch out! Here many people take k = 6 or k = 4, which are the coordinates of the point. k is the quotient y ÷ x.

Common mistake

A challenge to think about

Choose something you buy by the unit, for example by the kilo or by the litre, and write down the prices of three amounts. Make a table, find k and write the function. Draw its graph on a grid and explain why the line passes through the origin.

Practise

Rounds of 10 questions. Choose a level:

Your grade in this topic:No grade yetDo a round at the Basic level to get a grade.

Next topic: Affine function y = mx + b: gradient and y-intercept →