krit.club logo

Coordinate Geometry - Equation of a Straight Line (y = mx + c)

Grade 9IGCSE

Review the key concepts, formulae, and examples before starting your quiz.

πŸ”‘Concepts

β€’

The equation of a straight line is written in the form y=mx+cy = mx + c, where mm is the gradient (steepness) and cc is the yy-intercept (where the line crosses the yy-axis).

Graph showing a line with y-intercept c and a gradient triangle illustrating rise over run.
β€’

Parallel lines have the same gradient. If two lines are parallel, m1=m2m_1 = m_2. Perpendicular lines have gradients that are negative reciprocals of each other, meaning m1Γ—m2=βˆ’1m_1 \times m_2 = -1.

β€’

A horizontal line has a gradient of 00 and an equation of the form y=ky = k. A vertical line has an undefined gradient and an equation of the form x=kx = k.

β€’

To find the xx-intercept of a line, set y=0y = 0 and solve for xx. To find the yy-intercept, set x=0x = 0 and solve for yy (which results in cc if in slope-intercept form).

πŸ“Formulae

y=mx+cy = mx + c (Slope-intercept form)

m=y2βˆ’y1x2βˆ’x1m = \frac{y_2 - y_1}{x_2 - x_1} (Gradient formula)

yβˆ’y1=m(xβˆ’x1)y - y_1 = m(x - x_1) (Point-gradient form)

m1Γ—m2=βˆ’1m_1 \times m_2 = -1 (Condition for perpendicular lines)

πŸ’‘Examples

Problem 1:

Find the gradient and y-intercept of the line with equation 3x+2y=83x + 2y = 8.

Solution:

2y=βˆ’3x+8β‡’y=βˆ’32x+42y = -3x + 8 \Rightarrow y = -\frac{3}{2}x + 4. Therefore, m=βˆ’1.5m = -1.5 and c=4c = 4.

Explanation:

To find mm and cc, rearrange the equation into the form y=mx+cy = mx + c by isolating yy on one side.

Problem 2:

Find the equation of the line passing through the points A(2,5)A(2, 5) and B(4,9)B(4, 9).

Solution:

m=9βˆ’54βˆ’2=42=2m = \frac{9 - 5}{4 - 2} = \frac{4}{2} = 2. Substitute into y=mx+cy = mx + c: 5=2(2)+cβ‡’5=4+cβ‡’c=15 = 2(2) + c \Rightarrow 5 = 4 + c \Rightarrow c = 1. Equation: y=2x+1y = 2x + 1.

Explanation:

First, calculate the gradient using the two-point formula. Then, substitute one of the points and the gradient into the general equation to solve for cc.

Problem 3:

Find the equation of a line parallel to y=3xβˆ’5y = 3x - 5 that passes through the point (1,7)(1, 7).

Solution:

Parallel lines have the same gradient, so m=3m = 3. Using yβˆ’y1=m(xβˆ’x1)y - y_1 = m(x - x_1): yβˆ’7=3(xβˆ’1)β‡’yβˆ’7=3xβˆ’3β‡’y=3x+4y - 7 = 3(x - 1) \Rightarrow y - 7 = 3x - 3 \Rightarrow y = 3x + 4.

Explanation:

Identify that the gradient must be 3 because the lines are parallel. Then use the point-gradient formula or y=mx+cy=mx+c to find the new y-intercept.

Problem 4:

Determine the equation of the line that passes through the point (0,βˆ’2)(0, -2) and is perpendicular to the line y=12x+3y = \frac{1}{2}x + 3.

Graph showing two perpendicular lines intersecting. One has a positive fractional slope and the other has a negative integer slope passing through (0, -2).

Solution:

m1=12m_1 = \frac{1}{2} m1Γ—m2=βˆ’1β€…β€ŠβŸΉβ€…β€Š12Γ—m2=βˆ’1β€…β€ŠβŸΉβ€…β€Šm2=βˆ’2m_1 \times m_2 = -1 \implies \frac{1}{2} \times m_2 = -1 \implies m_2 = -2 y=mx+cβ€…β€ŠβŸΉβ€…β€Šy=βˆ’2x+cy = mx + c \implies y = -2x + c SubstituteΒ (0,βˆ’2):βˆ’2=βˆ’2(0)+cβ€…β€ŠβŸΉβ€…β€Šc=βˆ’2\text{Substitute } (0, -2): -2 = -2(0) + c \implies c = -2 y=βˆ’2xβˆ’2y = -2x - 2

Explanation:

First, identify the gradient of the given line (m1=12m_1 = \frac{1}{2}). Since perpendicular lines have gradients that multiply to βˆ’1-1, the new gradient is m2=βˆ’2m_2 = -2. The point (0,βˆ’2)(0, -2) provides the y-intercept (c=βˆ’2c = -2) directly.

Problem 5:

A line LL passes through the points P(βˆ’2,4)P(-2, 4) and Q(2,0)Q(2, 0). Find the equation of the line and the coordinates of the point where it crosses the x-axis.

Graph of the line y = -x + 2 passing through points P(-2, 4) and Q(2, 0).

Solution:

m=0βˆ’42βˆ’(βˆ’2)=βˆ’44=βˆ’1m = \frac{0 - 4}{2 - (-2)} = \frac{-4}{4} = -1 yβˆ’y1=m(xβˆ’x1)β€…β€ŠβŸΉβ€…β€Šyβˆ’0=βˆ’1(xβˆ’2)y - y_1 = m(x - x_1) \implies y - 0 = -1(x - 2) y=βˆ’x+2y = -x + 2 AtΒ x-axis,Β y=0:0=βˆ’x+2β€…β€ŠβŸΉβ€…β€Šx=2\text{At x-axis, } y = 0: 0 = -x + 2 \implies x = 2 X-intercept:Β (2,0)\text{X-intercept: } (2, 0)

Explanation:

Calculate the gradient using the two points. Substitute the gradient and one point into the point-gradient form to find the equation. To find the x-intercept, set y=0y=0 and solve for xx.

Equation of a Straight Line (y = mx + c) Grade 9 Notes & Examples