Equation of a line

Write the equation of a line given gradient and y-intercept, find the equation from two points, and determine equations of parallel lines.

Worked examples

Writing the equation of a line from gradient and y-intercept

Straightforward

Problem

Write the equation of a line with gradient m=3m = 3 and y-intercept b=4b = -4.

Finding the equation of a line from two points

Moderate

Problem

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

Finding the equation of a line parallel to a given line

Challenging

Problem

Find the equation of the line that is parallel to y=2x3y = 2x - 3 and passes through the point (4,11)(4, 11).

Practise

Q1·Straightforward
A line has gradient m=3m = 3 and y-intercept b=2b = 2. Which of the following is the equation of the line?
Q2·Straightforward
A line has gradient m=2m = -2 and y-intercept b=5b = 5. Which of the following is the equation of the line?
Q3·Straightforward
A line has gradient m=12m = \dfrac{1}{2} and y-intercept b=3b = -3. Which of the following is the equation of the line?
Q4·Straightforward
A line has gradient m=1m = -1 and passes through the origin. Which of the following is the equation of the line?
Q5·Moderate
A line passes through (1,3)(1, 3) and (4,9)(4, 9). Find the gradient of the line.
Q6·Moderate
A line passes through (1,3)(1, 3) and (4,9)(4, 9). The gradient is 22. Find the y-intercept of the line.
Q7·Moderate
A line passes through (1,4)(1, 4) and (3,2)(3, -2). Find the y-intercept of the line.
Q8·Moderate
A line passes through (1,1)(-1, 1) and (2,7)(2, 7). Which of the following is the equation of the line?
Q9·Challenging
Line A is y=4x+1y = 4x + 1 and Line B is y=4x7y = 4x - 7. Which statement best describes the two lines?
Q10·Challenging
Find the y-intercept of the line that is parallel to y=2x+5y = 2x + 5 and passes through the point (3,10)(3, 10).
Q11·Challenging
Which of the following lines is parallel to y=3x+2y = -3x + 2?
Q12·Challenging
Find the y-intercept of the line that is parallel to y=2x+1y = -2x + 1 and passes through the point (4,3)(4, 3).