PYQ Vault

NDA Maths · Lines

Angle Between Lines, Parallel & Perpendicular

The angle between two lines from their slopes, and the slope conditions for lines to be parallel or perpendicular.

Why this matters

The angle formula and the parallel/perpendicular tests are short, high-frequency tools — used directly and inside triangle and quadrilateral problems. The only trap is the sign in the tangent formula (acute vs obtuse).

Test yourself — a quick 13-question Lines recall quiz, instant score.

Concept 1 of 2: Angle between two lines

The angle between two lines depends only on their slopes. The tangent formula gives the acute angle when you take the absolute value; drop the bars (or take the supplement) for the obtuse one.

Definition

For slopes m1,m2m_1,m_2: tan⁡θ=∣m1−m21+m1m2∣\tan\theta=\left|\dfrac{m_1-m_2}{1+m_1 m_2}\right| gives the acute angle; the obtuse angle is its supplement. If 1+m1m2=01+m_1m_2=0 the lines are perpendicular (θ=90°\theta=90°). For lines given as a1x+b1y+c1=0a_1x+b_1y+c_1=0, use slopes −ai/bi-a_i/b_i.

  • Same formula, other forms. General form lx+my+n=0lx+my+n=0, l′x+m′y+n′=0l'x+m'y+n'=0: tan⁡θ=∣lm′−l′mll′+mm′∣\tan\theta=\left|\dfrac{lm'-l'm}{ll'+mm'}\right| — the option lists print it this way. Normal form xcos⁡α+ysin⁡α=px\cos\alpha+y\sin\alpha=p, xcos⁡β+ysin⁡β=qx\cos\beta+y\sin\beta=q: the angle between the lines is simply ∣α−β∣|\alpha-\beta| (the angle between their normals).
  • Angle subtended at the origin by two POINTS (m,n)(m,n) and (r,s)(r,s) — a dot-product question, not a slope one: cos⁡α=mr+ns(m2+n2)(r2+s2)\cos\alpha=\dfrac{mr+ns}{\sqrt{(m^2+n^2)(r^2+s^2)}}, and sin⁡α=∣ms−nr∣(m2+n2)(r2+s2)\sin\alpha=\dfrac{|ms-nr|}{\sqrt{(m^2+n^2)(r^2+s^2)}}. The planted wrong option swaps the two numerators — mr+nsmr+ns belongs to the cosine, ms−nrms-nr to the sine.

Angle between two lines

tan⁡θ=∣m1−m21+m1m2∣\tan\theta=\left|\dfrac{m_1-m_2}{1+m_1 m_2}\right|
θslope m₁slope m₂tan θ = |(m₁−m₂)/(1+m₁m₂)|

Worked example

Find the acute angle between lines of slopes 11 and 13\tfrac13.
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

NDA · Apr 2020 · Q59Moderate

Example 1 · Lines · Angle Between Lines, Parallelism, and Perpendicularity

What is the obtuse angle between the lines whose slopes are 2−32-\sqrt{3} and 2+32+\sqrt{3}?

The difference of slopes is on top: tan⁡θ=∣m1−m21+m1m2∣\tan\theta=\left|\dfrac{m_1-m_2}{1+m_1m_2}\right|

The angle formula puts the difference m1−m2m_1-m_2 in the numerator and 1+m1m21+m_1m_2 in the denominator — students often invert it to 1+m1m2m1−m2\dfrac{1+m_1m_2}{m_1-m_2}. Also watch the denominator's plus sign (1+m1m21+m_1m_2, not 1−m1m21-m_1m_2); when 1+m1m2=01+m_1m_2=0 the tangent blows up, correctly signalling θ=90∘\theta=90^\circ.

Concept 2 of 2: Parallel and perpendicular conditions

Two lines are parallel when their slopes match, and perpendicular when the slopes multiply to −1-1. In coefficient form these become clean conditions on a,ba,b.

Definition

  • Parallel: m1=m2m_1=m_2. In coefficients, for a1x+b1y+c1=0a_1x+b_1y+c_1=0 and a2x+b2y+c2=0a_2x+b_2y+c_2=0, that is a1b2=a2b1a_1b_2=a_2b_1, i.e. a1a2=b1b2\tfrac{a_1}{a_2}=\tfrac{b_1}{b_2}.
  • That test also passes for the same line written twice. It says the two lines have the same direction; it does not say they are different lines. They are coincident when the constants agree as well, a1a2=b1b2=c1c2\tfrac{a_1}{a_2}=\tfrac{b_1}{b_2}=\tfrac{c_1}{c_2}, and strictly parallel when the first two ratios agree and the third does not. A question that says "parallel" almost always wants the strict kind — so check the constant before you answer, or you will pick a value that makes the two lines identical.
  • Perpendicular: m1m2=−1m_1 m_2=-1, i.e. a1a2+b1b2=0a_1a_2+b_1b_2=0.

Parallel and perpendicular conditions

Parallel: m1=m2Perpendicular: m1m2=−1a1a2+b1b2=0\text{Parallel: } m_1=m_2\qquad \text{Perpendicular: } m_1 m_2=-1\qquad a_1a_2+b_1b_2=0

Worked example

Are 2x+3y=52x+3y=5 and 3x−2y=73x-2y=7 perpendicular?
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

NDA · Apr 2022 · Q88Moderate

Example 2 · Lines · Angle Between Lines, Parallelism, and Perpendicularity

Under which one of the following conditions are the lines ax+by+c=0ax+by+c=0 and bx+ay+c=0bx+ay+c=0 parallel (a≠0,b≠0a\neq0, b\neq0)?

Perpendicular slope is the negative reciprocal: m2=−1m1m_2=-\dfrac{1}{m_1}, not 1m1\dfrac{1}{m_1}

Parallel ⇒ equal slopes (m1=m2m_1=m_2); perpendicular ⇒ the product is −1-1 (m1m2=−1m_1m_2=-1), so the second slope is the negative reciprocal −1/m1-1/m_1. The two classic slips: forgetting the minus (using 1/m11/m_1, the plain reciprocal), and swapping the two rules — "perpendicular means equal slopes" is wrong. If m1=23m_1=\tfrac23, a perpendicular line has slope −32-\tfrac32, not 32\tfrac32.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (2)

  • Angle between two lines

    Angle between two lines

    tan⁡θ=∣m1−m21+m1m2∣\tan\theta=\left|\dfrac{m_1-m_2}{1+m_1 m_2}\right|
  • Parallel and perpendicular conditions

    Parallel and perpendicular conditions

    Parallel: m1=m2Perpendicular: m1m2=−1a1a2+b1b2=0\text{Parallel: } m_1=m_2\qquad \text{Perpendicular: } m_1 m_2=-1\qquad a_1a_2+b_1b_2=0

Watch out for (2)

  • The difference of slopes is on top: tan⁡θ=∣m1−m21+m1m2∣\tan\theta=\left|\dfrac{m_1-m_2}{1+m_1m_2}\right|
    → Angle between two lines
  • Perpendicular slope is the negative reciprocal: m2=−1m1m_2=-\dfrac{1}{m_1}, not 1m1\dfrac{1}{m_1}
    → Parallel and perpendicular conditions

Test yourself on Lines

20 past NDA questions from this chapter, timed at 25 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.