Linear functions and graphs

Linear functions and graphs

IB MYP Maths Standard: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A linear function has the equation y=mx+cy=mx+c and a straight-line graph.
  • Gradient m=y2−y1x2−x1m=\dfrac{y_2-y_1}{x_2-x_1} (rise over run); cc is the yy-intercept.
  • Sketch a line from its two intercepts, and use a third point to check.
  • To find an equation, work out mm, then substitute a point to find cc.
  • In context, the gradient is the rate of change and cc is the starting value.

The equation y = mx + c

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

A linear function has a straight-line graph. A positive gradient slopes up from left to right and a negative gradient slopes down. For example y=−2x+6y=-2x+6 has gradient −2-2 and yy-intercept 66, so it passes through (0,6)(0,6).

−5−4−3−2−112345−10−8−6−4−2246810xyy = mx + c
Change m and c to see the line move

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

Calculating the gradient

The gradient is the rise divided by the run, taking the coordinates in the same order on the top and bottom.

Subtract the coordinates in the same order on the top and bottom. The rise is the vertical change and the run is the horizontal change.

  • Gradientm=y2−y1x2−x1=riserunm=\dfrac{y_2-y_1}{x_2-x_1}=\dfrac{\text{rise}}{\text{run}}
48AB
A(1, 3) and B(5, 11): run 4, rise 8

Worked example

Find the gradient between A(1,3)A(1,3) and B(5,11)B(5,11).

Find the gradient between (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.

To plot a line, make a table of values and join the points with a ruler. To sketch quickly, find the intercepts: put x=0x=0 for the yy-intercept and y=0y=0 for the xx-intercept. Three points are better than two, because the third checks for mistakes.

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

Worked example

Sketch y=−2x+6y=-2x+6.

Where does y=2x−8y=2x-8 cross the xx-axis?

Finding the equation of a line

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

From a gradient and a point: put mm into y=mx+cy=mx+c, substitute the point and solve for cc. From two points: find mm first, then do the same. To test whether a point lies on a line, substitute its xx-value and compare yy.

−1123456−224681012xyA (1, 3)B (5, 11)(0, 1)y = 2x + 1
The line through A(1, 3) and B(5, 11) is y = 2x + 1

Worked example

Find the equation of the line through A(1,3)A(1,3) and B(5,11)B(5,11). Does (10,20)(10,20) lie on it?

A line has gradient 33 and passes through (2,5)(2,5). What is its equation?

Rate of change in context

In a real situation the gradient is the rate of change and the yy-intercept is the starting value.

The rate of change is how much the output changes for every 1 unit of input. The starting value is the output when x=0x=0. Always include units: say "75 litres per minute", not just "75".

5101520253035404550500100015002000250030003500t (min)V (litres)starts empty(40, 3000)V = 75t
A pool filling: V = 75t

Worked example

A pool fills so that V=75tV=75t. Interpret the gradient and find when V=3000V=3000.

For V=75tV=75t, what does the intercept 0 mean?

Try an exam question

A line passes through A(1,3)A(1,3) and B(5,11)B(5,11). Find the equation of the line and state where it crosses the yy-axis.

[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