The equation of straight line is an important topic in coordinate geometry. A straight line can be represented on the Cartesian plane by using an algebraic equation. This equation gives us a mathematical relationship between the coordinates of every point lying on the line.
In simple words, the equation of a straight line is a mathematical statement that represents all the points through which a particular straight line passes.
The concept of straight lines is useful in mathematics, physics, engineering, economics, and many other fields.
A straight line is a set of points extending indefinitely in both directions. On a Cartesian plane, a straight line can be represented using the coordinates of its points.
For example, the equation
y = 2x + 1
represents a straight line.
For different values of x, we can calculate the corresponding values of y. The resulting ordered pairs will lie on the same straight line.
For example:
If x = 0,
y = 2(0) + 1 = 1
So, one point is (0, 1).
If x = 1,
y = 2(1) + 1 = 3
So, another point is (1, 3).
These points lie on the straight line represented by y = 2x + 1.
The equation of straight line is an algebraic equation that represents a straight line on the coordinate plane.
One of the most commonly used forms is:
y = mx + c
where:
The slope tells us how steeply the line rises or falls, while the y-intercept tells us the point where the line crosses the y-axis.
The slope of a straight line is the ratio of the change in y-coordinate to the change in x-coordinate.
If two points on a line are:
(x₁, y₁) and (x₂, y₂)
then the slope is:
m = (y₂ − y₁) / (x₂ − x₁)
A positive slope means that the line generally rises from left to right.
A negative slope means that the line generally falls from left to right.
A horizontal line has slope zero.
A vertical line has an undefined slope.
The most familiar form of the equation of a straight line is:
y = mx + c
This is called the slope-intercept form.
Here:
m = slope
and
c = y-intercept
Find the equation of a straight line with slope 3 and y-intercept 2.
Using:
y = mx + c
Put m = 3 and c = 2:
y = 3x + 2
Therefore, the required equation is:
y = 3x + 2
If the slope of a line and one point on the line are known, we can use the point-slope form.
The formula is:
y − y₁ = m(x − x₁)
where:
Find the equation of a line passing through the point (2, 3) with slope 4.
Using:
y − y₁ = m(x − x₁)
Substitute:
m = 4
x₁ = 2
y₁ = 3
Therefore:
y − 3 = 4(x − 2)
Expanding:
y − 3 = 4x − 8
Therefore:
y = 4x − 5
Hence, the equation of the straight line is:
y = 4x − 5
Sometimes the slope is not directly given. Instead, two points on the line are given.
Suppose the two points are:
(x₁, y₁) and (x₂, y₂)
First, find the slope:
m = (y₂ − y₁) / (x₂ − x₁)
Then use the point-slope formula:
y − y₁ = m(x − x₁)
This gives the equation of the straight line given two points.
Find the equation of a straight line passing through the points (1, 2) and (3, 6).
First find the slope:
m = (6 − 2) / (3 − 1)
m = 4 / 2
m = 2
Now use the point-slope form:
y − 2 = 2(x − 1)
Expand:
y − 2 = 2x − 2
Therefore:
y = 2x
Hence, the equation of the straight line is:
y = 2x
A straight line can also be written in general form as:
Ax + By + C = 0
where A, B and C are constants and A and B are not both zero.
For example:
2x + 3y − 6 = 0
is the general form of the equation of a straight line.
Consider:
2x + 3y − 6 = 0
Move 2x and −6:
3y = −2x + 6
Divide by 3:
y = −(2/3)x + 2
Therefore:
m = −2/3
and
c = 2
A horizontal straight line is parallel to the x-axis.
Its equation has the form:
y = k
where k is a constant.
For example:
y = 4
represents a horizontal line passing through y = 4.
Its slope is:
m = 0
A vertical straight line is parallel to the y-axis.
Its equation has the form:
x = k
where k is a constant.
For example:
x = 5
represents a vertical line passing through x = 5.
The slope of a vertical line is undefined because the change in x is zero.
Another important form is the normal equation of straight line.
It is written as:
x cos θ + y sin θ = p
where:
This form is particularly useful when the perpendicular distance from the origin and the direction of the normal are known.
If a line cuts the x-axis at a point with x-coordinate a and the y-axis at a point with y-coordinate b, its intercept form is:
x/a + y/b = 1
where:
Find the equation of a line whose x-intercept is 4 and y-intercept is 6.
Using:
x/a + y/b = 1
Put a = 4 and b = 6:
x/4 + y/6 = 1
This is the required equation.
The two-point form of the equation of a straight line is:
(y − y₁)/(y₂ − y₁) = (x − x₁)/(x₂ − x₁)
This form is used when two points through which the line passes are known.
For example, if a line passes through:
(x₁, y₁) and (x₂, y₂)
then the above formula can be used directly to obtain its equation.
The method depends on the information given.
Use:
y = mx + c
Use:
y − y₁ = m(x − x₁)
First calculate:
m = (y₂ − y₁)/(x₂ − x₁)
Then use:
y − y₁ = m(x − x₁)
Use:
x/a + y/b = 1
Use the normal equation:
x cos θ + y sin θ = p
Find the equation of the straight line passing through (2, 5) and (4, 9).
m = (9 − 5)/(4 − 2)
m = 4/2
m = 2
Using the point (2, 5):
y − 5 = 2(x − 2)
y − 5 = 2x − 4
Therefore:
y = 2x + 1
Hence, the equation of the straight line is:
y = 2x + 1
Two straight lines are parallel when they have the same slope but different intercepts.
For example:
y = 2x + 3
and
y = 2x − 5
both have slope 2. Therefore, they are parallel.
Two non-vertical straight lines are perpendicular when the product of their slopes is −1.
If the slopes are m₁ and m₂, then:
m₁m₂ = −1
For example, if one line has slope 2, the slope of a perpendicular line is:
−1/2
because:
2 × (−1/2) = −1
The equation of a straight line helps us:
Students often make the following mistakes while solving problems involving straight lines:
Slope:
m = (y₂ − y₁)/(x₂ − x₁)
Slope-intercept form:
y = mx + c
Point-slope form:
y − y₁ = m(x − x₁)
Two-point form:
(y − y₁)/(y₂ − y₁) = (x − x₁)/(x₂ − x₁)
General form:
Ax + By + C = 0
Intercept form:
x/a + y/b = 1
Normal equation:
x cos θ + y sin θ = p
Horizontal line:
y = k
Vertical line:
x = k
The equation of straight line is an algebraic equation that represents a straight line on the Cartesian plane.
The most common form is:
y = mx + c
Here m represents the slope and c represents the y-intercept.
The slope of a line passing through two points (x₁, y₁) and (x₂, y₂) is:
m = (y₂ − y₁)/(x₂ − x₁)
If slope and one point are known, use:
y − y₁ = m(x − x₁)
If two points are given, first find the slope and then use the point-slope formula.
The general form is:
Ax + By + C = 0
The intercept form is:
x/a + y/b = 1
The normal equation is:
x cos θ + y sin θ = p
A horizontal line has the equation y = k, while a vertical line has the equation x = k.
Parallel lines have equal slopes, while perpendicular lines have slopes whose product is −1.
Which is the slope-intercept form of a straight line?
A. Ax + By + C = 0
B. y = mx + c
C. x = a
D. x/a + y/b = 0
Answer: B. y = mx + c
In y = mx + c, what does m represent?
A. x-intercept
B. y-intercept
C. slope
D. constant only
Answer: C. slope
What is the slope of a horizontal line?
A. 1
B. −1
C. 0
D. Undefined
Answer: C. 0
What is the slope of a vertical line?
A. 0
B. 1
C. −1
D. Undefined
Answer: D. Undefined
Which formula gives the slope through two points?
A. (x₂ − x₁)/(y₂ − y₁)
B. (y₂ − y₁)/(x₂ − x₁)
C. x + y
D. xy
Answer: B. (y₂ − y₁)/(x₂ − x₁)
What is the equation of a horizontal line passing through y = 5?
A. x = 5
B. y = 5
C. y = x + 5
D. x + y = 5
Answer: B. y = 5
What is the equation of a vertical line passing through x = 3?
A. y = 3
B. x = 3
C. y = 3x
D. x + y = 3
Answer: B. x = 3
Which is the point-slope form?
A. y = mx + c
B. Ax + By + C = 0
C. y − y₁ = m(x − x₁)
D. x = k
Answer: C. y − y₁ = m(x − x₁)
If two lines have equal slopes, they are generally:
A. Perpendicular
B. Parallel
C. Vertical
D. Horizontal only
Answer: B. Parallel
The general form of a straight line is:
A. Ax + By + C = 0
B. y = x²
C. xy = c
D. x² + y² = r²
Answer: A. Ax + By + C = 0
Q9: y = 2x + 3
Q10: y = −3x + 5
Q11: y = 4x − 2
Q12: y = −2x + 7
Q13: y = 2x
Q14: y = 2x + 1
Q15: x/4 + y/6 = 1
Q21: Slope = −2; equation: y = −2x − 1
The equation of straight line is one of the fundamental concepts of coordinate geometry. By understanding slope, intercepts, and different forms of a straight-line equation, students can solve a wide range of mathematical problems.
The most important forms to remember are the slope-intercept form, point-slope form, two-point form, general form, intercept form, and normal equation. Students should also understand the equations of horizontal and vertical lines and the conditions for parallel and perpendicular lines.
For more mathematics notes, recorded lectures, assessments, lesson plans, and educational resources, students can explore Nisar Math Academy. Free learning resources are also available for students, while complete courses and additional resources are available through website membership.
You May be Interested In:
What is Distance Formula and How to Apply It in Mathematics?
What Is Coordinate Plane? Definition, Axes, Quadrants, Examples & Notes
Angle of Elevation and Angle of Depression: Definition, Formulas, Examples and Questions
© Copyright 2026 - What Is Equation of Straight Line? Definition, Forms, Formula and Examples « Nisar Math Academy. All rights reserved.
Leave a Reply