Linear Graphs

Linear Graphs

Spec E3.2–7 · Cambridge IGCSE Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A straight line is y=mx+cy = mx + c: mm is the gradient, cc is the y-intercept.
  • Gradient m=y2−y1x2−x1m = \dfrac{y_2-y_1}{x_2-x_1}.
  • Rearrange ax+by=cax + by = c into y=mx+cy = mx + c to read off mm and cc.
  • Parallel lines have the same gradient.
  • Perpendicular lines have gradients that multiply to −1-1: m2=−1m1m_2 = -\dfrac{1}{m_1}.

Equation of a line

y = mx + c: m is the steepness and c is where the line crosses the y-axis.

cc is the value of yy when x=0x = 0. Extended candidates should rearrange ax+by=cax + by = c into y=mx+cy = mx + c to identify mm and cc. Drag the sliders to see how mm and cc change the line.

−5−4−3−2−112345−6−4−2246810xyy = mx + c
Drag m to change the steepness and c to slide the line up and down

Worked example

Rearrange 2x+3y=122x + 3y = 12 into y=mx+cy=mx+c form.

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

Gradient

Divide the change in y by the change in x between two points.

Keep the order of subtraction consistent in the numerator and denominator: mixing the order gives the wrong sign.

0.511.522.533.544.55246810xy(1, 3)(4, 9)y = 2x + 1
The line through (1, 3) and (4, 9) has gradient 2
  • Gradientm=y2−y1x2−x1m = \dfrac{y_2-y_1}{x_2-x_1}

Worked example

Find the gradient of the line through (1,3)(1, 3) and (4,9)(4, 9).

Find the gradient of the line through (0, 5) and (2, 1).

Finding the equation

Find the gradient, substitute a known point to find c, then write y = mx + c.

Alternatively substitute a point and mm into y−y1=m(x−x1)y - y_1 = m(x - x_1) and rearrange.

−1−0.50.511.522.533.5424681012xy(0, 1)(2, 7)y = 3x + 1
The line y = 3x + 1 passes through (2, 7)

Worked example

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

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

Parallel and perpendicular

Parallel lines share a gradient; perpendicular gradients multiply to −1.

The perpendicular bisector of a segment is perpendicular to it and passes through its midpoint: combine the midpoint formula with the perpendicular gradient rule. For a gradient of 2, the perpendicular gradient is −12-\frac{1}{2}.

−4−3−2−11234−4−3−2−11234xyOy = 2xy = −½x
Gradients 2 and −1/2 multiply to −1, so the lines are perpendicular
  • Perpendicularm1×m2=−1m_1 \times m_2 = -1

Worked example

Find the equation of the line parallel to y=4x−1y=4x-1 through (1,−3)(1,-3).

A line has gradient 3. What is the gradient of a perpendicular line?

Try an exam question

Find the equation of the line through (2,7)(2, 7) that is perpendicular to the line y=2x+1y = 2x + 1.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

A hiking trail's elevation, yy metres, changes with horizontal distance, xx km, along a straight section passing through (2,100)(2, 100) and (6,180)(6, 180). Find the gradient of this section.

1 mark, marked against the mark scheme

Revision notes