Linear functions and graphs

Linear functions and graphs

IB MYP Maths Extended: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A linear function is y=mx+cy=mx+c: mm is the gradient, cc the yy-intercept.
  • Gradient =y2−y1x2−x1=riserun=\dfrac{y_2-y_1}{x_2-x_1}=\dfrac{\text{rise}}{\text{run}}; subtract in the same order.
  • To sketch a line, find the intercepts with both axes.
  • To find an equation, find mm, then substitute a point to find cc.
  • In context the gradient is the rate of change and the intercept is the starting value.

The equation y = mx + c

In y = mx + c, m is the gradient (steepness) and c is where the line crosses the y-axis.

A positive gradient slopes up from left to right, a negative gradient slopes down.

y=−2x+6y=-2x+6 has gradient −2-2 (downward) and yy-intercept 66, so it passes through (0,6)(0,6).

−6−4−2246−10−8−6−4−2246810xyy = mx + c
Change m and c: m is the steepness, c is where the line crosses the y-axis

What is the gradient of y=5−2xy=5-2x?

Calculating the gradient

Divide the change in y by the change in x, subtracting in the same order on top and bottom.

m=y2−y1x2−x1=riserunm=\frac{y_2-y_1}{x_2-x_1}=\frac{\text{rise}}{\text{run}}

48A(1, 3)B(5, 11)
A(1, 3) to B(5, 11): run 4, rise 8

Worked example

Find the gradient of the line through A(1,3)A(1,3) and B(5,11)B(5,11).

Find the gradient of the line through (2,9)(2,9) and (6,1)(6,1).

Plotting and sketching lines

Find where the line crosses each axis, mark both points and draw the line through them.

For y=−2x+6y=-2x+6: when x=0x=0, y=6y=6, giving (0,6)(0,6). When y=0y=0, −2x+6=0-2x+6=0 so x=3x=3, giving (3,0)(3,0).

To plot a line, make a table of values. Three points are better than two, because the third checks for mistakes.

−2−1123456−2246810xy(0, 6)(3, 0)y = −2x + 6
y = −2x + 6 through its intercepts

Find the intercepts of y=3x−6y=3x-6.

Finding the equation of a line

Find the gradient, put it in y = mx + c, then substitute a point to find c.

To test whether a point lies on a line, substitute its xx-value. For (10,20)(10,20) on y=2x+1y=2x+1 we get 21≠2021\ne20, so it is not on the line.

−11234567−22468101214xyA(1, 3)B(5, 11)(0, 1)y = 2x + 1
y = 2x + 1 through A and B

Worked example

Find the equation of the line through A(1,3)A(1,3) and B(5,11)B(5,11).

Find the equation of the line with gradient 33 through (2,5)(2,5).

Rate of change in context

The gradient is the rate of change and the y-intercept is the starting value; always include units.

A pool fills so that V=75tV=75t. The gradient 7575 means 75 litres per minute, and the intercept 00 means the pool starts empty.

51015202530354045500100015002000250030003500t (minutes)y(40, 3000)V = 75t
Volume of water in the pool, V = 75t litres

Worked example

How long does the pool take to reach 30003000 litres?

A tank follows V=200+30tV=200+30t litres after tt minutes. What do 200200 and 3030 mean?

Try an exam question

Find the equation of the straight line through (2,1)(2,1) and (6,9)(6,9).

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

What is the gradient of the line?

1 mark, marked against the mark scheme

Revision notes