Part 4 · Chapter 16

Straight Lines

Geometry turns into algebra — every line becomes an equation, and slope, distance and angle are read straight off the coefficients

Fundamentals of Mathematics Prof. Mithun Mondal Reading time ≈ 38 min
i What you'll learn
  • The meaning of slope as \(m=\tan\theta\), and how inclination and slope are linked.
  • Every form of a line's equation — point-slope, two-point, slope-intercept, intercept and normal — and when each is fastest.
  • Reading slope, intercepts and perpendicular distance straight off the general equation \(Ax+By+C=0\).
  • The angle between two lines, with the clean tests for parallel and perpendicular.
  • The distance of a point from a line and the distance between two parallel lines.
  • Intersection, concurrency, the family of lines, and the foot of perpendicular and reflection of a point.
Section 16-1

Slope & Inclination of a Line

The inclination of a line is the angle \(\theta\), measured anticlockwise from the positive \(x\)-axis to the line, with \(0^{\circ}\le\theta<180^{\circ}\). Its slope (or gradient) is the tangent of that angle, \(m=\tan\theta\) — a single number that captures the line's steepness and direction. Through any two points the slope is the ratio of vertical change to horizontal change.

θ run Δx rise Δy A B y x
Slope \(=\) rise over run \(=\tan\theta\)
📈
Slope from two points
\(m=\tan\theta=\dfrac{y_2-y_1}{x_2-x_1}\quad(x_1\neq x_2)\)

A line rising to the right has \(m>0\); falling to the right, \(m<0\). A horizontal line has \(m=0\), and a vertical line has undefined slope (\(\theta=90^{\circ}\)).

! Vertical lines have no slope

A vertical line \(x=a\) cannot be written as \(y=mx+c\) because its slope is undefined, not infinite. Keep this exception in mind whenever you divide by a difference of \(x\)-coordinates or by \(1+m_1m_2\).

Section 16-2

Forms of a Line's Equation

A straight line is fixed by the right pair of facts — a point and a slope, or two points, or a slope and an intercept. Each pairing gives a ready-made form. They are all the same line dressed differently; choose the one that matches the data you are handed.

✏️
Point-slope & two-point forms
\(y-y_1=m\,(x-x_1);\qquad \dfrac{y-y_1}{x-x_1}=\dfrac{y_2-y_1}{x_2-x_1}\)

The point-slope form is the workhorse: it needs just one point and the slope. The two-point form is the same thing after substituting \(m=\dfrac{y_2-y_1}{x_2-x_1}\).

Slope-intercept form
\[ y=mx+c \]
Here \(m\) is the slope and \(c\) is the \(y\)-intercept — the value of \(y\) where the line crosses the \(y\)-axis. Reading a graph, both come off by inspection.
The pattern

The line through \((2,3)\) with slope \(2\) is \(y-3=2(x-2)\), i.e. \(y=2x-1\). One point, one slope, one line.

Section 16-3

Intercept & Normal Forms

Two more forms describe a line by where it sits rather than by a point and slope. The intercept form uses the two axis crossings; the normal form uses the perpendicular dropped from the origin.

a b O (a,0) (0,b)
Intercept form: crossings at \(a\) and \(b\)
α p N O
Normal form: perpendicular \(p\) at angle \(\alpha\)
📐
Intercept and normal forms
\(\dfrac{x}{a}+\dfrac{y}{b}=1;\qquad x\cos\alpha+y\sin\alpha=p\)

In the intercept form, \(a\) and \(b\) are the \(x\)- and \(y\)-intercepts. In the normal form, \(p>0\) is the length of the perpendicular from the origin and \(\alpha\) the angle that perpendicular makes with the positive \(x\)-axis.

The normal form measures distance directly. Because \(\cos^2\alpha+\sin^2\alpha=1\), the left side of \(x\cos\alpha+y\sin\alpha=p\) already reads off as a perpendicular distance. This is exactly why the distance formula in Section 16-6 carries that \(\sqrt{A^2+B^2}\) in its denominator — it is the factor that normalises a general equation.
Section 16-4

The General Equation \(Ax+By+C=0\)

Every straight line — including vertical ones — can be written as \(Ax+By+C=0\) with \(A,B\) not both zero. This single form is the one to convert into for slope, intercepts and distance, since each reads off the coefficients.

Slope

The slope is \(m=-\dfrac{A}{B}\) (provided \(B\neq0\)); if \(B=0\) the line is vertical.

Intercepts

\(x\)-intercept \(-\dfrac{C}{A}\), \(y\)-intercept \(-\dfrac{C}{B}\).

Normalising

Divide through by \(\pm\sqrt{A^2+B^2}\) to reach the normal form and read off \(p\).

Section 16-5

Angle Between Two Lines

Two lines with slopes \(m_1\) and \(m_2\) meet at an angle \(\theta\) found from their slopes. The acute angle is taken by the absolute value; the supplementary obtuse angle is its partner.

θ m₁ m₂
The angle \(\theta\) between two intersecting lines
📐
Angle, parallel & perpendicular
\(\tan\theta=\left|\dfrac{m_1-m_2}{1+m_1m_2}\right|\)

Parallel lines have equal slopes, \(m_1=m_2\) (then \(\tan\theta=0\)). Perpendicular lines satisfy \(m_1m_2=-1\) (the denominator vanishes, so \(\theta=90^{\circ}\)).

! The coefficient tests

For lines \(A_1x+B_1y+C_1=0\) and \(A_2x+B_2y+C_2=0\): they are parallel when \(A_1B_2=A_2B_1\) and perpendicular when \(A_1A_2+B_1B_2=0\). These avoid slopes entirely, so they handle vertical lines without a special case.

Section 16-6

Distance of a Point from a Line

The (perpendicular) distance from a point to a line is the shortest of all distances from that point to points on the line. Put the line in general form, then substitute the point's coordinates into the left side and normalise.

P(x₁,y₁) d Ax+By+C=0
Perpendicular distance \(d\) from \(P\) to the line
📏
Point–line and parallel–line distances
\(d=\dfrac{|Ax_1+By_1+C|}{\sqrt{A^2+B^2}};\qquad d_{\parallel}=\dfrac{|C_1-C_2|}{\sqrt{A^2+B^2}}\)

The first gives the distance of \((x_1,y_1)\) from \(Ax+By+C=0\). The second, for two parallel lines written with the same \(A,B\), is just the gap in their constant terms, normalised.

Why the absolute value? The signed quantity \(Ax_1+By_1+C\) is positive on one side of the line and negative on the other, and zero exactly on it. Distance keeps only the magnitude — but that sign is itself useful: it tells you which side of the line a point lies on (Section 16-7).
Section 16-7

Intersection, Concurrency & the Family of Lines

Two non-parallel lines meet in exactly one point — solve their equations simultaneously to find it. Three or more lines are concurrent when they all pass through a single common point. And every line through a fixed intersection can be captured by a single parameter.

Family of lines through an intersection
\[ L_1+\lambda L_2=0\quad\Longleftrightarrow\quad (A_1x+B_1y+C_1)+\lambda(A_2x+B_2y+C_2)=0 \]
For every value of the parameter \(\lambda\), this passes through the intersection of \(L_1=0\) and \(L_2=0\). Fix \(\lambda\) by imposing one more condition — a point, a slope, or a perpendicularity.
🔗
Test for concurrency
\(\begin{vmatrix} A_1 & B_1 & C_1 \\ A_2 & B_2 & C_2 \\ A_3 & B_3 & C_3 \end{vmatrix}=0\)

Three lines are concurrent precisely when this determinant vanishes — a single check that replaces finding an intersection and substituting into the third line.

! Which side of a line?

Points \((x_1,y_1)\) and \((x_2,y_2)\) lie on the same side of \(Ax+By+C=0\) when \((Ax_1+By_1+C)\) and \((Ax_2+By_2+C)\) have the same sign, and on opposite sides when the signs differ.

Section 16-8

Reflections & Standard Results

Dropping a perpendicular from a point onto a line gives its foot; reflecting the point across the line gives its image. Both come from one compact formula, and a few recurring results are worth carrying ready-made.

🪞
Foot of perpendicular and image of a point
\(\dfrac{x-x_1}{A}=\dfrac{y-y_1}{B}=-\dfrac{Ax_1+By_1+C}{A^2+B^2}\)

This locates the foot of the perpendicular from \((x_1,y_1)\) to \(Ax+By+C=0\). For the image (reflection), replace the right side with \(-\dfrac{2(Ax_1+By_1+C)}{A^2+B^2}\) — the foot is the midpoint of the point and its image.

Parallel through a point

A line parallel to \(Ax+By+C=0\) keeps \(A,B\) and only changes the constant: \(Ax+By+k=0\).

Perpendicular through a point

A line perpendicular to \(Ax+By+C=0\) swaps and negates: \(Bx-Ay+k=0\).

Collinearity

Three points are collinear when the triangle they form has zero area: \(x_1(y_2-y_3)+x_2(y_3-y_1)+x_3(y_1-y_2)=0\).

Worked Examples

Putting It to Work

1 A line from point and slope

Problem. Find the equation of the line through \((2,3)\) with slope \(2\).

Solution. Apply the point-slope form \(y-y_1=m(x-x_1)\):

Working
\[ y-3=2(x-2)\ \Longrightarrow\ y=2x-1 \]
2 A line through two points

Problem. Find the equation of the line through \((1,2)\) and \((3,6)\).

Solution. The slope is \(m=\dfrac{6-2}{3-1}=2\); then point-slope through \((1,2)\):

Working
\[ y-2=2(x-1)\ \Longrightarrow\ y=2x \]
3 A line from its intercepts

Problem. A line makes an \(x\)-intercept of \(4\) and a \(y\)-intercept of \(3\). Find its equation.

Solution. Use the intercept form \(\dfrac{x}{a}+\dfrac{y}{b}=1\) with \(a=4,\ b=3\):

Working
\[ \frac{x}{4}+\frac{y}{3}=1\ \Longrightarrow\ 3x+4y=12 \]
4 Angle between two lines

Problem. Find the acute angle between \(y=2x+1\) and \(y=-3x+4\).

Solution. With \(m_1=2,\ m_2=-3\):

Working
\[ \tan\theta=\left|\frac{2-(-3)}{1+2(-3)}\right|=\left|\frac{5}{-5}\right|=1\ \Longrightarrow\ \theta=45^{\circ} \]
5 Distance of a point from a line

Problem. Find the distance of \((3,-5)\) from the line \(3x-4y-26=0\).

Solution. Substitute into \(d=\dfrac{|Ax_1+By_1+C|}{\sqrt{A^2+B^2}}\):

Working
\[ d=\frac{|3(3)-4(-5)-26|}{\sqrt{3^2+(-4)^2}}=\frac{|9+20-26|}{5}=\frac{3}{5} \]
6 Foot of perpendicular and image

Problem. Find the foot of the perpendicular from the origin \((0,0)\) to \(x+y-2=0\), and the image of the origin in that line.

Solution. Here \(A=1,\ B=1,\ C=-2\) and \(Ax_1+By_1+C=-2\), so \(-\dfrac{-2}{1+1}=1\) for the foot and twice that for the image:

Working
\[ \text{foot}=(0+1,\,0+1)=(1,1),\qquad \text{image}=(0+2,\,0+2)=(2,2) \]
Review

Chapter Summary

Slope

\(m=\tan\theta=\dfrac{y_2-y_1}{x_2-x_1}\); vertical lines have no slope.

Forms

Point-slope, two-point, slope-intercept, intercept \(\tfrac{x}{a}+\tfrac{y}{b}=1\), and normal \(x\cos\alpha+y\sin\alpha=p\).

General form

\(Ax+By+C=0\) gives slope \(-A/B\) and intercepts at a glance.

Angle

\(\tan\theta=\left|\dfrac{m_1-m_2}{1+m_1m_2}\right|\); parallel \(m_1=m_2\), perpendicular \(m_1m_2=-1\).

Distance

\(d=\dfrac{|Ax_1+By_1+C|}{\sqrt{A^2+B^2}}\); parallel gap \(\dfrac{|C_1-C_2|}{\sqrt{A^2+B^2}}\).

Families

\(L_1+\lambda L_2=0\) through an intersection; concurrency by a zero determinant.

Practice

Problems

Sketch the situation first, choose the form that matches the data, then compute. Difficulty rises down the list.

  1. Find the slope of the line through \((-1,2)\) and \((3,10)\).
  2. Write the equation of the line through \((0,4)\) with slope \(-\tfrac{1}{2}\).
  3. Find the equation of the line through \((2,-1)\) and \((5,8)\).
  4. A line cuts off intercepts \(-3\) and \(6\) on the axes. Find its equation in general form.
  5. Reduce \(\sqrt3\,x+y-8=0\) to normal form and state \(p\) and \(\alpha\).
  6. Find the acute angle between \(x-2y+3=0\) and \(3x+y-5=0\).
  7. Find the equation of the line through \((1,1)\) perpendicular to \(2x-3y+5=0\).
  8. Find the distance of \((2,3)\) from the line \(5x-12y+9=0\).
  9. Find the distance between the parallel lines \(3x+4y+7=0\) and \(3x+4y-3=0\).
  10. Find the point of intersection of \(2x+y=5\) and \(x-y=1\), and the line through it parallel to \(x+2y=0\).
  11. Show that \(x+y-3=0\), \(2x-y=0\) and \(x-2y+3=0\) are concurrent, and find the common point.
  12. Find the image of the point \((1,2)\) in the line \(3x-4y+5=0\).
Tip: convert to the general form \(Ax+By+C=0\) early — slope, intercepts, angle and distance all read off the coefficients from there, and the parallel/perpendicular tests \(A_1B_2=A_2B_1\) and \(A_1A_2+B_1B_2=0\) sidestep the vertical-line exception that trips up slope-based methods.