Fundamentholfundamenthol

Introduction to Straight Lines

MathsStraight LinesFor JEE aspirants

A straight line in the coordinate plane is completely determined by any two of its properties - two points on it, a point and a slope, two intercepts, or the perpendicular from the origin. The equation of a straight line is a first-degree relation in and , and every first-degree equation represents a straight line. This concept covers the eight standard forms of the equation of a line, the angle between two lines, parallel and perpendicular conditions, the family of concurrent lines, and the theory of a pair of straight lines given by a second-degree equation.

Key Formulas - Quick Reference
  1. Slope: , where is the inclination.
  2. Point-slope: .
  3. Slope-intercept: .
  4. Two-point: .
  5. Intercept: .
  6. Normal: , .
  7. Parametric: .
  8. General: ; slope .
  9. Angle between two lines: .
  10. Distance between parallel lines and : .
  11. Pair through origin : slopes have , ; angle .

1. Slope (Gradient) of a Line

Let be the angle a straight line makes with the positive direction of the -axis, measured anti-clockwise, with . Then is called the inclination of the line and

is its slope (or gradient). Special cases:

  • : line is parallel to the -axis, .
  • : line is parallel to the -axis (vertical); is undefined.
  • : line rises left-to-right, .
  • : line falls left-to-right, .
Four cases of inclination and the sign of the slope Four small panels each show a horizontal reference axis and one straight line. In the first the line is parallel to the axis so the inclination is zero and the slope is zero. In the second the inclination is acute and the slope is positive. In the third the line is vertical so the inclination is ninety degrees and the slope is undefined. In the fourth the inclination is obtuse and the slope is negative. inclination θ measured anti-clockwise from the positive x-axis θ = 0° m = 0 θ acute m is positive θ = 90° m undefined θ obtuse m is negative
Figure 1. The four cases. is zero for a horizontal line, positive for , undefined at , and negative for .

Slope from two points

If and are two points on a line and , then

Slope of a line as the tangent of its inclination A straight line crosses the x axis and rises to the right. The angle between the positive x direction and the line is marked theta. Two points A and B on the line are joined by a horizontal step of length x two minus x one and a vertical step of length y two minus y one, forming a right angled triangle whose ratio of vertical to horizontal step is the slope. x y O θ x2 − x1 y2 − y1 A(x1, y1) B(x2, y2) slope m = tan θ inclination θ is measured anti-clockwise from the x-axis
Figure 2. Slope is the tangent of the inclination: , the vertical step divided by the horizontal step between any two points of the line.
Solved Example 1
Find the slope of the line whose inclination is (i) , (ii) .
Solution:

(i) .

(ii) .

Solved Example 2
Find the slope of the line through and .
Solution:

.

2. Various Forms of the Equation of a Line

2.1 Point-slope form

Line with slope passing through :

Solved Example 3
Find the equation of the line through inclined at with the -axis.
Solution:

. So , i.e., or .

2.2 Slope-intercept form

Line with slope and -intercept (i.e., cutting the -axis at ):

Solved Example 4
Find the equation of the line with slope and -intercept .
Solution:

or equivalently .

2.3 Two-point form

Line through two given points and :

2.4 Determinant form

Same idea rewritten as a determinant:

Expanding this determinant gives the two-point form directly.

Solved Example 5
Find the equation of the line joining and .
Solution:

Slope .

Using point-slope with : .

2.5 Intercept form

Line with -intercept and -intercept (i.e., meeting the axes at and , both non-zero):

Intercept form of a straight line A straight line meets the x axis at the point a comma zero and the y axis at the point zero comma b, cutting off a shaded right angled triangle with the axes. The distance from the origin to the first point is marked a and the distance from the origin to the second point is marked b. x y O a b (a, 0) (0, b) x / a + y / b = 1 a is the x-intercept, b is the y-intercept
Figure 3. Intercept form. A line meeting the axes at and has equation , and cuts off a triangle of area with the axes.
Solved Example 6
A line passes through and the sum of its intercepts on the axes is . Find its equation.
Solution:

Let intercepts be and with , so . The line is .

Passing through : .

.

So giving or ; or giving .

2.6 Normal (perpendicular) form

If the perpendicular from the origin to the line has length and makes an angle with the positive -axis, then

The constant is always taken as positive; the angle carries the direction information.

Normal form of a straight line A straight line is drawn across the plane. From the origin a segment of length p meets the line at right angles at the foot N. The angle between the positive x axis and this perpendicular is marked alpha. The line is then described completely by the two quantities p and alpha. x y O p N α x cos α + y sin α = p p is the length of the perpendicular from O and is always positive
Figure 4. Normal form. If the perpendicular from the origin has length and makes angle with the positive -axis, the line is with .
Solved Example 7
A line is at distance from the origin and the perpendicular from the origin makes an angle of with the positive -axis. Find its equation.
Solution:

, . Equation: , i.e., or .

2.7 Parametric (distance) form

Line through inclined at angle with the positive -axis:

where is the distance from to the variable point on the line. So any point on the line is

Parametric or distance form of a straight line A straight line passes through a fixed point P and makes an angle theta with a dashed horizontal reference direction. A second point Q lies on the line at a distance r from P on one side, and another point lies on the opposite side where the signed distance r is negative. θ P(x1, y1) Q(x, y) Q′ r r is negative (x, y) = (x1 + r cos θ, y1 + r sin θ) r is the signed distance of (x, y) from P
Figure 5. Parametric form. Every point of the line through with inclination is , where is the signed distance from .

This form is invaluable for "find points on this line at a given distance from a fixed point" problems.

Solved Example 8
Find the equation of the line through making an angle with the -axis, and the length of its intercept between and the line .
Solution:

Line: , i.e., .

Any point on it at distance from : . Substituting into : .

Distance .

2.8 General form

Every straight line can be written as

From this general form:

  • Slope (undefined if ; the line is then vertical).
  • -intercept ; -intercept .
  • Distance from origin .
Solved Example 9
Find the slope, -intercept, and -intercept of .
Solution:

Slope . -intercept . -intercept .

3. Angle Between Two Lines

Let and be the slopes of two intersecting lines with . The acute angle between them satisfies

Angle between two intersecting straight lines Two straight lines cross the x axis at different points and meet each other above it. The angle each line makes with the positive x direction is marked theta one and theta two, and the angle between the two lines at their point of intersection is marked theta. Since theta is the difference of the two inclinations, its tangent follows from the tangent subtraction formula. x θ1 θ2 θ L1 L2 tan θ = | (m1 − m2) / (1 + m1 m2) |
Figure 6. The angle between two lines is the difference of their inclinations, so . The lines are parallel when and perpendicular when .

Two special cases:

  • Parallel lines: (both defined) or both undefined.
  • Perpendicular lines: (both defined); alternatively one is horizontal () and the other is vertical.

Equivalently, for lines in general form:

  • is parallel to iff .
  • The two lines are perpendicular iff .

Line through a point making a given angle with a given line

The two lines through making angle with the line are

where .

Solved Example 10
The acute angle between two lines is and the slope of one of them is . Find the slope of the other.
Solution:

Let the other slope be . Then .

So . Positive: . Negative: .

The slope of the other line is or .

Solved Example 11
A vertex of an equilateral triangle is and the opposite side lies on . Find the equations of the other two sides.
Solution:

Slope of is . The other two sides pass through and make with slope .

.

Solving both signs: or .

Equations: and .

4. Distance Between Two Parallel Lines

The distance between the parallel lines and is

Distance between two parallel straight lines Two parallel straight lines run across the figure with a shaded band between them. A segment drawn from one line to the other meets both at right angles, and its length d is the distance between the lines. The two equations share the same coefficients of x and y and differ only in their constant terms. d ax + by + c1 = 0 ax + by + c2 = 0 d = | c1 − c2 | / √(a2 + b2) same a and b in both equations
Figure 7. Distance between parallels. With identical and in both equations, ; rescale one equation first if the coefficients do not already match.

Warning: the coefficients of and in both equations must be identical before applying the formula. If they aren't, multiply one equation through to match them.

Solved Example 12
Two sides of a square lie on and . Find its area.
Solution:

Side of the square distance between the two parallel lines .

Area .

Area of a parallelogram formed by four lines

If the four sides are , then

5. Family of Lines and Concurrency

Family through the intersection of two lines

If and meet at a point , then every line through (except itself) can be written as

Family of straight lines through the intersection of two given lines Two given straight lines cross at a point P. Several further lines, drawn dashed, also pass through P at different inclinations. Together they form the family of all lines through that common point, generated by adding a multiple of the second line equation to the first. P L1 = 0 L2 = 0 every line through P is L1 + λ L2 = 0
Figure 8. The family of lines. If and meet at , then passes through for every real , and every line through except itself arises this way.

Choose to make the resulting line satisfy the extra condition of the problem.

Concurrency of three lines

Three lines () are concurrent iff

Equivalently, three lines are concurrent if constants (not all zero) exist with (identically).

Solved Example 13
Find the equation of the line passing through and through the intersection of and .
Solution:

Any line through the intersection: . Passing through : .

Substituting: .

Solved Example 14
Show that , , are concurrent.
Solution:

. Concurrent.

6. Pair of Straight Lines Through the Origin

A homogeneous equation of degree two in and ,

always represents a pair of straight lines passing through the origin. Dividing by and setting gives the quadratic whose two roots are the slopes of the two lines.

Slopes of the pair

Pair of straight lines through the origin from a homogeneous equation Two straight lines pass through the origin with different slopes, and the angle between them is marked theta. A homogeneous second degree equation in x and y factorises into these two lines, so the sum and the product of their slopes can be read straight off the coefficients. x y O θ y = m1 x y = m2 x ax2 + 2hxy + by2 = 0 m1 + m2 = −2h / b m1 m2 = a / b
Figure 9. A homogeneous second-degree equation always represents two lines through the origin, with , and .

Nature of the pair

  • : two distinct real lines.
  • : two coincident real lines.
  • : no real lines - only the origin (imaginary pair, real point of intersection at ).

Angle between the pair

The acute angle between the two lines represented by is

Special cases

  • Perpendicular lines: (coefficient of + coefficient of = 0).
  • Coincident lines: .
  • Equally inclined to the -axis: (the coefficient of vanishes).
Extension. A homogeneous equation of degree in represents straight lines through the origin (some possibly imaginary).

Angle bisectors of the pair

The equation of the pair of angle bisectors of is

Note: the bisectors are always perpendicular to each other (the two bisectors of any angle pair are).

Solved Example 15
Show that represents two distinct lines through the origin and find them.
Solution:

Here . So : two distinct real lines.

Factorise: . Lines: and .

Solved Example 16
Find the angle between the pair of lines .
Solution:

. .

Acute angle .

Solved Example 17
Find the equation of the bisectors of the angles between the lines .
Solution:

Here . Bisector pair: , i.e., .

Cross-multiplying: .

7. General Second-Degree Equation as a Pair of Lines

The general second-degree equation

represents a pair of straight lines if and only if

along with (so that the pair is real).

Angle between the pair

The angle between the two lines depends only on the second-degree part - i.e., it is the same as for :

Point of intersection of the pair

Assuming , the two lines meet at

An easy way to remember: partially differentiate the LHS with respect to and , set both to zero, and solve. That gives the intersection point directly.

Condition for the pair to be parallel lines

The pair represents two parallel lines iff and (or equivalently , ). The distance between the two parallel lines is

Solved Example 18
Show that represents a pair of straight lines and find their point of intersection.
Solution:

Here .

.

. Pair confirmed.

Treating as a quadratic in : . Discriminant .

, giving and .

Solving: . Point of intersection: .

8. Homogenisation - Joint Equation from the Origin

Given a curve and a line (), let the line cut the curve at and . The joint equation of the two straight lines and (from the origin to the intersection points) is obtained by making homogeneous of degree two using :

Every term is now of degree two, so the equation represents a pair of straight lines through the origin - exactly and .

Homogenisation gives the pair of lines joining the origin to a chord A curve is cut by a straight line at two points A and B. Dashed segments join the origin to each of these points. Making the curve equation homogeneous of degree two with the help of the line equation produces the single second degree equation of this pair of lines through the origin. O A B S = 0 L = 0 OA and OB form a pair of lines through the origin
Figure 10. Homogenisation. Writing the line as and using it to raise every term of to degree two gives the joint equation of and , the pair of lines from the origin to the points where the line cuts the curve.
Solved Example 19
If the lines joining the origin to the points of intersection of with are perpendicular, find .
Solution:

Write the line as . Homogenising :

.

Coefficient of : . Coefficient of : .

For perpendicular lines the two coefficients sum to zero: .

Solved Example 20
Find the equation of the lines joining the origin to the points of intersection of with the curve .
Solution:

Write . Homogenise: .

Multiply by : .

Common Mistakes to Avoid

Watch out
  • Slope of a vertical line: is undefined - the line has no slope, not "infinite slope". Write vertical lines as , not as .
  • Angle between lines when : the formula gives division by zero because the lines are perpendicular; simply state instead of trying to plug in.
  • Distance between parallel lines: the coefficients of and must match. and - divide the second by first, then apply the formula.
  • Homogeneous eqn : the coefficient of is , not . A student who reads as (instead of ) will get the angle wrong.
  • General second-degree pair: the determinant condition is necessary but you also need for the lines to be real (otherwise you get an imaginary pair).
  • Homogenisation: the line must be written in the form (i.e., ), never - otherwise you'd be multiplying by zero and lose information.
  • Family of lines: generates every line through the intersection except itself. If the required line is , no finite works.

Frequently Asked Questions

Q1. When is the slope of a line undefined?

When the line is vertical - i.e., parallel to the -axis. Its inclination is and is undefined. Vertical lines have the equation for some constant .

Q2. Why is always taken positive in the normal form ?

Because represents a length - the perpendicular distance from the origin to the line - and lengths are non-negative by definition. The direction information is carried by the angle (which can range over ).

Q3. What is the parametric form used for?

It gives every point on a line as where is the distance from a fixed point . This makes it ideal for problems that ask "find the point on this line at distance from a given point" or "find the length of intercept between two curves along a given line".

Q4. How many lines can pass through the intersection of two given lines?

Infinitely many - the entire pencil of lines through that point. Algebraically, the family (for varying real ) covers every line through the point of intersection except itself.

Q5. What is the condition for to represent perpendicular lines?

The condition is - i.e., the sum of the coefficients of and vanishes. This is a very useful test that requires no factoring.

Q6. What is the difference between and the general second-degree equation?

The homogeneous form (no first-degree or constant terms) always represents a pair of lines through the origin. The general form with all six terms represents a pair only if the extra condition holds, and then the two lines can meet anywhere - not necessarily at the origin.

Q7. What does the homogenisation trick achieve?

Given a line meeting a curve at two points and , homogenisation produces a single second-degree equation whose two lines are exactly and . This lets you find the angle at the origin, test perpendicularity, or write the joint equation - all without solving for and explicitly.

Q8. Are the two angle bisectors of a pair of lines always perpendicular?

Yes. The two bisectors of the two angles between any pair of intersecting lines bisect supplementary angles, and supplementary bisectors are always perpendicular to each other. That's why (the pair-of-bisectors equation) has coefficient of equal to negative of coefficient of - the perpendicularity condition.

Previous year questions on Introduction to Straight Lines

4 questions from past papers, each with a step-by-step solution.

Ready to master Straight Lines?

Take a full mock test, practice concept-by-concept, and get an AI-powered rank prediction — all on Fundamenthol.