PYQ Vault

NDA Maths · Lines

Equations, Slope & Family of Lines

The slope of a line and the standard forms of its equation, the intercept form, the family of lines through a point or an intersection, and reflections in a line.

Why this matters

Every other tool in the chapter starts from a line's equation. Knowing which form to reach for — slope-intercept, point-slope, intercept, or the family L₁+λL₂ — turns most questions into one substitution.

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

Concept 1 of 4: Slope and the forms of a line

A line is fixed by a point and a direction (its slope). The slope is the tangent of the angle it makes with the x-axis. Pick the form that matches what you're given — a point and slope, two points, or intercepts.

Definition

Slope m=tan⁡θm=\tan\theta, where θ\theta is the angle the line makes with the positive x-axis, measured anticlockwise, 0∘≤θ<180∘0^\circ\le\theta<180^\circ. So a line leaning to the left has θ\theta obtuse and mm negative. Computed from any two points on the line, m=y2−y1x2−x1m=\dfrac{y_2-y_1}{x_2-x_1} — which pair you pick makes no difference, and that is what makes slope a property of the line rather than of the points. Forms:

  • Slope-intercept: y=mx+cy=mx+c — use when you know the slope and the y-intercept cc.
  • Point-slope: y−y1=m(x−x1)y-y_1=m(x-x_1) — use when you know one point and the slope.
  • Two-point: y−y1x−x1=y2−y1x2−x1\dfrac{y-y_1}{x-x_1}=\dfrac{y_2-y_1}{x_2-x_1} — use when you know two points.
  • General: ax+by+c=0ax+by+c=0, slope −a/b-a/b. Careful: this cc is the constant term, not the y-intercept it meant one line above.
  • Normal (perpendicular) form: xcos⁡α+ysin⁡α=px\cos\alpha+y\sin\alpha=p, where pp is the distance from the origin to the line and α\alpha is the angle that perpendicular makes with the x-axis — a different angle from θ\theta.

Slope and forms of a line

m=y2−y1x2−x1max+by+c=0=−aby−y1=m(x−x1)y=mx+cm=\dfrac{y_2-y_1}{x_2-x_1}\qquad m_{ax+by+c=0}=-\dfrac{a}{b}\qquad y-y_1=m(x-x_1)\qquad y=mx+c
  • mmslope of the line
  • θ\thetaangle the LINE makes with the positive x-axis
  • α\alphaangle the PERPENDICULAR from the origin makes — normal form only
  • ccy-intercept in y=mx+cy=mx+c; the constant term in ax+by+c=0ax+by+c=0
  • ppdistance from the origin to the line

Worked example

Find the equation of the line through (2,3)(2,3) with slope 44.
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

NDA · Sep 2025 · Q61Easy

Example 1 · Lines · Equation, Slope, and Family of Lines

Which one of the following is the perpendicular form of the straight line 3x+2y=7\sqrt{3}x+2y=7?

Slope is Δy/Δx\Delta y/\Delta x, not Δx/Δy\Delta x/\Delta y — and a vertical line has undefined slope

Two slips. First, slope is rise over run: m=y2−y1x2−x1m=\dfrac{y_2-y_1}{x_2-x_1}, not x2−x1y2−y1\dfrac{x_2-x_1}{y_2-y_1} — keep the yy-difference on top. Second, a vertical line x=kx=k has undefined slope (the run is 00), not slope 00 — that's a horizontal line y=ky=k. Likewise, the slope of ax+by+c=0ax+by+c=0 is −a/b-a/b, with the minus sign — dropping it flips the line.

Concept 2 of 4: Intercept form and intercepts

When a line's x- and y-intercepts matter, the intercept form xa+yb=1\tfrac{x}{a}+\tfrac{y}{b}=1 reads them off directly. Many questions give a relation between the intercepts (their sum, or a midpoint) and ask for the line.

Definition

An intercept is a number, not a point: the x-intercept is the value of xx at which the line crosses the x-axis. That is why a question can ask for their sum.

  • Intercept form: xa+yb=1\dfrac{x}{a}+\dfrac{y}{b}=1, where aa is the x-intercept and bb the y-intercept — readable off the equation only when the right-hand side is exactly 11.
  • From a general line px+qy+r=0px+qy+r=0: x-intercept =−r/p=-r/p, y-intercept =−r/q=-r/q. The letters are p,q,rp,q,r here on purpose — in the line above, aa and bb are intercepts, while in a general equation aa and bb are coefficients. They are not the same thing, and confusing them is this concept's classic error.
  • From a midpoint: if (h,k)(h,k) is the midpoint of the segment the line cuts between the axes, then a=2ha=2h and b=2kb=2k.
  • Distance from the origin to xa+yb=1\tfrac xa+\tfrac yb=1: p=∣ab∣a2+b2p=\dfrac{|ab|}{\sqrt{a^2+b^2}}, i.e. 1p2=1a2+1b2\dfrac1{p^2}=\dfrac1{a^2}+\dfrac1{b^2} — the altitude-to-the-hypotenuse relation of the right triangle the line cuts off. A stem that gives the intercepts and asks for pp (or gives pp and one intercept) is this line.

Intercept form and intercepts

xa+yb=1from px+qy+r=0:x-int=−rp,y-int=−rq\dfrac{x}{a}+\dfrac{y}{b}=1\qquad\text{from }px+qy+r=0:\quad x\text{-int}=-\dfrac{r}{p},\quad y\text{-int}=-\dfrac{r}{q}
  • a,ba,bthe x- and y-INTERCEPTS (numbers), in intercept form only
  • p,q,rp,q,rthe COEFFICIENTS of a general line px+qy+r=0px+qy+r=0
  • (h,k)(h,k)midpoint of the segment cut between the axes

Worked example

A line has x-intercept 44 and y-intercept 22. Find its equation and the sum of intercepts.
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

NDA · Sep 2025 · Q60Moderate

Example 2 · Lines · Equation, Slope, and Family of Lines

What is the sum of the intercepts of the line xa2+yb2=2a2+b2\dfrac{x}{a^2}+\dfrac{y}{b^2}=\dfrac{2}{a^2+b^2} on the coordinate axes?

Intercept form needs the constant on the RHS as 11 — a,ba,b are the intercepts only then

You can read the intercepts straight off xa+yb=1\dfrac{x}{a}+\dfrac{y}{b}=1 only when the right side is exactly 11. From ax+by=cax+by=c the x-intercept is c/ac/a, not aa: divide through by cc first to reach xc/a+yc/b=1\dfrac{x}{c/a}+\dfrac{y}{c/b}=1. Grabbing the coefficients before normalising to 11 is the classic error.

Concept 3 of 4: Family of lines and concurrency

Any line through the intersection of L1=0L_1=0 and L2=0L_2=0 can be written L1+λL2=0L_1+\lambda L_2=0 — without ever finding the intersection point. Choose λ\lambda from one extra condition. Three lines are concurrent when their intersection is shared.

Definition

  • Family (pencil): every line through the intersection of L1=0L_1=0 and L2=0L_2=0 can be written L1+λL2=0L_1+\lambda L_2=0, so you never have to find the intersection point. Fix λ\lambda from one extra condition. (The single line it misses is L2=0L_2=0 itself.)
  • Through a point, parallel or perpendicular to a given line: keep the same slope, or the negative-reciprocal one. Both tests are proved in the next block, Angle Between Lines — for now, parallel means equal slopes and perpendicular means the slopes multiply to −1-1.
  • Concurrent means all three lines pass through one common point. If three lines are concurrent, then ∣a1b1c1a2b2c2a3b3c3∣=0\begin{vmatrix}a_1&b_1&c_1\\a_2&b_2&c_2\\a_3&b_3&c_3\end{vmatrix}=0. The converse is not automatic: the determinant also vanishes when two of the lines are parallel, so a zero determinant is evidence, not proof. Expanding a 3×33\times3 determinant is in the Matrices & Determinants notes, linked below.
  • A fixed point forced by a coefficient condition: if A,B,CA,B,C are in AP then C−B=B−AC-B=B-A, so C=2B−AC=2B-A. Put that into Ax+2By+C=0Ax+2By+C=0: Ax+2By+2B−A=0Ax+2By+2B-A=0, which regroups as A(x−1)+2B(y+1)=0A(x-1)+2B(y+1)=0. That holds for every AA and BB only when x−1=0x-1=0 and y+1=0y+1=0 — so every such line passes through (1,−1)(1,-1).
  • How many intersection points can nn lines make? At most (n2)\binom n2 (every pair meets once, no two parallel, no three concurrent); nn lines and a circle add at most 2n2n more (each line cuts the circle twice); nn circles meet in at most 2(n2)=n(n−1)2\binom n2=n(n-1) points.

Family of lines and concurrency

L1+λL2=0∣a1b1c1a2b2c2a3b3c3∣=0L_1+\lambda L_2=0\qquad \begin{vmatrix}a_1&b_1&c_1\\a_2&b_2&c_2\\a_3&b_3&c_3\end{vmatrix}=0

Worked example

Find the line through the intersection of x+y−1=0x+y-1=0 and 2x−y−2=02x-y-2=0 that passes through (1,2)(1,2).
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

NDA · Apr 2019 · Q57Moderate

Example 3 · Lines · Equation, Slope, and Family of Lines

If the lines 3y+4x=13y+4x=1, y=x+5y=x+5 and 5y+bx=35y+bx=3 are concurrent, then what is the value of b?

The pencil is L1+λL2=0L_1+\lambda L_2=0 — keep each LiL_i in the form =0=0 first

The family through L1∩L2L_1\cap L_2 is L1+λL2=0L_1+\lambda L_2=0, where each LiL_i is the whole expression aix+biy+cia_ix+b_iy+c_i moved to one side so the line reads Li=0L_i=0. Combining 2x+3y=52x+3y=5 and x−y=1x-y=1 means using L1=2x+3y−5L_1=2x+3y-5 and L2=x−y−1L_2=x-y-1 — forgetting to move the constants over (using 2x+3y2x+3y and x−yx-y) silently shifts the pencil off the intersection.

Concept 4 of 4: Image of a point and reflections

The image of a point in a line is its mirror reflection: the line is the perpendicular bisector of the segment joining the point and its image. Use 'midpoint lies on the line' plus 'segment ⟂ line' to find the image, or recover the mirror from a point–image pair.

Definition

If P′P' is the image of PP in the line LL, two facts pin it down: the midpoint of PP′PP' lies on LL, and PP′PP' is perpendicular to LL. Write P′=(h,k)P'=(h,k), turn each fact into an equation, and solve the pair.

  • Two things borrowed from later blocks, stated here so this method is usable now: the midpoint of (x1,y1)(x_1,y_1) and (x2,y2)(x_2,y_2) is (x1+x22,y1+y22)\left(\tfrac{x_1+x_2}{2},\tfrac{y_1+y_2}{2}\right), and perpendicular means the two slopes multiply to −1-1.
  • The foot of the perpendicular FF from PP to LL is the midpoint of PP′PP', so P′=2F−PP'=2F-P.
  • Shortcuts worth memorising: reflecting in y=xy=x swaps coordinates, (a,b)→(b,a)(a,b)\to(b,a); in the x-axis, (a,b)→(a,−b)(a,b)\to(a,-b); in the y-axis, (a,b)→(−a,b)(a,b)\to(-a,b).
  • Backwards: given PP and its image P′P', the mirror is the perpendicular bisector of PP′PP'.

Image of a point in a line

midpoint(PP′)∈LPP′⊥LP′=2F−P\text{midpoint}(PP')\in L\qquad PP'\perp L\qquad P'=2F-P
  • PPthe original point
  • P′P'its image (mirror reflection) in the line
  • FFfoot of the perpendicular from PP to the line — the MIDPOINT of PP′PP'

Worked example

Find the image of (1,2)(1,2) in the line x+y=5x+y=5.
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

NDA · Apr 2021 · Q60Moderate

Example 4 · Lines · Equation, Slope, and Family of Lines

If the image of the point (−4,2)(-4, 2) by a line mirror is (4,−2)(4, -2), then what is the equation of the line mirror?

The foot of the perpendicular is the midpoint of PP′PP', not the image itself

The foot of the perpendicular FF from PP to the line is halfway to the image: FF is the midpoint of PP and P′P'. So the image is P′=2F−PP'=2F-P — you must double the displacement from PP to FF. Reporting the foot FF as the reflected image gives a point only half as far across the line.

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 (4)

  • Slope and the forms of a line

    Slope and forms of a line

    m=y2−y1x2−x1max+by+c=0=−aby−y1=m(x−x1)y=mx+cm=\dfrac{y_2-y_1}{x_2-x_1}\qquad m_{ax+by+c=0}=-\dfrac{a}{b}\qquad y-y_1=m(x-x_1)\qquad y=mx+c
  • Intercept form and intercepts

    Intercept form and intercepts

    xa+yb=1from px+qy+r=0:x-int=−rp,y-int=−rq\dfrac{x}{a}+\dfrac{y}{b}=1\qquad\text{from }px+qy+r=0:\quad x\text{-int}=-\dfrac{r}{p},\quad y\text{-int}=-\dfrac{r}{q}
  • Family of lines and concurrency

    Family of lines and concurrency

    L1+λL2=0∣a1b1c1a2b2c2a3b3c3∣=0L_1+\lambda L_2=0\qquad \begin{vmatrix}a_1&b_1&c_1\\a_2&b_2&c_2\\a_3&b_3&c_3\end{vmatrix}=0
  • Image of a point and reflections

    Image of a point in a line

    midpoint(PP′)∈LPP′⊥LP′=2F−P\text{midpoint}(PP')\in L\qquad PP'\perp L\qquad P'=2F-P

Watch out for (4)

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.

Related notes