Skip to content
MathsGenie logo
Quick links
Open app

Course home

  1. A Level
  2. Maths OCR (MEI)
  3. Revision guides

1.5.6 Draw a line given its equation

What you'll learn

  • How to recognise the equation of a straight line.
  • How to use the gradient and intercept to plot a line efficiently.
  • How to rearrange equations that are not already in a convenient form.
  • How to draw horizontal and vertical lines, including lines with fractional gradients.

Coordinates and straight lines

A point on a coordinate grid is written as an ordered pair (x,y)(x,y)(x,y). The first coordinate gives the horizontal position and the second gives the vertical position.

For example, the point (3,−2)(3,-2)(3,−2) is 3 units to the right of the origin and 2 units below it.

The origin is the point (0,0)(0,0)(0,0), where the coordinate axes meet. The horizontal axis is the xxx-axis, and the vertical axis is the yyy-axis.

Definition

Equation of a line

An equation of a line describes the relationship between the xxx- and yyy-coordinates of every point on that line. A point lies on the line precisely when its coordinates satisfy the equation.

For example, (2,5)(2,5)(2,5) lies on the line y=2x+1y=2x+1y=2x+1 because substituting x=2x=2x=2 gives

y=2(2)+1=5.y=2(2)+1=5.y=2(2)+1=5.

However, (2,4)(2,4)(2,4) does not lie on the line because its coordinates do not satisfy the equation.

The form y=mx+cy=mx+cy=mx+c

The most useful form of a straight-line equation is

y=mx+c.y=mx+c.y=mx+c.
Definition

Gradient

The gradient, represented by mmm, measures the steepness and direction of a line:

m=change in ychange in x.m=\frac{\text{change in }y}{\text{change in }x}.m=change in xchange in y​.

It is also described as the rise divided by the run.

A positive gradient means the line rises from left to right. A negative gradient means it falls from left to right. A gradient of zero gives a horizontal line.

Definition

y-intercept

The yyy-intercept, represented by ccc, is the yyy-coordinate where the line crosses the yyy-axis. At this point, x=0x=0x=0, so its coordinates are (0,c)(0,c)(0,c).

For the line y=2x−1y=2x-1y=2x−1:

  • the gradient is m=2m=2m=2;
  • the yyy-intercept is c=−1c=-1c=−1;
  • the line crosses the yyy-axis at (0,−1)(0,-1)(0,−1).
Key Idea

Reading a line equation

When an equation is written as y=mx+cy=mx+cy=mx+c, the coefficient of xxx is the gradient and the constant term is the yyy-intercept.

Example

Drawing a line from its gradient and intercept

Draw the line y=2x−1y=2x-1y=2x−1.

  1. Identify the yyy-intercept: c=−1c=-1c=−1, so plot the point (0,−1)(0,-1)(0,−1).
  2. Interpret the gradient as 2=212=\frac{2}{1}2=12​. From (0,−1)(0,-1)(0,−1), move 1 unit to the right and 2 units upwards. This gives the point (1,1)(1,1)(1,1).
  3. Repeat the same movement to obtain another point, (2,3)(2,3)(2,3). Alternatively, move 1 unit left and 2 units down to obtain (−1,−3)(-1,-3)(−1,−3).
  4. Use a ruler to draw one straight line through the points, extending it across the relevant coordinate grid.
Common Mistake

Reversing the gradient

For m=23m=\frac{2}{3}m=32​, the vertical change is 2 and the horizontal change is 3. Do not move 3 units vertically and 2 units horizontally.

Using a table of values

You can always draw a line by choosing some xxx-values, calculating the corresponding yyy-values, and plotting the resulting coordinates.

This method is especially useful when the gradient or intercept is not immediately obvious.

Example

Generating points from an equation

Draw the line y=−3x+4y=-3x+4y=−3x+4 by calculating three points.

  1. Choose convenient values such as x=−1x=-1x=−1, x=0x=0x=0 and x=1x=1x=1.
  2. Substitute each value into the equation:
x=−1:y=−3(−1)+4=7,x=0:y=−3(0)+4=4,x=1:y=−3(1)+4=1.\begin{aligned} x=-1 &: \quad y=-3(-1)+4=7,\\ x=0 &: \quad y=-3(0)+4=4,\\ x=1 &: \quad y=-3(1)+4=1. \end{aligned}x=−1x=0x=1​:y=−3(−1)+4=7,:y=−3(0)+4=4,:y=−3(1)+4=1.​
  1. Plot the points (−1,7)(-1,7)(−1,7), (0,4)(0,4)(0,4) and (1,1)(1,1)(1,1).
  2. Draw a straight line through the points. Its downward direction agrees with the negative gradient m=−3m=-3m=−3.
Tip

Choose useful values

Choose values that keep the coordinates within the given grid. For a fractional gradient, carefully chosen multiples of the denominator often produce integer coordinates.

Fractional gradients

A fractional gradient tells you directly how to move between points.

For example,

m=32m=\frac{3}{2}m=23​

means a rise of 3 units for a run of 2 units. A negative gradient such as

m=−32m=-\frac{3}{2}m=−23​

can be treated as a fall of 3 units while moving 2 units to the right.

Example

Using a fractional gradient

Draw the line y=−23x+3y=-\frac{2}{3}x+3y=−32​x+3.

  1. Plot the yyy-intercept (0,3)(0,3)(0,3).
  2. Read the gradient as −23-\frac{2}{3}−32​. From (0,3)(0,3)(0,3), move 3 units to the right and 2 units down, reaching (3,1)(3,1)(3,1).
  3. Repeat the movement to reach (6,−1)(6,-1)(6,−1), or reverse it by moving 3 units left and 2 units up to reach (−3,5)(-3,5)(−3,5).
  4. Draw a straight line through the plotted points.

Rearranging an equation first

A linear equation may not initially be written as y=mx+cy=mx+cy=mx+c. You can rearrange it by making yyy the subject, meaning that yyy is isolated on one side.

Example

Rearranging before drawing

Draw the line 2x+3y=122x+3y=122x+3y=12.

  1. Rearrange the equation to make yyy the subject:
2x+3y=123y=12−2xy=4−23xy=−23x+4.\begin{aligned} 2x+3y&=12\\ 3y&=12-2x\\ y&=4-\frac{2}{3}x\\ y&=-\frac{2}{3}x+4. \end{aligned}2x+3y3yyy​=12=12−2x=4−32​x=−32​x+4.​
  1. The yyy-intercept is 4, so plot (0,4)(0,4)(0,4).
  2. The gradient is −23-\frac{2}{3}−32​. Move 3 units right and 2 units down to obtain (3,2)(3,2)(3,2), then repeat to obtain (6,0)(6,0)(6,0).
  3. Draw the line through these points. The point (6,0)(6,0)(6,0) also shows that the line crosses the xxx-axis at 6.
Common Mistake

Dividing only one term

When dividing 3y=12−2x3y=12-2x3y=12−2x by 3, divide every term on the right-hand side. The result is y=4−23xy=4-\frac{2}{3}xy=4−32​x, not y=4−2xy=4-2xy=4−2x.

Using the intercepts

An xxx-intercept is a point where a graph crosses the xxx-axis. Every point on the xxx-axis has y=0y=0y=0.

To find the two axis intercepts:

  • set x=0x=0x=0 to find the yyy-intercept;
  • set y=0y=0y=0 to find the xxx-intercept.

Two distinct points determine a unique straight line, so the two intercepts are often enough to draw it.

Example

Drawing a line from its intercepts

Draw the line 4x+3y=124x+3y=124x+3y=12.

  1. Set x=0x=0x=0 to find the yyy-intercept:
3y=12⇒y=4,3y=12 \Rightarrow y=4,3y=12⇒y=4,

so one point is (0,4)(0,4)(0,4).

  1. Set y=0y=0y=0 to find the xxx-intercept:
4x=12⇒x=3,4x=12 \Rightarrow x=3,4x=12⇒x=3,

so the other point is (3,0)(3,0)(3,0).

  1. Plot (0,4)(0,4)(0,4) and (3,0)(3,0)(3,0), then draw the straight line through them.
Tip

Choose the quickest method

For an equation such as 4x+3y=124x+3y=124x+3y=12, finding the intercepts may be quicker than rearranging. For y=5x−2y=5x-2y=5x−2, reading the gradient and yyy-intercept is usually quicker.

Horizontal and vertical lines

A horizontal line has a constant yyy-coordinate. Its equation has the form

y=k,y=k,y=k,

where kkk is a constant. For example, y=3y=3y=3 is a horizontal line through every point whose yyy-coordinate is 3.

Its gradient is zero because there is no change in yyy.

A vertical line has a constant xxx-coordinate. Its equation has the form

x=k.x=k.x=k.

For example, x=−2x=-2x=−2 is a vertical line through every point whose xxx-coordinate is −2-2−2.

Common Mistake

Vertical lines

A vertical line cannot be written as y=mx+cy=mx+cy=mx+c. Its gradient is undefined because the horizontal change is zero, which would require division by zero.

Example

Drawing horizontal and vertical lines

Draw y=−1y=-1y=−1 and x=4x=4x=4 on the same coordinate grid.

  1. For y=−1y=-1y=−1, plot points such as (−2,−1)(-2,-1)(−2,−1) and (3,−1)(3,-1)(3,−1). Join them with a horizontal line.
  2. For x=4x=4x=4, plot points such as (4,−2)(4,-2)(4,−2) and (4,3)(4,3)(4,3). Join them with a vertical line.
  3. The lines meet at (4,−1)(4,-1)(4,−1) because this point satisfies both equations.

Checking your graph

Substitute the coordinates of a plotted point into the original equation. If the two sides are equal, the point is on the line.

You should also check the overall direction:

  • positive gradient: rises from left to right;
  • negative gradient: falls from left to right;
  • zero gradient: horizontal;
  • equation x=kx=kx=k: vertical.
Exam technique

In the exam

  1. Rearrange into y=mx+cy=mx+cy=mx+c if this makes the gradient and intercept easy to identify.
  2. Plot at least two accurate points; use a third point as a check when practical.
  3. Draw one straight, continuous line with a ruler and extend it across the required grid.
  4. Check the sign of the gradient and substitute one plotted point into the original equation.
Self review

Check yourself

  • How would you draw the line y=12x−3y=\frac{1}{2}x-3y=21​x−3 using its gradient and intercept?
  • What are the two axis intercepts of 2x+5y=102x+5y=102x+5y=10?
  • Why can the line x=6x=6x=6 not be written in the form y=mx+cy=mx+cy=mx+c?

How was this guide?

Teach Genie

Review 1.5.6 Draw a line given its equation by teaching Genie

Teach it back in your own words, spot gaps, and remember it better.

Start teaching
Genie and Baby Genie

1.5.6 Draw a line given its equation Revision Guide

  1. A Level
  2. /Maths
  3. /1.5.6 Draw a line given its equation