Chapter 10 · Co-ordinate Geometry

10.1 The Straight Line

Two numbers fix a point, and one linear equation fixes a line. From the distance and section formulas through slope, the forms of a line, angles, concurrence and the distance $\dfrac{|ax_0+by_0+c|}{\sqrt{a^2+b^2}}$ to the centroid, orthocentre and circumcentre of a triangle — the whole of straight-line geometry done with algebra.

A food-delivery app knows where you are as two numbers — your latitude and longitude — and it knows the highway as a straight line. How far is your house from the highway, and where should the rider leave it to reach you by the shortest path? Where do three roads meet, if they meet at all? Where should a new ambulance base go so that it is equally far from three villages? None of these questions needs a ruler or a protractor once points are numbers and lines are equations. That was the idea of René Descartes and Pierre de Fermat in the 1630s: put two perpendicular number lines on the plane, describe every point by its pair of coordinates, and every geometric question becomes a piece of algebra.

This section builds the toolkit for the whole of coordinate geometry. We begin with the Cartesian plane, the distance and section formulas and the idea of a locus (a path described by an equation). Then come the slope of a line, the different forms of its equation, the angle between two lines, the conditions for three lines to meet in a point, and the formula for the distance of a point from a line. We finish with the three famous centres of a triangle — the centroid, the orthocentre and the circumcentre — and the surprising straight line that joins them. JEE Main asks one or two questions on straight lines in every paper, and the same tools are used in every question on circles and conics.

Coordinates, Distance, Section Formula and Locus

📘 Definition 10.1 — The Cartesian (rectangular) coordinate system

Draw two perpendicular number lines, the $x$-axis (horizontal) and the $y$-axis (vertical), meeting at the origin $O$, with the same unit of length on both. Through a point $P$ draw lines parallel to the axes; if they meet the $x$-axis at $x$ and the $y$-axis at $y$, then $P$ has coordinates $(x,y)$: $x$ is its abscissa and $y$ its ordinate. Every point gives exactly one ordered pair and every ordered pair of reals gives exactly one point, so the plane is $\mathbb{R}\times\mathbb{R}$. The axes divide the plane into four quadrants, with signs $(+,+)$, $(-,+)$, $(-,-)$, $(+,-)$ in quadrants I–IV (anticlockwise from the positive $x$-axis).

📐 Theorem 10.1 — The distance formula

The distance between $P(x_1,y_1)$ and $Q(x_2,y_2)$ is

$$PQ=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}.$$

In particular the distance of $P(x,y)$ from the origin is $OP=\sqrt{x^2+y^2}$.

Proof. Let $R=(x_2,y_1)$. Then $PR$ is horizontal with length $|x_2-x_1|$, $RQ$ is vertical with length $|y_2-y_1|$, and the angle at $R$ is a right angle. By Pythagoras, $PQ^2=PR^2+RQ^2=(x_2-x_1)^2+(y_2-y_1)^2$. (If $PQ$ is itself horizontal or vertical, one leg is $0$ and the formula still holds.) $\blacksquare$ Because the differences are squared, the order of the two points does not matter. Comparing distances is how we test the shape of a figure: three equal sides make an equilateral triangle, $AB^2+BC^2=AC^2$ makes a right angle at $B$, and four equal sides with equal diagonals make a square.

📐 Theorem 10.2 — The section formula

Let $A(x_1,y_1)$ and $B(x_2,y_2)$ be distinct points and $m,n\gt0$. The point $P$ on the segment $AB$ with $AP:PB=m:n$ (internal division) is

$$P=\left(\frac{mx_2+nx_1}{m+n},\ \frac{my_2+ny_1}{m+n}\right).$$

The point $P$ on the line $AB$, outside the segment, with $AP:PB=m:n$, $m\ne n$ (external division) is

$$P=\left(\frac{mx_2-nx_1}{m-n},\ \frac{my_2-ny_1}{m-n}\right).$$

The midpoint ($m=n$, internal) is $\left(\tfrac{x_1+x_2}{2},\tfrac{y_1+y_2}{2}\right)$.

Proof (internal). Drop perpendiculars from $A$, $P$, $B$ to the $x$-axis. The feet are at $x_1$, $x$, $x_2$, and by similar triangles (the parallel lines cut the transversals $AB$ and the $x$-axis in the same ratio) $\dfrac{x-x_1}{x_2-x}=\dfrac mn$. Solving, $nx-nx_1=mx_2-mx$, so $x=\dfrac{mx_2+nx_1}{m+n}$; the same argument with the $y$-axis gives $y$. For external division $P$ lies beyond $B$ (if $m\gt n$) or beyond $A$ (if $m\lt n$), and the same similar triangles give $\dfrac{x-x_1}{x-x_2}=\dfrac mn$, i.e. $x=\dfrac{mx_2-nx_1}{m-n}$. $\blacksquare$ The external formula is the internal one with $n$ replaced by $-n$. That gives the ⏱ JEE method for "in what ratio does … divide …": call the ratio $k:1$, write $P=\left(\tfrac{kx_2+x_1}{k+1},\tfrac{ky_2+y_1}{k+1}\right)$, and use the one condition you are given. If $k$ comes out positive the division is internal; if negative, external.

📐 Theorem 10.3 — Centroid and area of a triangle

For the triangle with vertices $A(x_1,y_1)$, $B(x_2,y_2)$, $C(x_3,y_3)$, the three medians meet at the centroid

$$G=\left(\frac{x_1+x_2+x_3}{3},\ \frac{y_1+y_2+y_3}{3}\right),$$

which divides each median in the ratio $2:1$ from the vertex. The area of the triangle is

$$\Delta=\tfrac12\left|x_1(y_2-y_3)+x_2(y_3-y_1)+x_3(y_1-y_2)\right|,$$

and the three points are collinear if and only if this expression is $0$.

Proof. The median from $A$ ends at the midpoint $D=\left(\tfrac{x_2+x_3}2,\tfrac{y_2+y_3}2\right)$ of $BC$. The point dividing $AD$ in the ratio $2:1$ has $x$-coordinate $\dfrac{2\cdot\frac{x_2+x_3}{2}+1\cdot x_1}{3}=\dfrac{x_1+x_2+x_3}{3}$, and similarly for $y$. This expression is symmetric in the three vertices, so the same point lies two-thirds of the way along each of the other two medians too — all three pass through $G$. The area formula is the determinant formula of Section 3.2 (Theorem 3.11) expanded. $\blacksquare$

✏️ Example 1 — Distances and division of a segment
(a) Show that $A(1,2)$, $B(5,5)$, $C(2,9)$ are the vertices of an isosceles right-angled triangle, and find its area. (b) Find the points that divide the join of $P(-2,3)$ and $Q(6,-1)$ internally and externally in the ratio $3:1$. (c) In what ratio does the $y$-axis divide $PQ$, and at which point?
(a) $AB^2=4^2+3^2=25$, $BC^2=(-3)^2+4^2=25$, $AC^2=1^2+7^2=50$. So $AB=BC=5$ and $AB^2+BC^2=AC^2$: isosceles, right-angled at $B$. Area $=\tfrac12\cdot AB\cdot BC=\tfrac{25}{2}$.
(b) Internal: $\left(\tfrac{3\cdot6+1\cdot(-2)}{4},\tfrac{3\cdot(-1)+1\cdot3}{4}\right)=(4,0)$. External: $\left(\tfrac{3\cdot6-1\cdot(-2)}{2},\tfrac{3\cdot(-1)-1\cdot3}{2}\right)=(10,-3)$.
(c) Ratio $k:1$: the point is $\left(\tfrac{6k-2}{k+1},\tfrac{-k+3}{k+1}\right)$. On the $y$-axis its $x$-coordinate is $0$: $6k=2$, $k=\tfrac13$, so the ratio is $1:3$ (internal, since $k\gt0$). The point is $\left(0,\tfrac{-1/3+3}{4/3}\right)=(0,2)$.
Check (a) by Theorem 10.3: $\tfrac12|1(5-9)+5(9-2)+2(2-5)|=\tfrac12|{-4}+35-6|=\tfrac{25}{2}$ ✓. (b) $(4,0)$ is three-quarters of the way from $P$ to $Q$: $-2+\tfrac34\cdot8=4$ ✓.

A line, a circle or a parabola is not a list of points but a rule that points obey. Coordinate geometry turns the rule into an equation.

📘 Definition 10.2 — Locus and its equation

A locus is the set of all points (and only those points) that satisfy a given geometric condition. An equation of the locus is an equation in $x$ and $y$ that is satisfied by the coordinates of every point of the locus and by the coordinates of no other point.

🧭 Finding the equation of a locus

(1) Let $P(h,k)$ be any point of the locus. (2) Write the given condition as an equation in $h$, $k$ (distance formula, section formula, slopes…). (3) Eliminate any extra parameters and simplify. (4) Replace $h$, $k$ by $x$, $y$. Using $h$, $k$ keeps the moving point separate from the fixed data until the last step.

✏️ Example 2 — Three loci
Find the locus of a point $P$ that (a) is equidistant from $A(2,-1)$ and $B(-4,3)$; (b) is twice as far from $A(-1,0)$ as from $B(2,0)$; (c) divides, in the ratio $1:2$, a rod of length $6$ whose ends slide on the $x$- and $y$-axes (the ratio measured from the end on the $x$-axis).
(a) $PA^2=PB^2$: $(h-2)^2+(k+1)^2=(h+4)^2+(k-3)^2$. The squares $h^2$, $k^2$ cancel: $-4h+2k+5=8h-6k+25$, i.e. $12h-8k+20=0$. Locus: $3x-2y+5=0$ — the perpendicular bisector of $AB$, a straight line.
(b) $PA^2=4PB^2$: $(h+1)^2+k^2=4\big[(h-2)^2+k^2\big]$, so $h^2+2h+1+k^2=4h^2-16h+16+4k^2$, i.e. $3h^2+3k^2-18h+15=0$. Locus: $x^2+y^2-6x+5=0$, which is $(x-3)^2+y^2=4$ — a circle with centre $(3,0)$ and radius $2$ (Section 10.2).
(c) Let the ends be $(a,0)$ and $(0,b)$ with $a^2+b^2=36$. The point dividing in $1:2$ from $(a,0)$ is $h=\tfrac{1\cdot0+2a}{3}$, $k=\tfrac{1\cdot b+2\cdot0}{3}$, so $a=\tfrac{3h}{2}$, $b=3k$. Eliminating: $\tfrac{9h^2}{4}+9k^2=36$. Locus: $\dfrac{x^2}{16}+\dfrac{y^2}{4}=1$ — an ellipse (Section 10.3).
Check (a) The midpoint $(-1,1)$ of $AB$ satisfies $3(-1)-2(1)+5=0$ ✓. (b) The point $(1,0)$ divides $AB$ internally in $2:1$ and $(5,0)$ externally in $2:1$; both lie on the circle ✓.

$A=(1,1)$ and $B=(3,5)$. The point dividing $AB$ externally in the ratio $2:1$ is

Slope and the Equations of a Line

📘 Definition 10.3 — Inclination and slope

The inclination of a line is the angle $\theta$, $0^\circ\le\theta\lt180^\circ$, measured anticlockwise from the positive direction of the $x$-axis to the line. If $\theta\ne90^\circ$, the slope (gradient) of the line is $m=\tan\theta$. A horizontal line has slope $0$; a vertical line ($\theta=90^\circ$) has no slope ("undefined slope").

📘 Definition 10.4 — Intercepts

If a line meets the $x$-axis at $(a,0)$ and the $y$-axis at $(0,b)$, then $a$ is its $x$-intercept and $b$ its $y$-intercept. Intercepts are signed numbers, not lengths: the line through $(-3,0)$ and $(0,2)$ has $x$-intercept $-3$.

📐 Theorem 10.4 — Slope from two points; parallel and perpendicular lines
  1. The line through $(x_1,y_1)$ and $(x_2,y_2)$ with $x_1\ne x_2$ has slope $m=\dfrac{y_2-y_1}{x_2-x_1}$ ("rise over run").
  2. Two non-vertical lines are parallel if and only if $m_1=m_2$.
  3. Two lines, neither of them vertical, are perpendicular if and only if $m_1m_2=-1$. (A vertical line is perpendicular exactly to the horizontal lines.)
  4. Three points $A$, $B$, $C$ are collinear if and only if the slope of $AB$ equals the slope of $AC$ (or both are vertical).

Proof. (1) The run $x_2-x_1$ and rise $y_2-y_1$ are the legs of a right triangle whose angle at the first point is $\theta$ (or $180^\circ-\theta$, with a negative rise), so $\tan\theta=\tfrac{y_2-y_1}{x_2-x_1}$. (2) Parallel lines make equal corresponding angles with the $x$-axis, so they have equal inclinations and equal slopes, and conversely. (3) If the lines are perpendicular, their inclinations differ by $90^\circ$: $\theta_2=\theta_1+90^\circ$, and $\tan\theta_2=\tan(\theta_1+90^\circ)=-\cot\theta_1=-\tfrac{1}{m_1}$, i.e. $m_1m_2=-1$; each step reverses. (4) $AB$ and $AC$ share the point $A$; equal slopes means they are the same line. $\blacksquare$

📐 Theorem 10.5 — The forms of the equation of a line
Parallel to an axis$y=k$ (horizontal), $\quad x=h$ (vertical)
Point–slope$y-y_1=m(x-x_1)$
Slope–intercept$y=mx+c$ ($c$ = $y$-intercept)
Two-point$y-y_1=\dfrac{y_2-y_1}{x_2-x_1}(x-x_1)$
Intercept form$\dfrac xa+\dfrac yb=1$ $\ (a,b\ne0)$
Normal form$x\cos\omega+y\sin\omega=p$
General form$ax+by+c=0$, $\ a,b$ not both $0$

In the normal form, $p\ge0$ is the length of the perpendicular $ON$ from the origin to the line and $\omega$ is the angle from the positive $x$-axis to $ON$. Every line has a general equation, and every general equation is a line: if $b\ne0$ it is $y=-\tfrac abx-\tfrac cb$ (slope $-\tfrac ab$, $y$-intercept $-\tfrac cb$), and if $b=0$ it is the vertical line $x=-\tfrac ca$. The $x$-intercept is $-\tfrac ca$ when $a\ne0$.

Why. Point–slope: a point $(x,y)\ne(x_1,y_1)$ is on the line exactly when the slope from $(x_1,y_1)$ to it is $m$: $\tfrac{y-y_1}{x-x_1}=m$. Putting $(x_1,y_1)=(0,c)$ gives $y=mx+c$, and putting $m=\tfrac{y_2-y_1}{x_2-x_1}$ gives the two-point form. Intercept form: the two-point form through $(a,0)$ and $(0,b)$ is $y=-\tfrac ba(x-a)$, i.e. $bx+ay=ab$; divide by $ab$. Normal form: the foot of the perpendicular is $N=(p\cos\omega,p\sin\omega)$, and $P(x,y)$ is on the line exactly when $NP\perp ON$. By the perpendicularity test for directions explained just below ($pr+qs=0$), this says $(x-p\cos\omega)\cos\omega+(y-p\sin\omega)\sin\omega=0$, which simplifies to $x\cos\omega+y\sin\omega=p$ because $\cos^2\omega+\sin^2\omega=1$. $\blacksquare$

Two quick consequences of the general form are used constantly. Lines parallel to $ax+by+c=0$ are $ax+by+k=0$ (same $a$, $b$); lines perpendicular to it are $bx-ay+k=0$ (swap $a$ and $b$, change one sign). Two directions $(p,q)$ and $(r,s)$ are perpendicular exactly when $pr+qs=0$ — this is $m_1m_2=-1$ cleared of fractions, and it also works for vertical lines. To put $ax+by+c=0$ into normal form, divide by $\sqrt{a^2+b^2}$ with the sign chosen so that the constant on the right is positive.

✏️ Example 3 — Slopes at work
(a) Find $k$ if $A(1,2)$, $B(4,k)$, $C(7,8)$ are collinear. (b) Show that $A(-2,-1)$, $B(4,0)$, $C(3,3)$, $D(-3,2)$ form a parallelogram. Is it a rectangle? (c) Find the equation of the line through $(-2,3)$ perpendicular to the line joining $(1,-1)$ and $(5,1)$.
(a) Slope $AB$ = slope $BC$: $\tfrac{k-2}{3}=\tfrac{8-k}{3}$, so $k=5$.
(b) Slopes: $AB=\tfrac{0-(-1)}{4-(-2)}=\tfrac16$, $DC=\tfrac{3-2}{3-(-3)}=\tfrac16$; $AD=\tfrac{2-(-1)}{-3-(-2)}=-3$, $BC=\tfrac{3-0}{3-4}=-3$. Both pairs of opposite sides are parallel: a parallelogram. Adjacent sides: $\tfrac16\cdot(-3)=-\tfrac12\ne-1$, so the angles are not right angles — not a rectangle.
(c) The join has slope $\tfrac{1-(-1)}{5-1}=\tfrac12$, so the required slope is $-2$ (Theorem 10.4(3)). Point–slope form: $y-3=-2(x+2)$, i.e. $2x+y+1=0$.
Check (b) The diagonals of a parallelogram bisect each other: midpoint of $AC$ is $\left(\tfrac12,1\right)$ and of $BD$ is $\left(\tfrac12,1\right)$ ✓.
✏️ Example 4 — Choosing the right form
(a) Find the lines through $(4,3)$ whose intercepts on the axes are equal in magnitude but opposite in sign. (b) Find the line whose perpendicular from the origin has length $4$ and makes an angle of $120^\circ$ with the positive $x$-axis. (c) Write $3x-4y+10=0$ in slope–intercept, intercept and normal form, and read off its distance from the origin.
(a) Intercepts $a$ and $-a$ with $a\ne0$: $\tfrac xa-\tfrac ya=1$, i.e. $x-y=a$. Through $(4,3)$: $a=1$, giving $x-y=1$. But the intercept form cannot describe a line through the origin, whose intercepts are $0$ and $0$ — also "equal in magnitude and opposite in sign". That line is $y=\tfrac34x$, i.e. $3x-4y=0$. Answer: $x-y=1$ and $3x-4y=0$.
(b) Normal form with $p=4$, $\omega=120^\circ$: $x\cos120^\circ+y\sin120^\circ=4$, i.e. $-\tfrac x2+\tfrac{\sqrt3}{2}y=4$, or $x-\sqrt3\,y+8=0$.
(c) Slope–intercept: $y=\tfrac34x+\tfrac52$. Intercepts: $x$-intercept $-\tfrac{10}{3}$, $y$-intercept $\tfrac52$, so $\dfrac{x}{-10/3}+\dfrac{y}{5/2}=1$. Normal form: $\sqrt{3^2+4^2}=5$; to make the constant positive write $-3x+4y=10$ and divide by $5$: $-\tfrac35x+\tfrac45y=2$. So $\cos\omega=-\tfrac35$, $\sin\omega=\tfrac45$ ($\omega\approx126.9^\circ$) and the line is at distance $p=2$ from the origin.
Check (c) The triangle cut off from the axes has legs $\tfrac{10}{3}$ and $\tfrac52$, hypotenuse $\sqrt{\tfrac{100}9+\tfrac{25}4}=\tfrac{25}{6}$; its altitude to the hypotenuse is $\tfrac{(10/3)(5/2)}{25/6}=2$ ✓.

How many lines pass through $(2,3)$ and make equal intercepts on the coordinate axes?

Angles, Intersections and the Distance from a Line

📐 Theorem 10.6 — The angle between two lines

If two lines have slopes $m_1$, $m_2$ with $1+m_1m_2\ne0$, the acute angle $\theta$ between them satisfies

$$\tan\theta=\left|\frac{m_1-m_2}{1+m_1m_2}\right|.$$

If $1+m_1m_2=0$ the lines are perpendicular. If one line is vertical and the other has inclination $\theta_1$, the acute angle is $|90^\circ-\theta_1|$. The obtuse angle between the lines is $180^\circ-\theta$.

Proof. Let the inclinations be $\theta_1$, $\theta_2$, so $m_i=\tan\theta_i$. One angle between the lines is $\theta_2-\theta_1$ and the other is its supplement, and by the subtraction formula $\tan(\theta_2-\theta_1)=\dfrac{\tan\theta_2-\tan\theta_1}{1+\tan\theta_1\tan\theta_2}=\dfrac{m_2-m_1}{1+m_1m_2}$. The supplementary angle has the opposite tangent, and the acute one has the positive tangent — hence the absolute value. $\blacksquare$ Because of the absolute value, "the lines through $P$ making an angle $\theta$ with a given line" are always two lines, one for each sign.

📐 Theorem 10.7 — Intersection of two lines, families, and concurrence of three

Let $L_1\equiv a_1x+b_1y+c_1=0$ and $L_2\equiv a_2x+b_2y+c_2=0$.

  1. If $a_1b_2-a_2b_1\ne0$ the lines meet in exactly one point, $\left(\dfrac{b_1c_2-b_2c_1}{a_1b_2-a_2b_1},\ \dfrac{c_1a_2-c_2a_1}{a_1b_2-a_2b_1}\right)$. If $\tfrac{a_1}{a_2}=\tfrac{b_1}{b_2}\ne\tfrac{c_1}{c_2}$ they are parallel (no common point); if all three ratios are equal they are the same line.
  2. If $L_1$, $L_2$ meet at a point $P$, then for every real $\lambda$ the equation $L_1+\lambda L_2=0$ is a line through $P$, and every line through $P$ except $L_2$ itself arises this way (the family of lines through $P$).
  3. Three lines $a_ix+b_iy+c_i=0$ ($i=1,2,3$), no two of them parallel, are concurrent (pass through one point) if and only if
$$\begin{vmatrix}a_1&b_1&c_1\\a_2&b_2&c_2\\a_3&b_3&c_3\end{vmatrix}=0.$$

Proof. (1) is the solution of two linear equations by elimination (or Cramer's rule, Section 3.3). (2) $L_1+\lambda L_2$ is linear in $x,y$, and at $P$ both $L_1$ and $L_2$ vanish, so it vanishes too; given any other point $Q$ with $L_2(Q)\ne0$, choosing $\lambda=-\tfrac{L_1(Q)}{L_2(Q)}$ gives the line through $P$ and $Q$. (3) If the lines meet at $(x_0,y_0)$, then $(x_0,y_0,1)$ is a non-zero solution of the homogeneous system with this coefficient matrix, so its determinant is $0$. Conversely, if the determinant is $0$ its rows are linearly dependent; the first two rows are independent (since $a_1b_2-a_2b_1\ne0$), so the third row is $\lambda(\text{row }1)+\mu(\text{row }2)$, i.e. $L_3=\lambda L_1+\mu L_2$, which vanishes at the common point of $L_1$ and $L_2$. $\blacksquare$ ⏱ In practice: solve two of the lines and substitute the point into the third.

✏️ Example 5 — Angles and concurrence (JEE level)
(a) Find the acute angle between $2x-y+3=0$ and $x-3y+1=0$. (b) Find the equations of the lines through $(1,2)$ that make an angle of $45^\circ$ with $2x-y+3=0$. (c) Find $k$ if the lines $x+2y-3=0$, $3x-y+5=0$ and $kx+3y-1=0$ are concurrent.
Find $k$ in (c) before you open the solution:
(a) Slopes $m_1=2$, $m_2=\tfrac13$: $\tan\theta=\left|\dfrac{2-\frac13}{1+\frac23}\right|=\dfrac{5/3}{5/3}=1$, so $\theta=45^\circ$.
(b) A line of slope $m$ through $(1,2)$ needs $\left|\dfrac{m-2}{1+2m}\right|=1$. Plus sign: $m-2=1+2m$, $m=-3$. Minus sign: $m-2=-1-2m$, $m=\tfrac13$. The lines are $y-2=-3(x-1)$ and $y-2=\tfrac13(x-1)$, i.e. $3x+y-5=0$ and $x-3y+5=0$.
(c) From the first line $x=3-2y$; substituting in the second, $9-6y-y+5=0$, so $y=2$, $x=-1$. The third line passes through $(-1,2)$: $-k+6-1=0$, $k=5$.
Check (c) by Theorem 10.7(3): $\begin{vmatrix}1&2&-3\\3&-1&5\\5&3&-1\end{vmatrix}=1(1-15)-2(-3-25)-3(9+5)=-14+56-42=0$ ✓. (b) The two answers are perpendicular to each other ($-3\cdot\tfrac13=-1$), as they must be: both make $45^\circ$ with the same line.
📐 Theorem 10.8 — Distance of a point from a line; foot, image and sides

Let $L(x,y)=ax+by+c$ and $P(x_0,y_0)$. Then:

  1. The perpendicular distance of $P$ from the line $L=0$ is $\ d=\dfrac{|ax_0+by_0+c|}{\sqrt{a^2+b^2}}$.
  2. The distance between the parallel lines $ax+by+c_1=0$ and $ax+by+c_2=0$ is $\dfrac{|c_1-c_2|}{\sqrt{a^2+b^2}}$.
  3. The foot $F(x,y)$ of the perpendicular from $P$ and the image $P'(x,y)$ of $P$ in the line are given by
$$\frac{x-x_0}{a}=\frac{y-y_0}{b}=\frac{-L(x_0,y_0)}{a^2+b^2}\ \ (\text{foot}),\qquad \frac{x-x_0}{a}=\frac{y-y_0}{b}=\frac{-2L(x_0,y_0)}{a^2+b^2}\ \ (\text{image}).$$

(4) Points $P$, $Q$ not on the line lie on the same side of it if $L(P)$ and $L(Q)$ have the same sign, and on opposite sides if the signs differ; the line divides $PQ$ in the ratio $-L(P):L(Q)$.

Proof. The vector $(a,b)$ is perpendicular to the line: the line's direction is $(b,-a)$, and $a\cdot b+b\cdot(-a)=0$. So the perpendicular from $P$ consists of the points $(x_0+ta,\ y_0+tb)$. Its foot is on the line: $a(x_0+ta)+b(y_0+tb)+c=0$, giving $t=-\dfrac{L(x_0,y_0)}{a^2+b^2}$ — this is (3) for the foot, and the image is twice as far along: $2t$. The distance is $|t|\sqrt{a^2+b^2}=\dfrac{|L(x_0,y_0)|}{\sqrt{a^2+b^2}}$, which is (1). For (2), take any point on the first line ($ax_0+by_0=-c_1$) and use (1): $\tfrac{|-c_1+c_2|}{\sqrt{a^2+b^2}}$. For (4), the point dividing $PQ$ in the ratio $k:1$ is $\tfrac{kQ+P}{k+1}$, and since $L$ is linear, $L$ there equals $\tfrac{kL(Q)+L(P)}{k+1}$; this is $0$ for $k=-\tfrac{L(P)}{L(Q)}$, which is positive (internal division — the segment crosses the line) exactly when $L(P)$, $L(Q)$ have opposite signs. $\blacksquare$

In the lab below, keep the starting points $A(-3,-1)$ and $P(1,4)$, and let the line turn about $A$ (press Play). As it turns, what is the largest value the distance readout $d$ from $P$ to the line reaches?

Watch the readout $d$ as the line sweeps round: it is $0$ when the line passes through $P$ and climbs to its largest value $6.40$ when the line is perpendicular to $AP$ — then the foot of the perpendicular is $A$ itself and $d=AP=\sqrt{4^2+5^2}=\sqrt{41}\approx6.40$. The slope at that moment is $-\tfrac45=-0.8$, the negative reciprocal of the slope $\tfrac54$ of $AP$. In every other position the perpendicular $PF$ is a leg of the right triangle $PFA$ whose hypotenuse is $PA$, so $d\lt AP$. At the start, with $B(5,3)$, the line is $x-2y+1=0$ and $d=\tfrac{|1-8+1|}{\sqrt5}=\tfrac{6}{\sqrt5}\approx2.68$.
Interactive 1 — Line Lab: Slope, Intercepts and Distance

Drag the points $A$ and $B$ (they snap to whole numbers) to set the line, and drag $P$ to test its distance from the line. The dashed run and rise show the slope, the blue dots are the intercepts, and the red segment is the perpendicular from $P$ with its foot $F$. Press Play to turn the line about $A$ and watch the slope pass through "undefined".

slope $m$—
intercepts $(a,\ b)$—
$AB$—
distance $d$ of $P$—
✏️ Example 6 — Distance, foot and image (JEE level)
(a) Find the distance of $(3,-2)$ from $5x-12y-13=0$. (b) Find the distance between the lines $6x+8y-5=0$ and $3x+4y+5=0$. (c) Find the foot of the perpendicular from $P(4,1)$ to the line $x-y+1=0$, and the image of $P$ in this line.
Find the $y$-coordinate of the image in (c):
(a) $d=\dfrac{|5\cdot3-12\cdot(-2)-13|}{\sqrt{25+144}}=\dfrac{|15+24-13|}{13}=\dfrac{26}{13}=2$.
(b) First make the $x$, $y$ coefficients identical: the second line is $6x+8y+10=0$. Then $d=\dfrac{|-5-10|}{\sqrt{36+64}}=\dfrac{15}{10}=1.5$.
(c) $L(4,1)=4-1+1=4$ and $a^2+b^2=2$. Foot: $\tfrac{x-4}{1}=\tfrac{y-1}{-1}=-\tfrac42=-2$, so $F=(2,3)$. Image: the ratio is $-\tfrac{2\cdot4}{2}=-4$, so $P'=(4-4,\ 1+4)=(0,5)$.
Check $F=(2,3)$ is on the line ($2-3+1=0$) and is the midpoint of $P(4,1)$ and $P'(0,5)$ ✓; $PP'$ has slope $-1$, perpendicular to the line of slope $1$ ✓. In (b), using $3x+4y+5=0$ with $6x+8y-5=0$ unchanged would give the wrong answer $\tfrac{10}{5}=2$.

The acute angle between the lines $y=\sqrt3\,x+1$ and $x=5$ is

Centroid, Orthocentre and Circumcentre of a Triangle

Every triangle has three special lines through each vertex or side, and each family of three lines is concurrent. Coordinates make it easy to find the meeting points — and to discover that they are related.

📘 Definition 10.5 — The three centres of a triangle
  • A median joins a vertex to the midpoint of the opposite side; the three medians meet at the centroid $G$.
  • An altitude is the perpendicular from a vertex to the opposite side (extended if necessary); the three altitudes meet at the orthocentre $H$.
  • The perpendicular bisectors of the sides meet at the circumcentre $O$, which is equidistant from the three vertices; the circle with centre $O$ through the vertices is the circumcircle, with radius $R$ (the circumradius).
📐 Theorem 10.9 — Locating the centres; the Euler line

Let $A(x_1,y_1)$, $B(x_2,y_2)$, $C(x_3,y_3)$ be a triangle.

  1. $G=\left(\tfrac{x_1+x_2+x_3}{3},\tfrac{y_1+y_2+y_3}{3}\right)$ (Theorem 10.3).
  2. $O(h,k)$ is found from the two linear equations $OA^2=OB^2$ and $OA^2=OC^2$ (the squares $h^2$, $k^2$ cancel), and $R=OA$.
  3. $H$ is the intersection of any two altitudes.
  4. (Euler line.) $O$, $G$, $H$ are collinear and $G$ divides $HO$ internally in the ratio $2:1$: $\ G=\dfrac{H+2O}{3}$, i.e. $H=3G-2O$ (coordinate by coordinate).
  5. In a right-angled triangle, $H$ is the vertex of the right angle and $O$ is the midpoint of the hypotenuse. In an equilateral triangle $G=H=O$. The orthocentre lies inside an acute triangle and outside an obtuse one.

Proof of (4). Shift the origin to $O$; then $A$, $B$, $C$ are all at distance $R$ from the origin: $x_i^2+y_i^2=R^2$. Consider the point $K=(x_1+x_2+x_3,\ y_1+y_2+y_3)$. The direction from $A$ to $K$ is $(x_2+x_3,\ y_2+y_3)$ and the direction of $BC$ is $(x_3-x_2,\ y_3-y_2)$. Their "perpendicularity test" from Theorem 10.5 gives

$$\begin{aligned}&(x_2+x_3)(x_3-x_2)+(y_2+y_3)(y_3-y_2)\\&\quad=(x_3^2+y_3^2)-(x_2^2+y_2^2)=R^2-R^2=0,\end{aligned}$$

so $AK\perp BC$: $K$ is on the altitude from $A$. By symmetry it is on the other two altitudes as well, so $K=H$. With $O$ at the origin, $G=\tfrac13K=\tfrac13H$, so $G$ lies on $OH$ with $OG:GH=1:2$. Moving the origin back adds the same shift to every point and keeps the relation $G=\tfrac{H+2O}{3}$. $\blacksquare$ Proof of (5). If the right angle is at $A$, the sides $AB$ and $AC$ are themselves altitudes (each is perpendicular to the other), so they meet at $H=A$; and the angle in a semicircle is a right angle, so $BC$ is a diameter of the circumcircle. $\blacksquare$

In the lab below, $A(-4,-2)$ and $B(4,-2)$ are fixed and Play slides $C$ along the line $y=3$. Starting from $C(0,3)$ and moving right, when does the orthocentre $H$ first leave the triangle?

At the start, $C=(0,3)$, the readouts show $G=(0,-0.33)$, $O=(0,-1.1)$ and $H=(0,1.2)$, inside the triangle. As $C$ moves right, $H$ slides towards $B$; at $C=(4,3)$ the angle at $B$ is a right angle, and the lab shows $H=(4,-2)=B$ and $O=(0,0.5)$, the midpoint of the hypotenuse $AC$ (Theorem 10.9(5)). Beyond $x=4$ the angle at $B$ is obtuse and $H$ lies outside, below $AB$. Throughout, the readout $HG:GO$ stays at $2:1$ — the Euler line.
Interactive 2 — Triangle Centres and the Euler Line

Drag the vertices $A$, $B$, $C$ (they snap to whole numbers) or press Play to slide $C$ along $y=3$. Choose which family of lines to draw: medians meet at the centroid $G$, altitudes at the orthocentre $H$, perpendicular bisectors at the circumcentre $O$ (the centre of the circumcircle). The purple line through $H$, $G$, $O$ is the Euler line.

centroid $G$—
orthocentre $H$—
circumcentre $O$—
$HG:GO$—
✏️ Example 7 — The three centres (JEE level)
(a) For the triangle $A(0,0)$, $B(6,0)$, $C(2,4)$ find the circumcentre and circumradius, the orthocentre and the centroid, and verify that $G$ divides $HO$ in the ratio $2:1$. (b) For the triangle $(1,1)$, $(5,1)$, $(1,4)$ write down $H$ and $O$ without any calculation, and then find $G$.
Find the $x$-coordinate of the orthocentre in (a):
Circumcentre The perpendicular bisector of $AB$ is $x=3$. Then $OA^2=OC^2$: $9+k^2=(3-2)^2+(k-4)^2=k^2-8k+17$, so $k=1$. $O=(3,1)$, $R=\sqrt{9+1}=\sqrt{10}$.
Orthocentre Altitude from $C$ (perpendicular to $AB$, the $x$-axis): $x=2$. $BC$ has slope $\tfrac{4-0}{2-6}=-1$, so the altitude from $A$ has slope $1$: $y=x$. They meet at $H=(2,2)$.
Centroid and Euler $G=\left(\tfrac83,\tfrac43\right)$. And $\tfrac{H+2O}{3}=\left(\tfrac{2+6}{3},\tfrac{2+2}{3}\right)=\left(\tfrac83,\tfrac43\right)=G$ ✓.
(b) The sides from $(1,1)$ are horizontal and vertical, so the right angle is at $(1,1)$: $H=(1,1)$ and $O$ is the midpoint of the hypotenuse, $\left(3,\tfrac52\right)$. $G=\left(\tfrac73,2\right)$, and indeed $\tfrac{H+2O}{3}=\left(\tfrac{1+6}{3},\tfrac{1+5}{3}\right)$ ✓.
⏱ Shortcut Once $O$ and $G$ are known, $H=3G-2O$: in (a), $(8,4)-(6,2)=(2,2)$ — no altitudes needed.
⚠️ JEE Main traps

1. Vertical lines have no slope. $m_1m_2=-1$ cannot test $x=3$ against $y=5$, though they are perpendicular. For lines in general form use $a_1a_2+b_1b_2=0$ (perpendicular) and $a_1b_2=a_2b_1$ (parallel) — no division, no special cases.

2. The intercept form misses lines through the origin. "Equal intercepts", "intercepts equal in magnitude", "intercepts in the ratio $2:3$" — always ask whether the line through the origin also qualifies.

3. Parallel-line distance needs identical $x$, $y$ coefficients. Write $6x+8y-5=0$ and $3x+4y+5=0$ as $6x+8y-5=0$ and $6x+8y+10=0$ before using $\tfrac{|c_1-c_2|}{\sqrt{a^2+b^2}}$.

4. Angle conditions give two lines. $\left|\tfrac{m-m_1}{1+mm_1}\right|=\tan\theta$ has two solutions for $m$ (or one, plus a vertical line, when $1+mm_1$ can vanish). Dropping the absolute value loses one.

5. Section-formula signs. External division uses $\tfrac{mx_2-nx_1}{m-n}$, with $x_2$ (the coordinate of $B$) multiplied by $m$ (the part next to $A$). A negative $k$ in the "$k:1$" method means external division, not an error.

The circumcentre of a triangle is $(1,2)$ and its centroid is $(3,2)$. Its orthocentre is

🚀 Beyond JEE Main (JEE Advanced) — angle bisectors and the incentre

In the JEE Advanced syllabus (straight lines: bisectors of the angles between two lines; incentre of a triangle); not in the JEE Main 2026 list, which names only the centroid, orthocentre and circumcentre.

A point is on a bisector of the angle between $a_1x+b_1y+c_1=0$ and $a_2x+b_2y+c_2=0$ exactly when it is equally far from both lines, so by Theorem 10.8 the two bisectors are

$$\frac{a_1x+b_1y+c_1}{\sqrt{a_1^2+b_1^2}}=\pm\frac{a_2x+b_2y+c_2}{\sqrt{a_2^2+b_2^2}}.$$

The internal bisectors of a triangle meet at the incentre $I$, the centre of the circle touching all three sides. If the side lengths opposite $A$, $B$, $C$ are $a$, $b$, $c$, then $I=\dfrac{aA+bB+cC}{a+b+c}$ (coordinate by coordinate). For $A(0,0)$, $B(4,0)$, $C(0,3)$: $a=5$, $b=3$, $c=4$, so $I=\left(\tfrac{5\cdot0+3\cdot4+4\cdot0}{12},\tfrac{5\cdot0+3\cdot0+4\cdot3}{12}\right)=(1,1)$, and the inradius is $1$ — its distance from both axes.

Exercises

Unless stated otherwise, "angle between two lines" means the acute angle. Lengths are in units of the coordinate grid.

I
Coordinates, distance, section formula and locus.
  • 1 Find the distance between $(-3,4)$ and $(5,-2)$.
  • 2 Find all $x$ for which the distance between $(x,3)$ and $(2,-1)$ is $5$.
  • 3 Find the point on the $x$-axis equidistant from $(2,3)$ and $(-4,1)$.
  • 4 Find the points dividing the join of $(1,-3)$ and $(7,9)$ in the ratio $1:2$ internally and externally.
  • 5 In what ratio does the $x$-axis divide the join of $(2,-3)$ and $(5,6)$? Find the point of division.
  • 6 Find the points of trisection of the segment from $(-1,2)$ to $(8,-4)$.
  • 7 Two vertices of a triangle are $(1,2)$ and $(4,-3)$ and its centroid is $(2,1)$. Find the third vertex.
  • 8 Find the area of the triangle with vertices $(1,1)$, $(4,5)$, $(7,-2)$.
  • 9 Find the locus of a point $P$ with $PA^2+PB^2=10$, where $A=(1,0)$ and $B=(-1,0)$.
  • 10 A variable line through $(2,3)$ meets the axes at $A$ and $B$. Find the locus of the midpoint of $AB$.
1 $\sqrt{8^2+6^2}=10$.
2 $(x-2)^2+16=25$, $x-2=\pm3$: $x=5$ or $x=-1$.
3 $(x-2)^2+9=(x+4)^2+1$ gives $-4x+13=8x+17$, $x=-\tfrac13$: the point $\left(-\tfrac13,0\right)$.
4 Internal: $\left(\tfrac{7+2}{3},\tfrac{9-6}{3}\right)=(3,1)$. External: $\left(\tfrac{7-2}{1-2},\tfrac{9+6}{1-2}\right)=(-5,-15)$.
5 Ratio $k:1$, $y=\tfrac{6k-3}{k+1}=0$: $k=\tfrac12$, i.e. $1:2$ internally. $x=\tfrac{5/2+2}{3/2}=3$: the point $(3,0)$.
6 Step $\tfrac13(9,-6)=(3,-2)$: the points $(2,0)$ and $(5,-2)$.
7 $(x_3,y_3)=3G-A-B=(6-5,\ 3+1)=(1,4)$.
8 $\tfrac12|1(5+2)+4(-2-1)+7(1-5)|=\tfrac12|7-12-28|=\tfrac{33}{2}=16.5$.
9 $(x-1)^2+y^2+(x+1)^2+y^2=10$ gives $2x^2+2y^2+2=10$: the circle $x^2+y^2=4$.
10 If the midpoint is $(h,k)$ then $A=(2h,0)$, $B=(0,2k)$ and the line is $\tfrac{x}{2h}+\tfrac{y}{2k}=1$. Through $(2,3)$: $\tfrac1h+\tfrac{3}{2k}=1$, i.e. $2k+3h=2hk$. Locus: $3x+2y=2xy$.
II
Slopes and the equation of a line.
  • 1 Find the slope and the inclination of the line through $(2,-1)$ and $(-1,2)$.
  • 2 Find $k$ if the line through $(k,3)$ and $(2,-1)$ is perpendicular to a line of slope $2$.
  • 3 Find the line through $(-1,4)$ parallel to $3x-2y+7=0$.
  • 4 Find the line through $(2,5)$ perpendicular to $x+3y-4=0$.
  • 5 Find the lines through $(3,4)$ whose intercepts on the axes add up to $14$.
  • 6 Find the intercepts of $4x-5y+20=0$ and the area of the triangle it makes with the axes.
  • 7 Write $\sqrt3\,x+y-8=0$ in normal form; find $p$ and $\omega$.
  • 8 Find the perpendicular bisector of the segment joining $(1,3)$ and $(5,-1)$.
  • 9 A line through $(1,2)$ cuts the positive axes. Find the least possible area of the triangle it forms with the axes, and the line for which it is least.
1 $m=\tfrac{2-(-1)}{-1-2}=-1$; $\tan\theta=-1$ with $0^\circ\le\theta\lt180^\circ$ gives $\theta=135^\circ$.
2 Slope $\tfrac{3+1}{k-2}=-\tfrac12$, so $k-2=-8$, $k=-6$.
3 $3x-2y+k=0$ through $(-1,4)$: $-3-8+k=0$, $k=11$: $3x-2y+11=0$.
4 $3x-y+k=0$ through $(2,5)$: $k=-1$: $3x-y-1=0$.
5 $\tfrac xa+\tfrac{y}{14-a}=1$ through $(3,4)$: $3(14-a)+4a=a(14-a)$, so $a^2-13a+42=0$, $a=6$ or $7$. Lines $\tfrac x6+\tfrac y8=1$ (i.e. $4x+3y=24$) and $x+y=7$.
6 $y=0$ gives $x=-5$; $x=0$ gives $y=4$. Area $\tfrac12\cdot5\cdot4=10$.
7 $\sqrt{3+1}=2$: $\tfrac{\sqrt3}{2}x+\tfrac12y=4$, so $\cos\omega=\tfrac{\sqrt3}2$, $\sin\omega=\tfrac12$: $\omega=30^\circ$, $p=4$.
8 Midpoint $(3,1)$; the segment has slope $-1$, so the bisector has slope $1$: $y-1=x-3$, i.e. $x-y-2=0$.
9 $\tfrac xa+\tfrac yb=1$ with $\tfrac1a+\tfrac2b=1$, $a,b\gt0$. By AM–GM, $1=\tfrac1a+\tfrac2b\ge2\sqrt{\tfrac{2}{ab}}$, so $ab\ge8$ and the area $\tfrac12ab\ge4$, with equality when $\tfrac1a=\tfrac2b=\tfrac12$: $a=2$, $b=4$. The line is $2x+y=4$.
III
Angles, intersection and concurrence.
  • 1 Find the acute angle between $y=3x+1$ and $y=-2x+5$.
  • 2 Find the acute angle between $x-\sqrt3\,y+1=0$ and $\sqrt3\,x-y+2=0$.
  • 3 Find the point of intersection of $2x+3y=13$ and $5x-y=7$.
  • 4 Find the line through the origin and the point of intersection of $x+y-5=0$ and $2x-y-1=0$.
  • 5 Find $\lambda$ if $2x-y+1=0$, $x+3y-10=0$ and $\lambda x+y-7=0$ are concurrent.
  • 6 For which $a$ are the lines $ax+2y=3$ and $3x+(a+1)y=5$ parallel? For which $a$ are they perpendicular?
  • 7 Find the area of the triangle formed by $y=x$, $y=-x$ and $x=4$.
  • 8 Using the family $L_1+\lambda L_2=0$, find the line through the intersection of $3x-4y+1=0$ and $5x+y-1=0$ that is perpendicular to $2x-3y=10$.
1 $\tan\theta=\left|\tfrac{3-(-2)}{1+3(-2)}\right|=\left|\tfrac{5}{-5}\right|=1$: $45^\circ$.
2 Slopes $\tfrac1{\sqrt3}$ and $\sqrt3$ (inclinations $30^\circ$ and $60^\circ$): the angle is $30^\circ$. By the formula, $\tan\theta=\tfrac{\sqrt3-1/\sqrt3}{1+1}=\tfrac{1}{\sqrt3}$ ✓.
3 $y=5x-7$, so $2x+15x-21=13$, $x=2$, $y=3$: the point $(2,3)$.
4 Adding, $3x-6=0$: the point is $(2,3)$, and the line through it and $O$ is $3x-2y=0$.
5 The first two meet where $y=2x+1$ and $x+6x+3=10$: $(1,3)$. Then $\lambda+3-7=0$, $\lambda=4$.
6 Parallel: $a(a+1)=2\cdot3$, so $a^2+a-6=0$, $a=2$ or $a=-3$ (both give distinct parallel lines: $2x+2y=3$, $3x+3y=5$ and $-3x+2y=3$, $3x-2y=5$). Perpendicular: $3a+2(a+1)=0$, $a=-\tfrac25$.
7 Vertices $(0,0)$, $(4,4)$, $(4,-4)$: base $8$ on $x=4$, height $4$, area $16$.
8 $(3+5\lambda)x+(-4+\lambda)y+(1-\lambda)=0$ has slope $-\tfrac{3+5\lambda}{\lambda-4}$, which must be $-\tfrac32$ (perpendicular to slope $\tfrac23$): $2(3+5\lambda)=3(\lambda-4)$, $\lambda=-\tfrac{18}{7}$. The line is $-\tfrac{69}{7}x-\tfrac{46}{7}y+\tfrac{25}{7}=0$, i.e. $69x+46y-25=0$. (Check: the intersection point $\left(\tfrac3{23},\tfrac8{23}\right)$ satisfies it.)
IV
Distances, images and the centres of a triangle.
  • 1 Find the distance of $(2,3)$ from $3x+4y-3=0$.
  • 2 Find the distance between $3x-4y+7=0$ and $6x-8y-6=0$.
  • 3 Find the foot of the perpendicular from $(-1,3)$ to $3x-4y-16=0$.
  • 4 Find the image of $(3,8)$ in the line $x+3y-7=0$.
  • 5 Find $c$ if the point $(2,1)$ is at distance $2$ from $3x+4y+c=0$.
  • 6 Are $(1,2)$ and $(3,-1)$ on the same side of $2x+y-3=0$? Of $x-y-1=0$? Where the line separates them, find the ratio in which it divides the segment.
  • 7 Find the circumcentre, orthocentre and centroid of the triangle $(0,0)$, $(8,0)$, $(2,6)$.
  • 8 Find the orthocentre and circumcentre of the triangle formed by $x=0$, $y=0$ and $x+2y=6$.
  • 9 The centroid of a triangle is $(3,2)$ and its circumcentre is $(4,3)$. Find its orthocentre.
  • 10 Applied. A straight highway runs along $3x+4y=60$ (units: km) and a village stands at $(4,2)$. How long is the shortest feeder road from the village to the highway, and where does it join the highway?
1 $\tfrac{|6+12-3|}{5}=3$.
2 The second line is $3x-4y-3=0$: $\tfrac{|7-(-3)|}{5}=2$.
3 $L=-3-12-16=-31$, $a^2+b^2=25$: $\tfrac{x+1}{3}=\tfrac{y-3}{-4}=\tfrac{31}{25}$, so the foot is $\left(\tfrac{68}{25},-\tfrac{49}{25}\right)$.
4 $L=3+24-7=20$, $a^2+b^2=10$: $\tfrac{x-3}{1}=\tfrac{y-8}{3}=-\tfrac{40}{10}=-4$, so the image is $(-1,-4)$.
5 $\tfrac{|6+4+c|}{5}=2$: $c+10=\pm10$, $c=0$ or $c=-20$.
6 $2x+y-3$: $1$ and $2$, same sign — same side. $x-y-1$: $-2$ and $3$ — opposite sides; the ratio is $-L(P):L(Q)=2:3$, at the point $\left(\tfrac{2\cdot3+3\cdot1}{5},\tfrac{2(-1)+3\cdot2}{5}\right)=\left(\tfrac95,\tfrac45\right)$.
7 $O$: $x=4$ and $16+k^2=4+(k-6)^2$ give $k=2$: $O=(4,2)$. $G=\left(\tfrac{10}3,2\right)$. $H=3G-2O=(2,2)$ (check: altitude from $C$ is $x=2$; $BC$ has slope $-1$, so the altitude from $A$ is $y=x$ ✓).
8 The vertices are $(0,0)$, $(6,0)$, $(0,3)$, with the right angle at the origin: $H=(0,0)$, $O=\left(3,\tfrac32\right)$, the midpoint of the hypotenuse.
9 $H=3G-2O=(9-8,\ 6-6)=(1,0)$.
10 $L(4,2)=12+8-60=-40$: distance $\tfrac{40}{5}=8$ km. Foot: $\tfrac{x-4}{3}=\tfrac{y-2}{4}=\tfrac{40}{25}=1.6$, so the road joins at $(8.8,\ 8.4)$. (Check: $26.4+33.6=60$ ✓.)
🎯 Exam corner JEE Main · MCQJEE Main · Numerical

E1. JEE Main · MCQ A line passes through $(2,3)$, and the part of it between the coordinate axes is bisected at this point. Its equation is (A) $2x+3y=13$ (B) $3x+2y=12$ (C) $3x-2y=0$ (D) $x+y=5$

Midpoint If the line meets the axes at $(a,0)$ and $(0,b)$, the midpoint is $\left(\tfrac a2,\tfrac b2\right)=(2,3)$: $a=4$, $b=6$.
Intercept form $\tfrac x4+\tfrac y6=1$, i.e. $3x+2y=12$.
Answer (B).
⏱ Shortcut The line bisected at $(h,k)$ is $\tfrac xh+\tfrac yk=2$. (A) is the line through $(2,3)$ perpendicular to $OP$; (D) passes through $(2,3)$ but is bisected at $(2.5,2.5)$.

E2. JEE Main · Numerical The distance between the parallel lines $3x+4y-5=0$ and $6x+8y+k=0$ is $2$, where $k\gt0$. Find $k$. Give the answer to the nearest integer.

Match coefficients Write the first line as $6x+8y-10=0$.
Distance $\dfrac{|k-(-10)|}{\sqrt{36+64}}=\dfrac{|k+10|}{10}=2$, so $k+10=\pm20$: $k=10$ or $k=-30$.
Answer With $k\gt0$: $10$.
⏱ Shortcut Forgetting to double the first line gives $\tfrac{|k+5|}{10}=2$ and the wrong value $15$.

E3. JEE Main · MCQ The orthocentre of the triangle formed by the lines $x+y=4$, $2x+y=8$ and $2x-y+4=0$ is (A) $\left(\tfrac53,\tfrac{10}3\right)$ (B) $\left(\tfrac72,\tfrac72\right)$ (C) $(2,-3)$ (D) $(-2,3)$

Vertices $x+y=4$ and $2x+y=8$ meet at $P(4,0)$; $x+y=4$ and $2x-y+4=0$ at $Q(0,4)$; $2x+y=8$ and $2x-y+4=0$ at $R(1,6)$.
Two altitudes From $R$, perpendicular to $x+y=4$: $x-y+5=0$. From $P$, perpendicular to $2x-y+4=0$: $x+2y-4=0$. Solving: $y=3$, $x=-2$.
Answer (D) $(-2,3)$.
⏱ Check with Euler (A) is the centroid $G$ and (B) the circumcentre $O$; indeed $3G-2O=(5-7,\ 10-7)=(-2,3)$ ✓. (C) has the signs swapped.

E4. JEE Main · Numerical The three lines $kx+y+1=0$, $x+ky+1=0$ and $x+y+k=0$ are distinct and concurrent. Find $k$. Give the answer to the nearest integer.

Determinant $\begin{vmatrix}k&1&1\\1&k&1\\1&1&k\end{vmatrix}=k^3-3k+2=(k-1)^2(k+2)=0$.
Reject $k=1$ makes all three equations $x+y+1=0$ — one line, not three distinct lines.
Answer $k=-2$.
Check $-2x+y+1=0$ and $x-2y+1=0$ meet at $(1,1)$, and $1+1-2=0$ ✓.

E5. JEE Main · MCQ A ray of light from $A(1,5)$ strikes the $x$-axis and, after reflection, passes through $B(7,3)$. The point where it strikes the $x$-axis is (A) $\left(\tfrac{19}{4},0\right)$ (B) $(4,0)$ (C) $(5,0)$ (D) $\left(\tfrac92,0\right)$

Image The reflected ray, extended backwards, passes through the image of $A$ in the $x$-axis, $A'(1,-5)$ (equal angles of incidence and reflection). So the striking point is where $A'B$ meets the $x$-axis.
Line $A'B$ Slope $\tfrac{3-(-5)}{7-1}=\tfrac43$: $y+5=\tfrac43(x-1)$. Setting $y=0$: $x-1=\tfrac{15}{4}$, $x=\tfrac{19}4$.
Answer (A) $\left(\tfrac{19}4,0\right)$.
⏱ Shortcut The $x$-axis divides $A'B$ (or $AB'$) in the ratio of the heights $5:3$: $x=\tfrac{5\cdot7+3\cdot1}{8}=\tfrac{38}{8}=\tfrac{19}{4}$. (B) is the midpoint of the $x$-coordinates — true only for equal heights.

E6. JEE Main · Numerical Find the area of the parallelogram whose sides lie along the lines $3x+4y=2$, $3x+4y=12$, $x-2y=1$ and $x-2y=6$. Give the answer to the nearest integer.

Heights Distance between the first pair: $\tfrac{10}{5}=2$; between the second pair: $\tfrac{5}{\sqrt5}=\sqrt5$.
Angle Slopes $-\tfrac34$ and $\tfrac12$: $\tan\theta=\left|\tfrac{-3/4-1/2}{1-3/8}\right|=2$, so $\sin\theta=\tfrac{2}{\sqrt5}$. A side lying along one pair has length (distance between the other pair)$/\sin\theta=\tfrac{\sqrt5}{2/\sqrt5}=\tfrac52$, and area $=\tfrac52\times2$.
Answer $5$.
⏱ Shortcut For lines $a_1x+b_1y+c_1=0$, $a_1x+b_1y+d_1=0$, $a_2x+b_2y+c_2=0$, $a_2x+b_2y+d_2=0$ the area is $\dfrac{|c_1-d_1|\,|c_2-d_2|}{|a_1b_2-a_2b_1|}=\dfrac{10\cdot5}{|-6-4|}=5$. (Check with the vertices $\left(\tfrac45,-\tfrac1{10}\right)$, $\left(\tfrac{14}5,-\tfrac85\right)$, $\left(\tfrac{24}{5},-\tfrac35\right)$, $\left(\tfrac{14}5,\tfrac9{10}\right)$: the side from the first to the second has length $\sqrt{4+2.25}=2.5$ ✓.)
🔬 Research–Teaching NexusResearch-tutored · optional, about 45 minutes

Research question. A district must place one ambulance base to serve three villages. Which "centre" of the triangle of villages is best — and does the answer depend on what "best" means?

Why it matters. Facility location is a classic problem of operations research, used for fire stations, warehouses, mobile-phone towers and vaccination camps. Different goals lead to different points: the circumcentre makes the three distances equal, the centroid makes the sum of the squared distances as small as possible, and the point that makes the plain sum of distances smallest (the Fermat point) is different again. Planners must choose the goal before they compute.

What to do.

  1. Take three villages at $V_1(0,0)$, $V_2(12,0)$, $V_3(4,8)$ (km). Compute the centroid, the circumcentre and the orthocentre with the methods of Theorem 10.9, and draw them.
  2. For each centre $X$, compute the three distances $XV_i$, their largest value, their sum, and the sum of their squares. Arrange the results in a table.
  3. Show algebraically that $\sum\big[(x-x_i)^2+(y-y_i)^2\big]$ is least at the centroid (it is a quadratic in $x$ and in $y$; complete the square).
  4. Now move $V_3$ to $(2,2)$, making the triangle obtuse. Where is the circumcentre now? Is "equal distances" still a sensible goal? Compare the largest distance from the circumcentre with that from the midpoint of the longest side.

Tools: Graph paper or any graphing app; a spreadsheet for the table.

Hand in: The table for both triangles, the completed-square argument, and a short recommendation (about 100 words) to the district: which point would you choose, and why?

Going further. Real roads are not straight lines from the base. Replace straight-line distance by "taxicab" distance $|x-x_i|+|y-y_i|$ (a city with a grid of streets). Which point minimises the total taxicab distance? (Hint: think about medians of the $x$-coordinates and of the $y$-coordinates separately.)

Instructor note: for $(0,0)$, $(12,0)$, $(4,8)$ the centroid is $\left(\tfrac{16}3,\tfrac83\right)$, the circumcentre $(6,2)$ with $R=2\sqrt{10}\approx6.32$ km, and the orthocentre $(4,4)$ — students can verify $H=3G-2O$. For an obtuse triangle the circumcentre lies outside and the smallest enclosing circle is the one on the longest side as diameter, so "equal distances" is no longer the minimax choice — a good discussion of why the model's goal matters.

🧪 Self-check quiz

0/5 correct

Q1. The slope of a line perpendicular to $3x-6y+5=0$ is

Q2. The point dividing the join of $(-1,4)$ and $(5,-2)$ internally in the ratio $1:2$ is

Q3. The lines $2x-3y+1=0$ and $3x+2y-4=0$ are

Q4. The circumcentre of the triangle with vertices $(0,0)$, $(8,0)$, $(0,6)$ is

Q5. The perpendicular distance of the origin from the line $12x+5y=26$ is