EngineeringRise

Straight Line: Forms, Angles, Distance, Centres: JEE Main

Reviewed Last updated 2026-11-20. Syllabus topic: Straight line: forms, angles, distance and triangle centres.

In short. A line has one equation in several forms (slope-intercept, point-slope, two-point, intercept, normal), and each question picks the form that matches the data. Angles use tan(theta) = |(m1 - m2)/(1 + m1 m2)|, distance uses |a x1 + b y1 + c|/sqrt(a² + b²), and the three triangle centres are found by intersecting medians, altitudes or perpendicular bisectors.

  • Forms: y = m x + c; y - y1 = m(x - x1); (y - y1)/(y2 - y1) = (x - x1)/(x2 - x1); x/a + y/b = 1; x cos(alpha) + y sin(alpha) = p.
  • Angle between lines: tan(theta) = |(m1 - m2)/(1 + m1 m2)|; the acute angle uses the modulus, and m1 m2 = -1 means perpendicular.
  • Distance of a point from a line: |a x1 + b y1 + c|/sqrt(a² + b²); between parallel lines ax + by + c1 = 0 and ax + by + c2 = 0: |c1 - c2|/sqrt(a² + b²).
  • Three lines are concurrent when the 3 x 3 determinant of their coefficients is zero, or when the point of intersection of two lies on the third.
  • Centroid G = ((x1 + x2 + x3)/3, (y1 + y2 + y3)/3); circumcentre is equidistant from the vertices; orthocentre is where the altitudes meet; G divides OH in the ratio OG : GH = 1 : 2.

Syllabus line: CO-ORDINATE GEOMETRY : Cartesian system of rectangular coordinates in a plane, distance formula, sections formula, locus and its equation, the slope of a line, parallel and perpendicular lines, intercepts of a line on the co-ordinate axis. Straight line: Various forms of equations of a line, intersection of lines, angles between two lines, conditions for concurrence of three lines, the distance of a point form a line, co-ordinate of the centroid, orthocentre and circumcentre of a triangle. Circle, conic sections: A standard form of equations of a circle, the general form of the equation of a circle, its radius and centre, equation of a circle when the endpoints of a diameter are given, points of intersection of a line and a circle with the centre at the origin and sections of conics, equations of conic sections (parabola, ellipse and hyperbola) in standard forms. (NTA JEE (Main) 2026 syllabus, Mathematics, Unit 10 (https://jeemain.nta.nic.in/document/syllabus-2026/))

Before you start

Prerequisites

  • Coordinates, distance, section formula and locus: Slope, intercepts, midpoint and the distance formula are used in every line problem. Read this first if slope or the section formula is not automatic.
  • Trigonometry (lesson planned): The angle between lines comes from tan(A - B). Read this first if tan of a difference is unfamiliar.
  • Matrices and determinants (lesson planned): The concurrency test is a 3 x 3 determinant. Read this first if expanding a determinant is slow.

Related topics

The concept step by step

  1. Forms of the equation of a line

    Choose the form from the data. With slope m and y-intercept c use y = m x + c. With a point (x1, y1) and slope m use y - y1 = m(x - x1). With two points use (y - y1)/(y2 - y1) = (x - x1)/(x2 - x1). With intercepts a and b on the axes use x/a + y/b = 1. In general form ax + by + c = 0 the slope is -a/b, the x-intercept is -c/a and the y-intercept is -c/b. A vertical line is x = k and a horizontal line is y = k.

  2. Intersection of lines and concurrency

    The point of intersection of two non-parallel lines is found by solving the two equations together. Three lines are concurrent if they pass through one point: find the intersection of two and test the third, or set the determinant of the coefficient array (a1 b1 c1; a2 b2 c2; a3 b3 c3) to zero. This determinant condition turns a question such as 'for what k are the three lines concurrent' into a single linear equation in k.

  3. Angle between two lines

    If two lines have slopes m1 and m2, the angle theta between them satisfies tan(theta) = |(m1 - m2)/(1 + m1 m2)|, which is the acute angle; the obtuse angle is its supplement. Parallel lines (m1 = m2) give tan(theta) = 0 and perpendicular lines (m1 m2 = -1) make the denominator zero. For lines in general form a1 x + b1 y + c1 = 0 and a2 x + b2 y + c2 = 0, tan(theta) = |(a1 b2 - a2 b1)/(a1 a2 + b1 b2)|.

  4. Distance of a point from a line

    The perpendicular distance of (x1, y1) from ax + by + c = 0 is |a x1 + b y1 + c|/sqrt(a² + b²). The numerator is the line's expression evaluated at the point; the denominator is the length of the normal vector (a, b). The sign of the unmodulated value tells which side of the line the point is on. For parallel lines with the same a and b, the distance between them is |c1 - c2|/sqrt(a² + b²); both equations must carry identical coefficients of x and y before this is used.

  5. Centroid, circumcentre and orthocentre

    The centroid G is the meeting point of the medians and equals the average of the three vertices. The circumcentre O is where the perpendicular bisectors of the sides meet; it is equidistant from the vertices. The orthocentre H is where the altitudes meet. All three lie on one line, and G divides OH in the ratio OG : GH = 1 : 2, so H = 3G - 2O. For a right-angled triangle the orthocentre is the right-angle vertex and the circumcentre is the midpoint of the hypotenuse.

Worked examples

Each solution shows the marks every step would earn. The sanity check tests units and size of the answer.

Example 1 (easy)

Find the y-intercept of the line through (2, 3) and (5, 9).

Marks-style solution of example 1
StepMarks
Slope m = (9 - 3)/(5 - 2) = 2.1
Line: y - 3 = 2(x - 2), that is y = 2x - 1.1
At x = 0, y = -1. The y-intercept is -1.1
Total: 3 marks3

Answer: -1

Fast method: Go back from (2, 3) to x = 0: two units left at slope 2 is 4 units down, so y = 3 - 4 = -1.

Sanity check: Both points satisfy y = 2x - 1: 2(2) - 1 = 3 and 2(5) - 1 = 9, so the line passes through both given points.

Example 2 (easy)

Find the distance of the point (1, -2) from the line 5x + 12y + 7 = 0.

Marks-style solution of example 2
StepMarks
Evaluate the line at the point: 5(1) + 12(-2) + 7 = 5 - 24 + 7 = -12.1
Length of the normal vector: sqrt(25 + 144) = 13.1
Distance = |-12|/13 = 12/13, about 0.923 units.1
Total: 3 marks3

Answer: 12/13, about 0.923 units

Fast method: Plug the point into the line, take the modulus and divide by 13 (5-12-13 triple).

Sanity check: Units: length. The distance is below 1, and the point is close to the line because the expression value 12 is small compared with the normal length 13 per unit.

Example 3 (medium)

Find tan of the acute angle between the lines 2x - y + 3 = 0 and x + 3y - 5 = 0.

Marks-style solution of example 3
StepMarks
Slopes: m1 = 2 (from 2x - y + 3 = 0) and m2 = -1/3 (from x + 3y - 5 = 0).1
tan(theta) = |(m1 - m2)/(1 + m1 m2)| = |(2 + 1/3)/(1 - 2/3)|.1
= (7/3)/(1/3) = 7. So tan(theta) = 7, theta is about 81.9 degrees.1
Total: 3 marks3

Answer: 7 (about 81.9 degrees)

Fast method: In general form tan(theta) = |(a1 b2 - a2 b1)/(a1 a2 + b1 b2)| = |(2 x 3 - 1 x (-1))/(2 x 1 + (-1)(3))| = |7/(-1)| = 7.

Sanity check: The product of slopes is -2/3, close to -1, so the lines are nearly perpendicular and a large tan (7, about 82 degrees) is right.

Example 4 (medium)

A line through (3, 4) cuts off intercepts on the axes that are equal in magnitude but opposite in sign. Find its x-intercept.

Marks-style solution of example 4
StepMarks
Intercepts a and -a: x/a + y/(-a) = 1, that is x - y = a.1
The line passes through (3, 4): 3 - 4 = a.1
a = -1. The x-intercept is -1 (and the y-intercept is +1).1
Total: 3 marks3

Answer: -1

Fast method: The line has the form x - y = a, with slope 1. Through (3, 4) the constant is 3 - 4 = -1, so it meets the x-axis at -1.

Sanity check: The line y = x + 1 passes through (3, 4), crosses the x-axis at -1 and the y-axis at 1: the intercepts are -1 and 1, equal in magnitude with opposite signs, as required.

Typical trap: Using x/a + y/a = 1 when the intercepts are equal in magnitude but opposite in sign. The correct form is x/a - y/a = 1, and using the wrong one gives 7 instead of -1.

Example 5 (medium)

The three lines 2x + 3y - 5 = 0, x - 2y + 1 = 0 and kx - 5y + 2 = 0 are concurrent. Find k.

Marks-style solution of example 5
StepMarks
Solve the first two: from x = 2y - 1, 2(2y - 1) + 3y = 5, so 7y = 7 and y = 1, x = 1. They meet at (1, 1).2
The third line must pass through (1, 1): k(1) - 5(1) + 2 = 0.1
k = 3.1
Total: 4 marks4

Answer: k = 3

Fast method: Determinant: |2 3 -5; 1 -2 1; k -5 2| = 21 - 7k = 0, so k = 3.

Sanity check: Substituting k = 3: 3(1) - 5(1) + 2 = 0, so (1, 1) lies on all three lines. The determinant is linear in k, so there is exactly one such k.

Example 6 (hard, multi-step)

A triangle has vertices A(0, 0), B(8, 0) and C(2, 6). Find the distance between its circumcentre O and orthocentre H, and verify that the centroid G lies on OH with OG : GH = 1 : 2.

Marks-style solution of example 6
StepMarks
Circumcentre: the perpendicular bisector of AB is x = 4. Equate OA² = OC² with O = (4, y): 16 + y² = 4 + (y - 6)², so 12y = 24 and y = 2. O = (4, 2).2
Orthocentre: the altitude from C is x = 2. BC has slope (6 - 0)/(2 - 8) = -1, so the altitude from A is y = x. H = (2, 2).2
OH = sqrt((4 - 2)² + (2 - 2)²) = 2 units.1
Centroid G = (10/3, 2). OG = 2/3 and GH = 4/3, so OG : GH = 1 : 2. OH = 2 units.1
Total: 6 marks6

Answer: OH = 2 units

Fast method: Find G = (10/3, 2) and O = (4, 2) (one equation), then H = 3G - 2O = (10 - 8, 6 - 4) = (2, 2), so OH = 2. Only the circumcentre needs real work.

Sanity check: Units: length. All three points have y = 2, so they lie on one horizontal line, and 2/3 + 4/3 = 2 equals OH, confirming that G sits one third of the way from O to H.

Formulas and units

Formula and unit box for Straight line: forms, angles, distance and triangle centres
ResultFormulaValid whenUnits or noteWorked example
Slope-intercept formy = m x + cnon-vertical line; m is slope, c the y-interceptm dimensionless (c length)none
Point-slope formy - y1 = m(x - x1)non-vertical line through (x1, y1) with slope mlengthExample 1
Two-point form(y - y1)/(y2 - y1) = (x - x1)/(x2 - x1)line not vertical or horizontal (x1 != x2, y1 != y2)dimensionlessnone
Intercept formx/a + y/b = 1line with non-zero intercepts a and b on the axeslengthExample 4
Slope from general formax + by + c = 0 has slope -a/bb not 0 (line not vertical)dimensionlessExample 3
Angle between linestan(theta) = |(m1 - m2)/(1 + m1 m2)|both lines non-vertical, m1 m2 not -1 (else 90 degrees)dimensionlessExample 3
Distance of a point from a line|a x1 + b y1 + c|/sqrt(a² + b²)a and b not both zero; (x1, y1) any pointlengthExample 2
Distance between parallel lines|c1 - c2|/sqrt(a² + b²)parallel lines written with identical a and b coefficientslengthnone
Line through intersection of L1 = 0 and L2 = 0L1 + k L2 = 0L1, L2 intersecting lines; k real (never gives L2 itself)dimensionlessnone
Concurrency of three linesdeterminant of (a_i, b_i, c_i) = 0three lines in general form ax + by + c = 0dimensionlessnone
Centroid and the Euler relationG = ((x1 + x2 + x3)/3, (y1 + y2 + y3)/3); H = 3G - 2Oany triangle; G centroid, O circumcentre, H orthocentrelengthExample 6

Use your browser's print command to print this page; the formula box prints on its own page. Download the one-page formula sheet (PDF).

Common mistakes and speed

  • Reading the slope of ax + by + c = 0 as a/b instead of -a/b. Why it tempts: The sign is easy to lose when the equation is not rearranged, and an option with the unsigned value is usually present.
  • Forgetting the modulus in the angle formula and getting a negative tan for an acute angle. Why it tempts: The formula is remembered without the bars, and an obtuse-angle answer then looks plausible.
  • Applying the parallel-line distance formula without making the x and y coefficients identical first. Why it tempts: Equations such as 3x + 4y = 5 and 6x + 8y = 30 look parallel and the constants are read off directly, giving a wrong distance.
  • Writing the altitude through a vertex with the same slope as the opposite side, or using the perpendicular bisector where an altitude is needed. Why it tempts: Both are 'perpendicular' constructions and the median, altitude and bisector are easy to mix up when drawing quickly.
  • Using intercept form for lines through the origin or with intercepts of opposite sign without adjusting. Why it tempts: The form x/a + y/b = 1 is the one remembered, and cases where it fails are rarely practised.

Time per question and fast method

Target: about 100 seconds per question.

Write every line in ax + by + c = 0 first so that slope (-a/b), distance and concurrency all read straight off the coefficients. For a line through an intersection point and another condition use L1 + k L2 = 0. For centres, find G (average) and one other centre, then use H = 3G - 2O.

Recall quiz

Pick an option for each question. Your answers stay on this page and are not sent anywhere.

Question 1. What is the slope of the line 3x + 4y = 12?
Show the answer

Answer: B: -3/4. Slope = -a/b = -3/4, from y = -(3/4)x + 3.

Question 2. What is the x-intercept of the line 2x + 3y = 12?
Show the answer

Answer: C: 6. Put y = 0: 2x = 12, so x = 6.

Question 3. Find the distance of the origin from the line 3x + 4y - 10 = 0, in units.
Show the answer

Answer: C: 2. Distance = |c|/sqrt(a² + b²) = 10/5 = 2 units.

Question 4. What is the x-coordinate of the centroid of the triangle with vertices (0, 0), (6, 0) and (0, 9)?
Show the answer

Answer: D: 2. G_x = (0 + 6 + 0)/3 = 2.

Question 5. In which ratio does the centroid divide the segment from the circumcentre to the orthocentre?
Show the answer

Answer: B: 1 : 2 from the circumcentre. H = 3G - 2O means OG : GH = 1 : 2, so G is one third of the way from O to H.

Practice

Test your answers nowFull-length mocks

Previous-year questions

Previous-year questions are not imported yet. Previous-year questions are not imported yet; see the official papers on the NTA site. Official NTA papers page.

Going deeper and revision

Choosing and converting between forms

Every non-vertical line can be written y = m x + c, and every line can be written ax + by + c = 0. Intercept form needs both intercepts to exist and be non-zero, so it cannot describe lines through the origin or parallel to an axis. A common trap is a question that says 'intercepts equal in magnitude': this means a and a, or a and -a, giving the two families x + y = a and x - y = a, and when the intercept is allowed to be zero the line through the origin also qualifies. Normal form x cos(alpha) + y sin(alpha) = p has p as the perpendicular distance from the origin (p >= 0). Units: slopes are dimensionless and intercepts are lengths.

Angle between lines: acute, obtuse and direction

The modulus in tan(theta) = |(m1 - m2)/(1 + m1 m2)| yields the acute angle between the lines. If a question asks for the angle measured from line 1 to line 2 anticlockwise, the sign is kept and the angle may be obtuse. A line with slope m makes angle arctan(m) with the x-axis; the bisectors of the angles between two lines are found from equality of the perpendicular distances of a point (x, y) to the two lines, which gives two bisectors (a plus and a minus sign). Special cases: if one line is vertical, use the angle of inclination directly and do not use the slope formula.

Concurrency, family of lines and distance

A line through the intersection of L1 = 0 and L2 = 0 can be written L1 + k L2 = 0 for some k, which is the fastest way to find a line through the intersection and also satisfying another condition (a point, a slope, an intercept). Concurrency of three lines is equivalent to the determinant of coefficients being zero. For distance: the formula needs the line in the form ax + by + c = 0 with all terms on one side. The distance from the origin is |c|/sqrt(a² + b²). The foot of the perpendicular and the reflection of a point in a line follow from the same normal vector (a, b).

Triangle centres: methods and checks

For a triangle with vertices A, B, C, the centroid is straightforward; the circumcentre is found by equating squared distances from the vertices (two linear equations), and the orthocentre is found from two altitudes (each is a line through a vertex with the slope negative reciprocal to the opposite side). Use the relation H = 3G - 2O as a check: once two of the three centres are known the third follows. Special triangles help: in an isosceles triangle all three centres lie on the axis of symmetry; in an equilateral triangle they coincide. In a right triangle with the right angle at the origin and legs along the axes, the orthocentre is the origin and the circumcentre is the midpoint of the hypotenuse.

Memory hook

Suppose a straight railway line is drawn on a district map, and two roads run alongside it in the same direction, one on each side, so that all three are parallel lines.

  1. Walking straight across from one road to the other, the shortest path is perpendicular to both, and its length is the gap between the two roads.
  2. If you stand at a point off the railway line and want the shortest walk to it, you again walk along the perpendicular, never diagonally.
  3. The direction of the line is fixed by the ratio of rise to run, and the perpendicular direction has the negative reciprocal slope.

The distance of a point from a line is the length along the normal direction (a, b), which is why the formula divides by sqrt(a² + b²); a perpendicular direction has slope the negative reciprocal.

Shortest distance to a line is the perpendicular, with slope the negative reciprocal.

Revision card

Try to answer each without looking above.

  1. Write the slope-intercept, point-slope, two-point and intercept forms and say when intercept form fails.
  2. State the angle formula for two lines and say what happens when m1 m2 = -1.
  3. Write the distance of a point from a line and the distance between two parallel lines.
  4. State the determinant condition for three lines to be concurrent.
  5. Describe how to locate the centroid, circumcentre and orthocentre and state H = 3G - 2O.
  6. How do you write the family of lines through the intersection of two given lines?

Sources and review

Reviewed Reviewed on 2026-11-20: every number recomputed by code and independently reviewed; textbook section references pending.

  • Method: Every number in worked examples, recall checks and notes recomputed by code; claims recomputed independently by a separate verifier run using other numerical methods; textbook section references not yet attached; wording defects found were fixed afterwards and re-linted (code checks re-run) but not re-reviewed by a second run; syllabus scope compared with the NTA JEE Main 2026 syllabus text (by the verifier; see the report)
  • Reviewer: independent verifier agent run (not the author)
  • Date: 2026-11-20
  • Defects found: 0; fixed: 0
  • Report: content/reviews/learn4-cog-2026-11-20.md

Textbook references

  • NCERT Mathematics, Class 11 (reprint 2026-27), Chapter 9: Straight Lines, 9.3.4 Slope-intercept form (read 2026-11-22)
  • NCERT Mathematics, Class 11 (reprint 2026-27), Chapter 9: Straight Lines, 9.3.2 Point-slope form (read 2026-11-22)
  • NCERT Mathematics, Class 11 (reprint 2026-27), Chapter 9: Straight Lines, 9.3.3 Two-point form (read 2026-11-22)
  • NCERT Mathematics, Class 11 (reprint 2026-27), Chapter 9: Straight Lines, 9.3.5 Intercept - form (read 2026-11-22)
  • NCERT Mathematics, Class 11 (reprint 2026-27), Chapter 9: Straight Lines, 9.2.2 Conditions for parallelism and perpendicularity of lines in terms of their slopes (read 2026-11-22)

Sources used

  • NTA JEE (Main) 2026 syllabus, Mathematics, Unit 10 (https://jeemain.nta.nic.in/document/syllabus-2026/), read for scope
  • Standard results of school-level coordinate geometry; no textbook section reference attached yet (to be sourced at verification). Content written fresh for this site.

How labels work: see how answers and lessons are verified. Found a mistake? Use Report an error on any question page.