Table of Contents
Last modified on February 26th, 2025
The equation of a line is an expression that describes a straight line by defining the relationship between its points in a coordinate plane. Each point on the line is represented by a coordinate (x, y). There are an infinite number of points on a line.
It is thus a linear equation with a degree of 1.
The equation of a line can be expressed in various forms depending on the given information.
The standard or general form of the equation of a line:
For One Variable is Ax + B = 0
For Two Variable is Ax + By = C
Here,
The equation 2x + 3y = 6 represents a line in standard form.
The equation of a line is most commonly written in the slope-intercept form, which is written as:
y = mx + b (written as y = mx + c in UK)
Here,
Thus, we need the slope and the y-intercept to find the equation of the line.
The slope can be positive (the line goes up as you move to the right), negative (the line goes down as you move to the right), or zero (a horizontal line). The line is said to be undefined if it is vertical.
For example,
If a line has a slope of 2 and a y-intercept of -3, its equation is: y = 2x – 3. The equation has a positive slope.
Given a point on the line and the slope, we use the point-slope form, which is written as:
y – y1 = m(x – x1)
Here,
For example,
If a point is (3, 4) and a slope is 5, the equation of the line is: y – 4 = 5(x – 3)
When any two points of a line are known, say (x1, y1) and (x2, y2), we use the two-point form:
${\dfrac{y-y_{1}}{y_{2}-y_{1}}=\dfrac{x-x_{1}}{x_{2}-x_{1}}}$
If (2, 3) and (4, 7) are two given points of a line, then the equation is:
${\dfrac{y-3}{7-3}=\dfrac{x-2}{4-2}}$, which simplifies to y – 3 = 2(x – 2)
If the line makes intercepts both at the x- and y-axis, say at a and b, respectively, we use the intercept form:
${\dfrac{x}{a}+\dfrac{y}{b}=1}$
For example,
If a line crosses the x-axis at 4 and the y-axis at 2, the equation of the line is:
${\dfrac{x}{4}+\dfrac{y}{2}=1}$
Note: Sometimes, a linear equation can be written as a function using f(x) instead of y. For example,
f(x) = 3x – 7, g(x) = x + 1, and h(x) = -5x + 3
However, functions are not always written using f(x). For example,
f(y) = 3y – 7, g(p) = p + 1, and h(u) = -5u + 3
Below are the different ways we learned to express the equation of a straight line:
Determine the equation of a line passing through the points (2, 5) and (6, 9).
Using the two-point form, m = ${\dfrac{9-5}{6-2}=\dfrac{4}{4}=1}$
Thus, the equation is: y – 5 = 1(x – 2)
⇒ y – 5 = x – 2
⇒ y = x + 5 – 2
⇒ y = x + 3
Thus, the equation of the line is y = x + 3
Find the equation of a line that passes through the point (3, -2) with a slope of -4.
Using point-slope form, we get
y + 2 = -4(x – 3)
⇒ y + 2 = -4x + 12
⇒ y = -4x + 12 – 2
⇒ y = -4x + 10
Thus, the equation of the line is y = -4x + 10
Last modified on February 26th, 2025