← Explore exam analytics

Straight Lines · TOPIC LESSON

Coordinate Geometry of Lines and Triangles

Turn geometry into equations: normals, projections, signed area and triangle centers

JEE Main · JEE Advanced85 min study guide11 indexed sections

BY THE END, YOU CAN

  • Choose a line representation that handles vertical and horizontal cases correctly.
  • Compute intersections, angles, perpendicular distances, feet and reflections.
  • Use determinants and section formulas for triangle area and medians.
  • Construct centroid, circumcenter, orthocenter and incenter from their defining geometric properties.

BEFORE YOU START

  • Cartesian coordinates, distance formula and elementary linear equations.
  • Dot products or the equivalent coordinate perpendicularity test.
  • Basic triangle terminology and area.

Original educational lesson. Work through the examples before revealing the practice answers. Check the current official syllabus separately; historical question frequency does not establish eligibility or predict future questions.

CONNECT THE CONCEPT TO THE EXAM

Selected exam questions & worked solutions

These selected examples are separate from the original practice below. Each identifies its exam, year and wording. They do not represent every paper or every selected year.

No source-verified exam questions have been published for this lesson yet. The worked examples and practice below are original teaching material, not past-exam questions.

01 / UNDERSTAND & APPLY

1. Choose coordinates that preserve the geometry

A point P=(x,y) records signed displacements along two perpendicular axes. In ordinary Euclidean coordinate geometry, the axes use the same length unit. A plotted graph with unequal display scales can still encode correct coordinates, but its visible angles and lengths cannot be measured directly from the picture.

For A=(x₁,y₁) and B=(x₂,y₂), the displacement B−A is (x₂−x₁,y₂−y₁). Its length is √[(x₂−x₁)²+(y₂−y₁)²], from the Pythagorean theorem. The midpoint averages coordinates because it lies halfway along the displacement in each component.

A translation of axes can simplify a problem by placing a convenient vertex at the origin. A rotation can align a side with an axis. Such rigid changes preserve distances, angles and areas, but the transformed coordinates must be used consistently throughout the calculation.

Before solving, check whether the geometric object is nondegenerate. Two identical points do not determine a unique line, and three collinear points do not form a nondegenerate triangle. A formula whose denominator vanishes often signals exactly such a missing condition.

02 / UNDERSTAND & APPLY

2. A normal vector gives a line without a slope exception

The equation ax+by+c=0 represents a line when (a,b)≠(0,0). The vector (a,b) is normal to the line, while (−b,a) is a direction vector. Multiplying all coefficients by the same nonzero constant gives the same line, so coefficients are not unique.

If b≠0, the slope is −a/b and the line can be written y=mx+k. If b=0, the line is vertical and its slope is undefined. A horizontal line has slope zero. Treating an undefined slope as an ordinary large number leads to invalid algebra.

Through a point (x₀,y₀), a line with normal (a,b) has equation a(x−x₀)+b(y−y₀)=0. A line with direction (u,v) can instead be parametrized as (x,y)=(x₀,y₀)+t(u,v), with (u,v)≠(0,0). These forms work for every orientation.

Through distinct points A,B, use the determinant or cross-multiplied form (y−y₁)(x₂−x₁)=(x−x₁)(y₂−y₁). Unlike the two-point slope fraction, it remains valid when x₂=x₁. Intercept form x/p+y/q=1 is useful only when the two nonzero finite axis intercepts p,q exist.

ORIGINAL WORKED EXAMPLE

A vertical line needs no artificial slope

Find the line through A=(2,−1), B=(2,5), and the perpendicular line through P=(−3,4).

  1. Both given points have x-coordinate 2 and are distinct, so their line is x=2.
  2. A direction vector is B−A=(0,6), hence the line is vertical. A normal vector is (1,0).
  3. A perpendicular line has horizontal direction (1,0). Through P it is y=4.
  4. The intersection (2,4) lies on both lines. The coordinate directions (0,1) and (1,0) have dot product zero.

Answer AB: x=2; perpendicular through P: y=4.

03 / UNDERSTAND & APPLY

3. Direction and normal tests avoid dividing by slopes

Two line equations a₁x+b₁y+c₁=0 and a₂x+b₂y+c₂=0 have a unique intersection when a₁b₂−a₂b₁≠0. If that determinant is zero, their normals are parallel; the lines are either distinct parallel lines or coincident. Compare constants with the same scaling to distinguish those cases.

The lines are perpendicular exactly when a₁a₂+b₁b₂=0, since rotating both normal vectors by a right angle preserves their dot product. This test covers vertical and horizontal lines. The slope product m₁m₂=−1 is a convenient equivalent only when both finite slopes exist.

The acute or right angle θ between two unoriented lines satisfies cos θ=|a₁a₂+b₁b₂|/[√(a₁²+b₁²)√(a₂²+b₂²)]. The absolute value selects the smaller angle between the lines. For oriented directions or a specified interior triangle angle, use the actual direction vectors and the appropriate sign instead.

When neither line is vertical and 1+m₁m₂≠0, tan θ=|(m₂−m₁)/(1+m₁m₂)| for the acute angle. A zero denominator indicates perpendicular lines, not a failure of the geometry. Normal-vector formulas are usually safer when parameters might create these exceptional cases.

ORIGINAL WORKED EXAMPLE

Solve the intersection and check a right angle

Find the intersection and angle between 2x−y−1=0 and x+2y−7=0.

  1. The first equation gives y=2x−1. Substitute into the second: x+4x−2=7, so x=9/5.
  2. Then y=18/5−1=13/5. Substitution verifies both original equations.
  3. The normals are (2,−1) and (1,2). Their dot product is 2−2=0.
  4. Therefore the lines meet at a right angle. The nonzero coefficient determinant 2·2−(−1)·1=5 confirms a unique intersection.

Answer Intersection (9/5,13/5); angle π/2.

04 / UNDERSTAND & APPLY

4. Perpendicular distance is a normalized signed residual

For P=(x₀,y₀) and line ax+by+c=0, the distance is |ax₀+by₀+c|/√(a²+b²). The numerator is the equation residual at P; dividing by the normal length removes the arbitrary scaling of the line equation. Omitting that normalization makes the answer depend on how the same line was written.

Let s=(ax₀+by₀+c)/(a²+b²). The perpendicular foot is H=P−s(a,b). This moves P along the normal until the line residual becomes zero. The reflection P′=P−2s(a,b) moves twice as far, placing H at the midpoint of P and P′.

The signed quantity (ax₀+by₀+c)/√(a²+b²) distinguishes the two sides relative to a chosen normal orientation. Distance uses its absolute value. Multiplying a line equation by a negative constant reverses that signed orientation but does not change the geometric distance.

For two parallel lines written with identical a,b coefficients, their separation is |c₁−c₂|/√(a²+b²). First rescale to a common normal. Subtracting constants from differently scaled equations is not meaningful.

Full-size scientific diagram. Swipe or scroll horizontally; keyboard users can focus the diagram and use arrow keys.

A point, its perpendicular foot and its reflectionFor P=(3,4) and line 3x+4y−5=0, the perpendicular foot is H=(3/5,4/5), and the reflection is P′=(−9/5,−12/5). H lies on the line and is the midpoint of PP′. The segment PP′ is parallel to (3,4), the normal; both half-lengths are 4. A right-angle marker and equal axes show the geometry.Perpendicular foot and reflection use the same normalxyP = (3, 4)H = (3/5, 4/5)P′ = (−9/5, −12/5)Mirror line: 3x + 4y − 5 = 0. PH = HP′ = 4; H is the midpoint of PP′.PP′ is parallel to the normal vector (3, 4); the displayed coordinate scales agree.
Distance is |3·3+4·4−5|/√(3²+4²)=4.

ORIGINAL WORKED EXAMPLE

One projection computes a foot and a reflection

For P=(3,4) and the line 3x+4y−5=0, find distance, perpendicular foot and reflection.

  1. The residual at P is 3·3+4·4−5=20, and the normal length is 5. The distance is 20/5=4.
  2. The normal coefficient is s=20/25=4/5. Subtract s(3,4) to get H=(3−12/5,4−16/5)=(3/5,4/5).
  3. Subtract twice that correction from P to get P′=(3−24/5,4−32/5)=(−9/5,−12/5).
  4. Check H lies on the line: 9/5+16/5−5=0. Also (P+P′)/2=H, and PH is parallel to the normal (3,4).

Answer Distance 4; foot (3/5,4/5); reflection (−9/5,−12/5).

05 / UNDERSTAND & APPLY

5. Families encode a shared geometric condition

If two nonparallel lines L₁=0 and L₂=0 meet at O, every equation λL₁+μL₂=0 with (λ,μ)≠(0,0) describes a line through O. Conversely every line through O can be represented this way. The one-parameter form L₁+kL₂=0 omits L₂=0, so remember that member when completeness matters.

The loci of points equidistant from two intersecting lines are their two angle bisectors. Their equations are L₁/√(a₁²+b₁²)=±L₂/√(a₂²+b₂²). Normalization is required before comparing distances. Both signs are needed to obtain both bisectors.

To select an internal triangle angle bisector rather than the external one, identify which branch passes through the triangle interior or use a suitable test point. The signs of raw line equations depend on how the equations were written, so a memorized plus-versus-minus rule without orientation information is unsafe.

A locus problem asks for all points satisfying a geometric condition. Derive a necessary equation, then check its converse: every point on the resulting equation should satisfy the original condition, except any explicitly excluded points. Squaring a distance equality is safe when both sides are nonnegative, but later divisions can still lose cases.

ORIGINAL WORKED EXAMPLE

Use a pencil of lines without first solving the vertex

Find the line through the intersection of x+y−3=0 and 2x−y=0 that also passes through (2,3).

  1. Write L₁+kL₂=0, where L₁=x+y−3 and L₂=2x−y.
  2. At (2,3), L₁=2 and L₂=1, so 2+k=0 and k=−2.
  3. The required line is x+y−3−2(2x−y)=0, or −3x+3y−3=0. Thus y=x+1.
  4. The original intersection is (1,2), which lies on y=x+1, and the additional point (2,3) does too. The omitted family member L₂=0 does not contain (2,3), so no solution was missed.

Answer The line is y=x+1.

06 / UNDERSTAND & APPLY

6. Affine combinations locate points; determinants measure area

For A,B and a point P dividing AB internally in the ratio AP:PB=m:n with m,n>0, P=(nA+mB)/(m+n). The weight of B is m because a larger AP moves P closer to B. The midpoint is the special case m=n.

An external division with ratio m:n, m≠n, is represented by P=(mB−nA)/(m−n). The denominator can vanish when the ratio is 1:1; there is then no finite external division point for distinct endpoints. A signed affine parameter P=A+t(B−A) handles internal points 0<t<1 and external points t<0 or t>1 uniformly.

For triangle vertices A,B,C, the signed doubled area is det(B−A,C−A). The geometric area is half its absolute value. Swapping two vertices reverses the sign but does not change the area. A zero determinant means collinearity and a degenerate triangle.

The determinant formula is translation invariant because it uses displacement vectors. It is also equivalent to the coordinate expression (1/2)|x₁(y₂−y₃)+x₂(y₃−y₁)+x₃(y₁−y₂)|. Use the form that keeps arithmetic simplest and retain the absolute value for ordinary area.

ORIGINAL WORKED EXAMPLE

Area and a median point from the same coordinates

For A=(1,1), B=(5,2), C=(2,6), find the area and the midpoint M of BC.

  1. The side vectors from A are B−A=(4,1) and C−A=(1,5). Their determinant is 4·5−1·1=19.
  2. The area is |19|/2=19/2 square units. The positive determinant records counterclockwise orientation of A,B,C.
  3. The midpoint of BC is M=((5+2)/2,(2+6)/2)=(7/2,4).
  4. The median AM divides the triangle into two equal areas because the two bases BM and MC are equal and share the altitude from A. Each small area is 19/4.

Answer Area 19/2; M=(7/2,4); the median halves the area.

07 / UNDERSTAND & APPLY

7. The centroid is an equal-weight average

For a nondegenerate triangle with position vectors A,B,C, the centroid is G=(A+B+C)/3. Let M=(B+C)/2 be the midpoint of BC. Then G=A+(2/3)(M−A), so G lies on the median from A and divides it in ratio AG:GM=2:1.

The same calculation works for medians from B and C, proving their concurrence at G rather than merely observing it in a diagram. The centroid lies inside every nondegenerate triangle because its three vertex weights are positive and sum to 1.

A median joins a vertex to the midpoint of the opposite side. It need not be perpendicular to that side and need not bisect the vertex angle. Those coincidences occur in special symmetric triangles, not as part of the median definition.

The section formula also shows that the three medians divide the triangle into six equal-area small triangles. A median first halves the area; the 2:1 division at the centroid then supplies the remaining equal-area relations. Distinguish equal areas from equal shapes or equal side lengths.

08 / UNDERSTAND & APPLY

8. Construct centers from the conditions they satisfy

The circumcenter O is equidistant from the three vertices. Its coordinates can be found by solving |O−A|²=|O−B|² and |O−A|²=|O−C|². The quadratic terms cancel, leaving two linear equations: these are perpendicular bisectors of two sides. Noncollinearity ensures a unique solution.

The orthocenter H is the common point of the three altitudes. An altitude passes through a vertex and is perpendicular to the opposite side. To compute H, write two such lines using dot products or normal vectors and intersect them; verify the third altitude if desired.

For a right triangle, the orthocenter is the right-angle vertex and the circumcenter is the midpoint of the hypotenuse. In an obtuse triangle both can lie outside the triangle. The centroid remains inside, so a picture placing every center inside every triangle is misleading.

The Euler-line identity H=A+B+C−2O follows from a dot-product calculation: (H−A)·(C−B)=(B+C−2O)·(C−B)=|C−O|²−|B−O|²=0. Thus the proposed H lies on the altitude from A, and similarly on the others. Since 3G=A+B+C, H=3G−2O, giving OG:GH=1:2 when the centers are distinct.

Full-size scientific diagram. Swipe or scroll horizontally; keyboard users can focus the diagram and use arrow keys.

Centroid circumcenter and orthocenter of an oblique triangleThe exact triangle is A=(0,0),B=(6,0),C=(2,4). The centroid G=(8/3,4/3) lies on the median from A to (4,2). The orthocenter H=(2,2) lies on the altitude x=2 from C and the altitude y=x from A. The circumcenter O=(3,1) lies on the perpendicular bisector x=3 of AB and is distance square root 10 from every vertex. Only one defining line for each center is shown to keep the picture legible; the lesson derives the second conditions.Triangle centers come from different geometric conditionsxyA (0,0)B (6,0)C (2,4)GOHMedian gives G = (8/3,4/3)Altitude gives H = (2,2)Perpendicular bisector x=3gives O = (3,1)OA = OB = OC = √10H = 3G − 2OEqual coordinate scales; dashed lines show one median, one altitude and one perpendicular bisector.
Equal-scale exact-coordinate triangle. Each displayed dashed line represents a different geometric construction.

ORIGINAL WORKED EXAMPLE

Three centers of an oblique triangle

For A=(0,0), B=(6,0), C=(2,4), find G,O,H and the circumradius.

  1. The centroid is G=((0+6+2)/3,(0+0+4)/3)=(8/3,4/3).
  2. The perpendicular bisector of AB is x=3. Equating distances from O=(u,v) to A and C gives u²+v²=(u−2)²+(v−4)², hence u+2v=5. Therefore O=(3,1).
  3. The altitude from C to horizontal AB is x=2. Side BC has direction (−4,4), so the altitude from A has direction (1,1) and equation y=x. Thus H=(2,2).
  4. The circumradius is |OA|=√10. Check H=3G−2O=(8,4)−(6,2)=(2,2), consistent with the independent altitude calculation.

Answer G=(8/3,4/3), O=(3,1), H=(2,2), circumradius √10.

09 / UNDERSTAND & APPLY

9. The incenter uses side-length weights

The incenter I is the intersection of the internal angle bisectors and is equidistant from all three sides. If a=|BC|, b=|CA| and c=|AB|, then I=(aA+bB+cC)/(a+b+c). Each vertex is weighted by the length of its opposite side, not by an adjacent side chosen arbitrarily.

One way to justify the weights is through areas. If the common perpendicular distance from I to each side is r, the three subtriangle areas are ar/2,br/2,cr/2. Their ratios are a:b:c, which are the corresponding barycentric weights. All are positive, so I lies inside the triangle.

The total area Δ equals r(a+b+c)/2=rs, where s is the semiperimeter. Thus r=Δ/s. This gives a useful independent check after finding I: its distances to the three side lines should all equal that value.

The incenter usually does not lie on the Euler line. Do not interchange it with the circumcenter: one is equidistant from side lines, the other from vertices. Both definitions involve equal distances, but to different geometric objects.

ORIGINAL WORKED EXAMPLE

A right triangle makes the incenter check transparent

For A=(0,0), B=(6,0), C=(0,8), find the incenter and inradius.

  1. The opposite side lengths are a=10,b=8,c=6, with perimeter 24.
  2. The weighted point is I=(10A+8B+6C)/24=(48/24,48/24)=(2,2).
  3. The area is 6·8/2=24 and semiperimeter is 12, so r=24/12=2.
  4. The legs lie on the coordinate axes, each at distance 2 from I. The hypotenuse has equation 4x+3y−24=0, whose distance from (2,2) is |8+6−24|/5=2.

Answer Incenter (2,2); inradius 2.

10 / UNDERSTAND & APPLY

10. Original practice with geometric checks

Use normal vectors for exceptional slopes and verify a computed center against its defining distances or perpendicularities.

ORIGINAL PRACTICE · 1

Find the midpoint and length of the segment from (−1,2) to (5,10).

Reveal answer & reasoning

Midpoint (2,6); length 10.

The coordinate average is (2,6). The displacement (6,8) has length √(36+64)=10.

ORIGINAL PRACTICE · 2

Find the line through (1,2) with normal (3,−2).

Reveal answer & reasoning

3x−2y+1=0.

Use 3(x−1)−2(y−2)=0 and expand.

ORIGINAL PRACTICE · 3

Are 3x+2y−1=0 and 6x+4y+5=0 parallel or coincident?

Reveal answer & reasoning

Distinct parallel lines.

Doubling the first gives 6x+4y−2=0, whose constant differs from +5. The normals are proportional but the equations are not.

ORIGINAL PRACTICE · 4

Find the distance from (1,1) to x−y+4=0.

Reveal answer & reasoning

2√2.

The residual is 4 and normal length is √2, giving 4/√2=2√2.

ORIGINAL PRACTICE · 5

Reflect (3,−2) across the y-axis.

Reveal answer & reasoning

(−3,−2).

The y-axis is x=0. Reflection reverses the normal x-coordinate and preserves the tangential y-coordinate.

ORIGINAL PRACTICE · 6

Find the area of the triangle (0,0),(4,0),(1,3).

Reveal answer & reasoning

6.

The base is 4 and perpendicular height is 3, giving 4·3/2=6; the determinant gives the same result.

ORIGINAL PRACTICE · 7

Find the centroid of (1,2),(4,5),(7,−1).

Reveal answer & reasoning

(4,2).

Average the three x-coordinates and the three y-coordinates separately.

ORIGINAL PRACTICE · 8

Do (1,2),(3,6),(5,10) form a nondegenerate triangle?

Reveal answer & reasoning

No; they are collinear.

The displacement vectors (2,4) and (4,8) are proportional, so their determinant and triangle area are zero.

ORIGINAL PRACTICE · 9

Find the circumcenter of the right triangle (0,0),(4,0),(0,6).

Reveal answer & reasoning

(2,3).

It is the midpoint of the hypotenuse joining (4,0) and (0,6). Its distance to each vertex is √13.

ORIGINAL PRACTICE · 10

Find the orthocenter of that right triangle.

Reveal answer & reasoning

(0,0).

The two legs are altitudes and intersect at the right-angle vertex.

ORIGINAL PRACTICE · 11

Find the internal 1:2 division point of A=(0,0), B=(9,3).

Reveal answer & reasoning

(3,1).

AP:PB=1:2 puts P one-third of the way from A to B, giving (2A+B)/3.

ORIGINAL PRACTICE · 12

Find the separation of x+2y−3=0 and 2x+4y+4=0.

Reveal answer & reasoning

√5.

Divide the second equation by 2 to get x+2y+2=0. The constant difference is 5 and normal length √5, giving √5.

11 / UNDERSTAND & APPLY

11. Let the geometry choose the algebra

Use a point and a direction for motion along a line, a normal for perpendicularity and distance, and determinants for orientation and area. These representations describe the same objects but make different constraints easier to enforce.

For a triangle center, start from its definition rather than a remembered picture. Medians identify G, perpendicular bisectors identify O, altitudes identify H and internal angle bisectors identify I. Their locations can differ dramatically, especially for right or obtuse triangles.

The frequent errors are dividing by a zero slope denominator, using unnormalized line residuals as distances, forgetting the absolute value in area, reversing section weights, treating a median as an altitude, and failing to check collinearity before solving for a circumcenter.

Conclude with direct checks: a point on a line must satisfy its equation, a foot must lie on the line and have a normal displacement, a reflection must have that foot as midpoint, and a center must meet its defining equal-distance or perpendicular conditions. Those checks turn coordinate arithmetic back into geometry.

KEEP THE BIG IDEAS

Quick revision

  • Normal-vector equations cover every line orientation.
  • Normalize a line residual before calling it a distance.
  • Signed determinants encode orientation; their absolute values give area.
  • The four common triangle centers satisfy different defining conditions.
  • Every coordinate answer should be checked against the original geometric constraints.
Back to the top ↑

READ WITH CONTEXT

References & scope

The teaching notes, worked explanations and original practice are written for this lesson. Separately labeled selected exam questions identify their exam, year, source and whether wording is paraphrased or an exact excerpt. Educational references do not certify current exam coverage.

Explore this topic in context

Analytics use a separately reviewed, incomplete historical corpus. Opening a topic does not change its counts or denominator.

KEEP EXPLORING

Your next idea is waiting.

Back to Mathematics index →Browse all topic notes