Graphs of Linear Functions

Graphs of Linear Functions

Spec A9–A10 · Edexcel GCSE Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • y=mx+cy = mx + c: mm is the gradient and cc is the y-intercept.
  • Gradient m=y2−y1x2−x1m = \dfrac{y_2 - y_1}{x_2 - x_1}.
  • To find a line's equation, find mm, then substitute a point to find cc.
  • Parallel lines have the same gradient; perpendicular lines have gradients that multiply to −1-1 (Higher Tier).
  • On a distance-time graph the gradient is speed; on a speed-time graph the gradient is acceleration and the area is distance.

y = mx + c

mm is the gradient, how steep the line is, and cc is where it crosses the y-axis.

In y=mx+cy = mx + c, mm is the gradient and cc is the y-intercept, the point (0,c)(0, c).

The gradient is the change in yy divided by the change in xx. A positive gradient slopes up, a negative one slopes down and zero gives a horizontal line. A vertical line has no gradient and cannot be written as y=mx+cy = mx + c.

In y=2x+3y = 2x + 3 the line crosses the y-axis at (0,3)(0, 3) and rises 2 for every 1 to the right.

−6−4−2246−8−6−4−22468xyy = mx + c
Change the gradient m and the y-intercept c and watch the line move.
  • Gradient mmriserun\dfrac{\text{rise}}{\text{run}}

What are the gradient and y-intercept of y=−3x+4y = -3x + 4?

Plotting and interpreting

Plot the y-intercept, use the gradient to find a second point, and join them.

To plot: mark (0,c)(0, c), then move right 1 and up or down by mm to find another point, and draw the line through both.

To interpret a graph: read the intercept where the line crosses the y-axis, and choose two clear points to find m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}.

To test whether a point is on the line, substitute its coordinates into the equation.

−112345−4−22468xy(0, 5)(1, 3)y = −2x + 5
y = −2x + 5, with the intercept and a second point marked.

Worked example

Plot y=−2x+5y = -2x + 5.

Does (3,7)(3, 7) lie on y=2x+1y = 2x + 1?

Finding the equation of a line

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

Through two points: find m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}, substitute mm and one point into y=mx+cy = mx + c to find cc, then write the equation.

Through one point with a given gradient: substitute mm and the point to find cc.

Alternatively use y−y1=m(x−x1)y - y_1 = m(x - x_1) and rearrange. Check by substituting the original points back in.

−1123456−4−22468101214xy(2, 5)(4, 11)y = 3x − 1
The line y = 3x − 1 passes through both given points.

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,1)(0, 1) and (2,5)(2, 5).

Parallel and perpendicular lines

Parallel lines have equal gradients; perpendicular gradients multiply to −1-1.

Parallel lines have the same gradient but different cc values, such as y=2x+3y = 2x + 3 and y=2x−5y = 2x - 5.

Perpendicular lines have gradients that are negative reciprocals. Gradient 2 is perpendicular to −12-\frac{1}{2}, and 34\frac{3}{4} to −43-\frac{4}{3}.

To find a line through a point, use the same gradient for parallel or the negative reciprocal for perpendicular, then find cc.

−6−4−2246−2246810xy(1, 3)y = 2x + 5y = −½x + 3.5
y = 2x + 5 and the perpendicular through (1, 3), with gradient −½.
  • Parallelsame gradient
  • Perpendicularm1×m2=−1m_1 \times m_2 = -1

Worked example

Find the line perpendicular to y=2x+5y = 2x + 5 through (1,3)(1, 3).

A line has gradient −4-4. What is the gradient of a perpendicular line?

Real-life graphs

On a distance-time graph the gradient is speed; on a speed-time graph the gradient is acceleration and the area is distance.

On a distance-time graph, a straight line with positive gradient is constant speed, a horizontal line is stationary, and a steeper line is faster. The gradient is speed.

On a speed-time graph, a positive gradient is constant acceleration and a negative gradient is deceleration. A horizontal line is constant speed. The gradient is acceleration and the area under the line is the distance travelled.

Always say what the gradient or area means in context, with units.

123456102030405060xy(5, 50)distance = 10 × time
Distance-time graph: gradient = 50 ÷ 5 = 10 km/h, a constant speed of 10 km/h.
246810125101520xy(10, 20)speed = 2 × time
Speed-time graph: gradient 2 m/s². The shaded area, ½ × 10 × 20 = 100 m, is the distance.

On a speed-time graph, what does the area under the line represent?

Try an exam question

Find the equation of the straight line that passes through the points (1,4)(1, 4) and (3,10)(3, 10).

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

What is the gradient of line LL?

1 mark, marked against the mark scheme

Revision notes