

How to Find the Equation of a Straight Line with Examples
A straight line in coordinate geometry is the locus of all points in a plane satisfying a linear equation in two variables. It is fundamental for understanding geometric relationships and is usually expressed using distinct algebraic forms.
Cartesian Equation of a Straight Line: $ax + by + c = 0$
A straight line in the $xy$-plane is characterized by the general linear equation $ax + by + c = 0$, where $a$, $b$, $c$ are real constants and at least one of $a$, $b$ is nonzero.
If two points $P(x_1, y_1)$ and $Q(x_2, y_2)$ satisfy $ax + by + c = 0$, then every point dividing $PQ$ in the ratio $n:1$ also satisfies the equation, confirming the linearity of the locus.
The equation represents a straight line irrespective of the values of $c$ (except when $a = b = 0$, which is excluded by definition).
Slope of a Line and Direction Ratios
Given a non-vertical line, the slope $m$ is the tangent of the angle $\theta$ the line makes with the positive $x$-axis, measured anticlockwise: $m = \tan\theta$.
If two points $A(x_1, y_1)$ and $B(x_2, y_2)$ are on the line and $x_1 \neq x_2$, then $m = \dfrac{y_2 - y_1}{x_2 - x_1}$.
- Horizontal line: $m = 0$
- Vertical line: $m$ is undefined
Standard Forms of the Equation of a Straight Line
Different forms are used depending on the information given. The equations below describe all possible straight lines in the plane:
- Point-slope form: $y - y_1 = m(x - x_1)$
- Slope-intercept form: $y = mx + c$
- Two-point form: $\dfrac{y - y_1}{y_2 - y_1} = \dfrac{x - x_1}{x_2 - x_1}$
- Intercept form: $\dfrac{x}{a} + \dfrac{y}{b} = 1$
- Normal form: $x\cos\alpha + y\sin\alpha = p$
In the intercept form, $a$ and $b$ denote $x$- and $y$-intercepts, respectively. The normal form presents the distance $p$ from the origin to the line and the inclination $\alpha$ with the $x$-axis.
Criteria for Parallelism, Perpendicularity, and Collinearity
Result: Two non-vertical lines with slopes $m_1$ and $m_2$ are parallel if $m_1 = m_2$. They are perpendicular if $m_1 m_2 = -1$.
Three points $A$, $B$, $C$ are collinear if the slope between $A$ and $B$ equals the slope between $B$ and $C$.
Angle Between Two Lines in Terms of Slopes
If lines have slopes $m_1$ and $m_2$, the angle $\theta$ between them is given by $\tan\theta = \left|\dfrac{m_2 - m_1}{1 + m_1 m_2}\right|$.
If one or both lines are vertical, handle via limits. When lines are perpendicular, $m_1 m_2 = -1$.
Distance of a Point from a Line
Given the line $ax + by + c = 0$ and a point $P(x_1, y_1)$, the perpendicular distance from $P$ to the line is $d = \dfrac{|ax_1 + by_1 + c|}{\sqrt{a^2 + b^2}}$.
Distance Between Two Parallel Lines
If $L_1: ax + by + c_1 = 0$ and $L_2: ax + by + c_2 = 0$ are parallel, their separation is $D = \dfrac{|c_2 - c_1|}{\sqrt{a^2 + b^2}}$.
Homogeneous Equations of Pair of Lines Through Origin
A second-degree homogeneous equation $ax^2 + 2hxy + by^2 = 0$ represents two straight lines through the origin. Each solution corresponds to a line passing through $(0,0)$.
Angle between these lines is given by $\theta = \arctan\left|\dfrac{2\sqrt{h^2 - ab}}{a + b}\right|$ if $a + b \neq 0$.
Illustrative Example 1: Equation of a Line Through Two Points
Example: Find the equation of the line passing through $(3, 5)$ and $(7, -1)$.
Slope: $m = \dfrac{-1 - 5}{7 - 3} = \dfrac{-6}{4} = -\dfrac{3}{2}$.
Using point-slope form: $y - 5 = -\dfrac{3}{2}(x - 3)$, or $3x + 2y - 19 = 0$.
Illustrative Example 2: Distance from a Point to a Line
Solution: For point $(2, 1)$ and line $3x - 4y + 10 = 0$:
$d = \dfrac{|3(2) - 4(1) + 10|}{\sqrt{3^2 + (-4)^2}} = \dfrac{|6 - 4 + 10|}{5} = \dfrac{12}{5}$.
Illustrative Example 3: Equation in Intercept Form
Example: Find the equation of the line cutting $x$- and $y$-axes at $(2, 0)$ and $(0, -3)$.
Intercept form: $\dfrac{x}{2} + \dfrac{y}{-3} = 1$.
Coordinate Geometry methods enable direct substitution in such cases.
Common Error: Misapplication of Slope Formula
A frequent error is reversing the order of subtraction in slope calculations, leading to sign errors. Ensure correct assignment when computing $m = \dfrac{y_2 - y_1}{x_2 - x_1}$.
Connection to Slope Forms and Analytical Geometry
A deep understanding of the equivalence among different forms simplifies conversion and enables systematic problem solving in Analytical Geometry.
Practice Problem Patterns for Exam Preparation
- Finding the equation with given point and slope
- Proving points are collinear using slopes
- Determining intersection of two lines
- Calculating area formed by lines and axes
Content mastery in straight lines is foundational for later topics such as Graphs of Sine and Cosine Function and Circular Permutation.
Avoid algebraic manipulation errors, especially when converting to the general or standard forms. Distinguishing between vertical and non-vertical lines is essential for correct application of formulas.
FAQs on Understanding Straight Lines in Mathematics
1. What is a straight line in mathematics?
A straight line is a basic geometric figure that extends infinitely in both directions without curving. Key points about straight lines include:
- It has constant slope and zero curvature.
- It is uniquely determined by any two distinct points.
- It is represented mathematically by equations such as y = mx + c in the slope-intercept form.
- Essential in coordinate geometry and forms the foundation of linear equations.
2. What is the general equation of a straight line?
The general equation of a straight line is expressed as Ax + By + C = 0. Key features include:
- A, B, and C are real numbers, with at least one of A or B not equal to zero.
- This form can represent vertical, horizontal, and oblique lines.
- It is widely used in analytical geometry to describe straight lines on the Cartesian plane.
3. How do you find the slope of a straight line?
The slope of a straight line measures its steepness and is calculated as the ratio of vertical change to horizontal change. To find slope:
- Use two points on the line: (x1, y1) and (x2, y2).
- Apply the formula: m = (y2 - y1) / (x2 - x1).
- The slope helps in identifying parallelism and perpendicularity between lines.
4. What are the different forms of the equation of a straight line?
The equation of a straight line can be represented in several forms, depending on the information given:
- Slope-intercept form: y = mx + c
- Point-slope form: y - y1 = m(x - x1)
- Two-point form: (y - y1) = [(y2 - y1)/(x2 - x1)](x - x1)
- Intercept form: x/a + y/b = 1
- Normal form: x cos α + y sin α = p
5. How can you determine whether two lines are parallel or perpendicular?
Two straight lines are parallel if they have the same slope, and perpendicular if the product of their slopes is -1.
- For lines with slopes m1 and m2:
- Parallel condition: m1 = m2
- Perpendicular condition: m1 * m2 = -1
- This concept is crucial in coordinate geometry and during graph plotting.
6. What is the intercept form of a straight line?
The intercept form of a straight line is x/a + y/b = 1, where a and b are the x-intercept and y-intercept respectively. Key points:
- Shows where the line cuts the x-axis and y-axis.
- Useful for graphing lines given their intercepts.
- Links directly to concepts like axis intersection and geometrical interpretation.
7. How do you derive the equation of a straight line passing through a given point with a given slope?
To derive the equation of a line passing through (x1, y1) with slope m:
- Use the point-slope form: y - y1 = m(x - x1)
- This form is helpful when information about one point and the slope is given.
- Relevant for drawing lines and solving problems in coordinate geometry.
8. What is the distance between a point and a straight line?
The shortest distance from point (x1, y1) to line Ax + By + C = 0 is given by:
- Distance formula: |Ax1 + By1 + C| / √(A² + B²)
- This formula tells you how far the point is from the line in the Cartesian plane.
- Commonly used in geometry and distance calculation problems.
9. What is the significance of the slope-intercept form of a straight line?
The slope-intercept form (y = mx + c) makes it simple to identify the slope (m) and the y-intercept (c) of a line.
- It directly shows how the line increases or decreases.
- Helps in quick graph plotting and understanding line orientation.
- Vital for exam purposes and graphical solutions.
10. How do you check if a point lies on a straight line?
To determine if a point (x1, y1) lies on a line, substitute the point into the line's equation.
- If the equation holds true after substitution, the point lies on the line.
- For example, for y = mx + c, substitute x1 and y1.
- This method is essential for problem solving and line verification in coordinate geometry.





















