Linear Graphs (y = mx + c)

Linear Graphs (y = mx + c)

Spec 3.3 · Edexcel IGCSE Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • In y=mx+cy=mx+c, mm is the gradient and cc is the y-intercept, the point (0,c)(0,c).
  • Gradient between two points: m=y2−y1x2−x1m=\dfrac{y_2-y_1}{x_2-x_1}.
  • To find an equation from two points: find mm, then substitute one point to find cc.
  • Parallel lines have the same gradient; perpendicular gradients multiply to −1-1.
  • y=cy=c is horizontal (gradient 0); x=cx=c is vertical (gradient undefined).

Gradient and intercept

m sets how steep the line is and c is where it crosses the y-axis.

In y=mx+cy=mx+c, mm is the gradient and cc is the y-intercept. If xx increases by 1, yy changes by mm. A positive mm slopes upward left to right; a negative mm slopes downward.

Always rearrange so yy is on its own before reading off mm and cc.

−5−4−3−2−112345−8−6−4−22468xyy = mx + c
Drag m and c: m sets the steepness, c is where the line crosses the y-axis

Worked example

Find the gradient of the line 2y=6x+42y=6x+4.

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

Gradient from two points

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

m=y2−y1x2−x1m=\frac{y_2-y_1}{x_2-x_1}

This is "rise over run". It does not matter which point is point 1, as long as you are consistent.

0.511.522.533.544.552468101214xy(1, 4)(3, 10)y = 3x + 1
Through (1, 4) and (3, 10): rise 6, run 2, so the gradient is 3

Worked example

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

What is the gradient of the line through (2,1)(2,1) and (6,9)(6,9)?

Equation from two points

Find the gradient, then substitute one point to find c.

Alternatively use y−y1=m(x−x1)y-y_1=m(x-x_1) and rearrange into y=mx+cy=mx+c.

  1. 1

    Gradient

    (y₂ − y₁) ÷ (x₂ − x₁)

  2. 2

    Substitute

    m and one point into y = mx + c

  3. 3

    Solve

    for c

  4. 4

    Write

    y = mx + c

Equation of a line
0.511.522.533.544.55−22468101214xy(2, 5)(4, 11)(0, −1)y = 3x − 1
The line through (2, 5) and (4, 11) is y = 3x − 1

Worked example

Find the equation of the line through (2,5)(2,5) and (4,11)(4,11).

Find the equation of the line through (0,3)(0,3) and (2,7)(2,7).

Parallel and perpendicular

Parallel lines share a gradient; perpendicular gradients are negative reciprocals.

Parallel lines have the same gradient: y=3x+2y=3x+2 and y=3x−5y=3x-5 never meet.

Perpendicular lines meet at a right angle and m1×m2=−1m_1\times m_2=-1, so m2=−1m1m_2=-\dfrac{1}{m_1}. Flip the fraction and change the sign: 22 becomes −12-\frac{1}{2}, and −34-\frac{3}{4} becomes 43\frac{4}{3}.

−4−3−2−11234−4−3−2−11234xy(0, 0)y = 2xparallel: y = 2x + 3perpendicular: y = −x/2
y = 2x, a parallel line (gradient 2) and a perpendicular line (gradient −½)

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

Horizontal and vertical lines

Horizontal lines are y = c; vertical lines are x = c.

A horizontal line y=cy=c has gradient 0. A vertical line x=cx=c has an undefined gradient. They are perpendicular to each other, although the negative reciprocal rule cannot be used since you cannot divide by 0.

−1123456−112345xyx = 4(4, 2)y = 2
The horizontal line y = 2 and the vertical line x = 4 meet at right angles

What is the gradient of the line y=−3y=-3?

Try an exam question

The points A(2,5)A(2,5) and B(4,11)B(4,11) lie on a straight line. (a) Find an equation of the line ABAB. (b) Write down the gradient of a line perpendicular to ABAB.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

A straight line has equation y=4x−7y=4x-7. What is its gradient?

1 mark, marked against the mark scheme

Revision notes