Parallelism and perpendicularity

Look at any two straight lines drawn on graph paper and coordinate geometry lets you answer, without a protractor, whether they run in exactly the same direction or cross at a perfect right angle. The tool is the slope: two lines are parallel exactly when their slopes match, and perpendicular exactly when their slopes multiply to −1-1. These two one-line tests, direct consequences of the general angle-between-two-lines formula, are used constantly in Class 11 coordinate geometry — to check a claimed parallelism, to find a missing coordinate, or to build the equation of a line through a given point parallel or perpendicular to another. This article derives both conditions from the angle formula, works a full example end to end, and flags the sign slips that cost the most marks.

The core insight

Two non-vertical lines with slopes m1,m2m_1, m_2 are parallel when m1=m2m_1 = m_2 and perpendicular when m1m2=−1m_1 m_2 = -1, both falling straight out of the general angle-between-two-lines formula at θ=0∘\theta = 0^\circ and θ=90∘\theta = 90^\circ.

The core idea

Every non-vertical line has a slope, and the slope fixes the line's inclination — the angle it makes with the positive xx-axis. Comparing two lines is therefore just comparing two numbers. For two lines with slopes m1m_1 and m2m_2, the acute angle θ\theta between them satisfies

tan⁡θ=∣m2−m11+m1m2∣.\tan\theta = \left|\dfrac{m_2 - m_1}{1 + m_1 m_2}\right|.

where: m1,m2m_1, m_2 are the slopes of the two lines, and θ\theta is the acute angle between them (the absolute value guarantees θ\theta comes out acute, never obtuse). This single formula contains both special cases a student needs.

  • Parallel lines have the same inclination, so the angle between them is 0∘0^\circ. Setting θ=0∘\theta = 0^\circ forces tan⁡θ=0\tan\theta = 0, which needs the numerator m2−m1m_2 - m_1 to vanish:
m1=m2.m_1 = m_2.

where: m1,m2m_1, m_2 are the slopes of the two lines; equality of slope is both necessary and sufficient for two distinct lines to be parallel.

  • Perpendicular lines meet at θ=90∘\theta = 90^\circ, where tan⁡θ\tan\theta is undefined — which happens exactly when the denominator 1+m1m21 + m_1 m_2 is zero:
m1m2=−1.m_1 m_2 = -1.

where: m1,m2m_1, m_2 are again the two slopes; the condition says each slope is the negative reciprocal of the other, m2=−1m1m_2 = -\dfrac{1}{m_1}. One pairing slips through both formulas: a vertical line (slope undefined) and a horizontal line (slope 00) are always perpendicular, even though m1m2=−1m_1 m_2 = -1 cannot literally be evaluated since one slope does not exist. This case must be recognised by inspection, not by the product test. Notice, too, that both conditions are symmetric — swapping m1m_1 and m2m_2 leaves m1=m2m_1 = m_2 and m1m2=−1m_1 m_2 = -1 unchanged, exactly as it should be, since "line AA is parallel/perpendicular to line BB" cannot depend on which line you call first. This symmetry is a quick sanity check on any algebra you carry out with the conditions: if your final answer breaks it, something has gone wrong upstream. The two conditions also interact usefully with the earlier idea of collinearity — three points are collinear exactly when the slope between any two pairs among them agrees, which is the parallel condition applied to overlapping segments of the same line.

Figure
Two coordinate axes, one showing two parallel lines with equal slope and the other showing two perpendicular lines with slopes that are negative reciprocals
Parallel: m1 = m2 Perpendicular: m1 m2 = -1 line 1, slope 2 line 2, slope 2 slope 2 over 3 slope minus 3 over 2

Where the perpendicular condition comes from

The parallel condition is nearly self-evident, but the negative-reciprocal rule for perpendicularity is easy to misremember under exam pressure, so it is worth seeing it derived once rather than only memorised.

Derivation AThe perpendicularity condition m1 m2 = -1

The goal is to show, using only the tangent addition formula that a Class 11 student already has from trigonometry, that two lines are perpendicular exactly when the product of their slopes equals −1-1, so that the rule can be reconstructed on demand rather than recalled by rote and risking a sign error.

Step 1. Let θ1\theta_1 and θ2\theta_2 be the inclinations of the two lines, so that by definition m1=tan⁡θ1m_1 = \tan\theta_1 and m2=tan⁡θ2m_2 = \tan\theta_2. Two lines are perpendicular precisely when their inclinations differ by a right angle, so take θ2=θ1+90∘\theta_2 = \theta_1 + 90^\circ.

Step 2. Substitute into m2=tan⁡θ2m_2 = \tan\theta_2 to get m2=tan⁡(θ1+90∘)m_2 = \tan(\theta_1 + 90^\circ). This is not one of the standard sum-formula inputs directly, so rewrite it using the identity tan⁡(θ1+90∘)=−cot⁡θ1\tan(\theta_1 + 90^\circ) = -\cot\theta_1, which follows from sin⁡(θ1+90∘)=cos⁡θ1\sin(\theta_1+90^\circ) = \cos\theta_1 and cos⁡(θ1+90∘)=−sin⁡θ1\cos(\theta_1+90^\circ) = -\sin\theta_1.

Step 3. Since cot⁡θ1=1tan⁡θ1=1m1\cot\theta_1 = \dfrac{1}{\tan\theta_1} = \dfrac{1}{m_1}, Step 2 gives m2=−1m1m_2 = -\dfrac{1}{m_1}.

Step 4. Multiply both sides by m1m_1 to clear the fraction: m1m2=−1m_1 m_2 = -1. This is exactly the condition to be shown, and it also displays the sign structure directly — the negative sign and the reciprocal both come from the same 90∘90^\circ shift, so neither can be dropped without breaking the identity. Check: a line of slope m1=2m_1 = 2 should be perpendicular to a line of slope m2=−12m_2 = -\tfrac{1}{2}, since 2×(−12)=−12 \times \left(-\tfrac{1}{2}\right) = -1. Rotating a line of inclination arctan⁡2≈63.4∘\arctan 2 \approx 63.4^\circ by 90∘90^\circ gives inclination ≈153.4∘\approx 153.4^\circ, whose tangent is indeed −0.5-0.5, confirming the algebra.

Worked example

Problem. Find the value of kk so that the line through P(2,3)P(2, 3) and Q(k,6)Q(k, 6) is perpendicular to the line through R(1,−1)R(1, -1) and S(4,1)S(4, 1).

Step 1. Find the slope of RSRS first, since both its points are fully known:

mRS=1−(−1)4−1=23.m_{RS} = \frac{1-(-1)}{4-1} = \frac{2}{3}.

Step 2. Write the slope of PQPQ in terms of the unknown kk:

mPQ=6−3k−2=3k−2.m_{PQ} = \frac{6-3}{k-2} = \frac{3}{k-2}.

Step 3. Apply the perpendicularity condition mPQ⋅mRS=−1m_{PQ}\cdot m_{RS} = -1:

3k−2⋅23=−1  ⟹  2k−2=−1.\frac{3}{k-2}\cdot\frac{2}{3} = -1 \implies \frac{2}{k-2} = -1.

Step 4. Solve for kk: 2=−1(k−2)=−k+22 = -1(k-2) = -k+2, so k=0k = 0.

Step 5. Verify: with k=0k=0, mPQ=30−2=−32m_{PQ} = \dfrac{3}{0-2} = -\dfrac{3}{2}, and mPQ⋅mRS=(−32)(23)=−1m_{PQ}\cdot m_{RS} = \left(-\dfrac{3}{2}\right)\left(\dfrac{2}{3}\right) = -1, confirming perpendicularity.

Answer: k=0k = 0.

Competitive stretch

A quick companion check: is the line through A(1,2)A(1,2) and B(4,8)B(4,8) parallel to the line through C(−2,−1)C(-2,-1) and D(2,7)D(2,7)? Slope of ABAB is 8−24−1=2\dfrac{8-2}{4-1} = 2, and slope of CDCD is 7−(−1)2−(−2)=84=2\dfrac{7-(-1)}{2-(-2)} = \dfrac{8}{4} = 2. Since m1=m2=2m_1 = m_2 = 2 and the lines pass through different points, they are parallel and distinct — the same one-line check, applied in the other direction.

Common traps

  • Applying m1m2=−1m_1 m_2 = -1 when one line is vertical or horizontal — the formula needs both slopes to exist; treat the vertical–horizontal pair as a special perpendicular case by inspection instead.
  • Swapping the two conditions: writing m1m2=−1m_1 m_2 = -1 for parallel lines or m1=m2m_1 = m_2 for perpendicular lines.
  • Sign slips when solving for an unknown slope from m1m2=−1m_1 m_2 = -1 — the negative reciprocal flips both sign and fraction, so slope 23\frac{2}{3} pairs with −32-\frac{3}{2}, not −23-\frac{2}{3} or 32\frac{3}{2}.
  • Assuming equal slopes make two lines the same line — equal slope only proves parallel (or coincident); check the points if coincidence needs to be ruled out.
  • Forgetting the general angle formula's absolute value returns only the acute angle; an obtuse angle asked for in a problem is 180∘180^\circ minus that value.
  • Rushing to the perpendicularity test without first checking whether either line is vertical or horizontal — a two-second glance at the coordinates (do the xx-values match, or do the yy-values match) avoids dividing by zero later.

Ask the tutor: want to practice spotting parallel and perpendicular lines from coordinates, or work through more find-the-unknown-slope problems together?

Why does the perpendicular condition involve a negative sign at all?

Because perpendicular lines have inclinations differing by exactly 90∘90^\circ, and rotating a direction by 90∘90^\circ sends its tangent to the negative reciprocal of the original tangent, not the plain reciprocal. That single 90∘90^\circ shift is where both the minus sign and the flipped fraction come from together, which is why the derivation from tan⁡(θ1+90∘)=−cot⁡θ1\tan(\theta_1+90^\circ) = -\cot\theta_1 is worth remembering over blind memorisation of m1m2=−1m_1m_2=-1.

How do I handle a vertical line in these problems, since its slope does not exist?

Do not force it into the m1=m2m_1 = m_2 or m1m2=−1m_1 m_2 = -1 formulas — both need real-number slopes. Instead reason directly: a vertical line is parallel only to other vertical lines, and it is perpendicular only to horizontal lines (slope 00). Spot a vertical or horizontal line in the problem and handle it as this special case before reaching for the slope formulas.

If I get two equal slopes, can I conclude the lines are identical rather than just parallel?

No — equal slope only guarantees the lines point in the same direction; it says nothing about whether they are the same line. Two lines with slope 22 passing through different points, such as through (1,2)(1,2) and through (0,5)(0,5), are parallel but distinct. To confirm they are the same line, you would additionally need a shared point, not just a shared slope.

Before this

Where this leads