Finding the Equation of a Line
Vector and Cartesian form
A line through the point with position vector , parallel to the direction vector , has vector equation . With and , the Cartesian form is:
Worked example: through two points
Find the line through and . The direction ratios are :
A zero denominator means that coordinate stays fixed: and while varies, a line parallel to the -axis.
Worked example: point and parallel vector
The line through parallel to is:
At it passes through , a quick way to generate a second point for checking.
Worked example: is a point on the line?
Does lie on the first line? Its and match the fixed values 3 and −2, and gives . One value of works for every coordinate, so yes.
Worked example: angle between two lines
Lines with direction ratios and meet at an angle with:
Common mistakes
- Sign slips with negative coordinates. Through the Cartesian form has and , not and .
- Reading a zero denominator as division by zero. It's shorthand for that coordinate being constant.
- Checking a point with different λ values. A point is on the line only if one λ satisfies every coordinate.
- Confusing direction ratios and direction cosines. Direction cosines are the ratios divided by the vector's length.
Where this comes up in exams
The 2025-26 CBSE Class XII syllabus lists the Cartesian and vector equation of a line, skew lines, the shortest distance between two lines and the angle between two lines. JEE Main 2026 lists the equation of a line and skew lines in three-dimensional geometry, and JEE Advanced 2026 lists the equation of a straight line in space.
Checked against CBSE Mathematics curriculum, Classes XI-XII (2025-26), JEE (Main) 2026 syllabus (NTA) and JEE (Advanced) 2026 syllabus. Syllabi can change from year to year, so confirm with the latest official notification for your exam.
- Fit it into your week with the free timetable generator.
- Mark it off as you revise in the syllabus tracker.
- See how long you have left: JEE Main 2027 (Session 1) countdown and JEE Advanced 2027 countdown.