WishWasTraining Academy
NDA & Naval Academy entrance exam school
โ† home
Chapter M4-2 ยท 2 of 7 in Analytical Geometry of Two and Three Dimensions ยท 15 min read

The straight line

75 real NDA questions of this kind in the 19 papers of 2017 to 2026.

Revision sheet: the chapter on one pageTry three questions free โ†“
This chapter has a video lessonWatch it, practise with a drill and keep your record, all with a free account. No fee, no card.

Why this chapter matters. The straight line drew 29 questions in the 7 papers from 2023 to 2026, about four in every paper. That is more than any other chapter of this unit. The questions ask for the equation of a line from given facts, for the condition that two lines are parallel or perpendicular, for the angle between two lines, and for a distance from a line. Six real questions are solved in section 8.

What you will be able to do

  • Find the slope of a line and write its equation in any of the six forms.
  • Tell at once whether two lines are parallel or perpendicular, and find the angle between them.
  • Find the distance of a point from a line and the distance between two parallel lines.
  • Change one form of the equation into another, which is what many exam questions really ask.

Before you start you should know: the distance, mid-point and section formulas (Chapter M4-1), and the values of โ€‹\tan\thetaโ€‹ for โ€‹30^\circโ€‹, โ€‹45^\circโ€‹ and โ€‹60^\circโ€‹ (Chapter M3-2).

1. Slope

The slope of a line measures how steep it is. If the line makes an angle โ€‹\thetaโ€‹ with the positive direction of the x-axis, its slope is โ€‹m = \tan\thetaโ€‹. For the line through โ€‹(x_1, y_1)โ€‹ and โ€‹(x_2, y_2)โ€‹,

m = \frac{y_2 - y_1}{x_2 - x_1}

For example, the line through โ€‹(1, 2)โ€‹ and โ€‹(3, 8)โ€‹ has slope โ€‹\frac{8 - 2}{3 - 1} = 3โ€‹.

The line through (1, 2) and (3, 8) with a run of 2 and a rise of 6: slope 3; theta is the angle the line makes with the x-axis

A line that rises to the right has a positive slope. A line that falls to the right has a negative slope. A horizontal line has slope 0. A vertical line has no slope (the formula would divide by zero).

Four small graphs: a rising line with positive slope, a falling line with negative slope, a horizontal line with slope zero, a vertical line with no slope

2. The six forms of the equation

The same line can be written in different ways. Choose the form that fits the facts you are given.

Form Equation Use it when you know
Slope-intercept โ€‹y = mx + cโ€‹ the slope โ€‹mโ€‹ and the cut โ€‹cโ€‹ on the y-axis
Point-slope โ€‹y - y_1 = m(x - x_1)โ€‹ one point and the slope
Two-point โ€‹y - y_1 = \dfrac{y_2 - y_1}{x_2 - x_1}(x - x_1)โ€‹ two points
Intercept โ€‹\dfrac{x}{a} + \dfrac{y}{b} = 1โ€‹ the cuts โ€‹aโ€‹ and โ€‹bโ€‹ on the x-axis and the y-axis
Normal (perpendicular) โ€‹x\cos\alpha + y\sin\alpha = pโ€‹ the length โ€‹pโ€‹ of the perpendicular from the origin, and the angle โ€‹\alphaโ€‹ it makes with the x-axis
General โ€‹ax + by + c = 0โ€‹ every line can be written this way

Lines parallel to the axes are the simplest: โ€‹x = aโ€‹ is vertical and โ€‹y = bโ€‹ is horizontal.

Reading the general form. For โ€‹ax + by + c = 0โ€‹:

  • the slope is โ€‹-\dfrac{a}{b}โ€‹;
  • the x-intercept is โ€‹-\dfrac{c}{a}โ€‹ (put โ€‹y = 0โ€‹) and the y-intercept is โ€‹-\dfrac{c}{b}โ€‹ (put โ€‹x = 0โ€‹);
  • to get the normal form, take the constant to the right side, make it positive, and divide by โ€‹\sqrt{a^2 + b^2}โ€‹.

The picture for the normal form. Draw a line that does not pass through the origin. Drop a perpendicular from the origin to it. The length of that perpendicular is โ€‹pโ€‹, and โ€‹\alphaโ€‹ is the angle it makes with the positive x-axis. The picture shows the line โ€‹3x + 4y = 12โ€‹ in three forms.

The line 3x + 4y = 12 cutting the axes at (4, 0) and (0, 3), with the perpendicular from the origin of length p at angle alpha

3. Parallel and perpendicular lines

Let two lines have slopes โ€‹m_1โ€‹ and โ€‹m_2โ€‹.

  • They are parallel when โ€‹m_1 = m_2โ€‹.
  • They are perpendicular when โ€‹m_1 m_2 = -1โ€‹.

In the general form this becomes a quick rule:

Line Any parallel line Any perpendicular line
โ€‹ax + by + c = 0โ€‹ โ€‹ax + by + k = 0โ€‹ โ€‹bx - ay + k = 0โ€‹

For a perpendicular line, swap the coefficients of โ€‹xโ€‹ and โ€‹yโ€‹ and change one sign. Then find โ€‹kโ€‹ from the point the line passes through.

Two lines โ€‹a_1 x + b_1 y + c_1 = 0โ€‹ and โ€‹a_2 x + b_2 y + c_2 = 0โ€‹ are perpendicular when โ€‹a_1 a_2 + b_1 b_2 = 0โ€‹.

4. The angle between two lines

If โ€‹\thetaโ€‹ is the acute angle between lines of slopes โ€‹m_1โ€‹ and โ€‹m_2โ€‹, then

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

For slopes โ€‹3โ€‹ and โ€‹\frac{1}{2}โ€‹: โ€‹\tan\theta = \left| \dfrac{3 - \frac{1}{2}}{1 + \frac{3}{2}} \right| = 1โ€‹, so โ€‹\theta = 45^\circโ€‹.

If โ€‹1 + m_1 m_2 = 0โ€‹ the formula cannot be used, and it does not need to be: the lines are perpendicular.

5. Distances

The perpendicular distance of the point โ€‹(x_1, y_1)โ€‹ from the line โ€‹ax + by + c = 0โ€‹ is

d = \frac{|a x_1 + b y_1 + c|}{\sqrt{a^2 + b^2}}

For the point โ€‹(3, 4)โ€‹ and the line โ€‹3x + 4y - 5 = 0โ€‹: โ€‹d = \dfrac{|9 + 16 - 5|}{5} = 4โ€‹.

The point (3, 4), the line 3x + 4y - 5 = 0 and the perpendicular between them, of length 4

The distance between the parallel lines โ€‹ax + by + c_1 = 0โ€‹ and โ€‹ax + by + c_2 = 0โ€‹ is

d = \frac{|c_1 - c_2|}{\sqrt{a^2 + b^2}}

The coefficients of โ€‹xโ€‹ and โ€‹yโ€‹ must be the same in both equations before you use it.

6. Where two lines meet, and lines through one point

Two lines meet at the point whose coordinates satisfy both equations. Solve them together. The lines โ€‹x + y = 5โ€‹ and โ€‹2x - y = 1โ€‹ meet at โ€‹(2, 3)โ€‹.

Three or more lines that pass through one point are called concurrent. The equation โ€‹y - y_1 = m(x - x_1)โ€‹ gives a different line for each value of โ€‹mโ€‹, but every one of them passes through โ€‹(x_1, y_1)โ€‹.

7. Worked examples

Example 1. Find the equation of the line through โ€‹(1, 2)โ€‹ and โ€‹(3, 8)โ€‹.

The slope is 3 (section 1). Point-slope form: โ€‹y - 2 = 3(x - 1)โ€‹, so โ€‹y = 3x - 1โ€‹, or โ€‹3x - y - 1 = 0โ€‹.

Example 2. For the line โ€‹3x + 4y - 12 = 0โ€‹, find the slope, the intercepts and the distance from the origin.

Slope โ€‹= -\frac{3}{4}โ€‹. Put โ€‹y = 0โ€‹: โ€‹x = 4โ€‹. Put โ€‹x = 0โ€‹: โ€‹y = 3โ€‹. So the intercept form is โ€‹\frac{x}{4} + \frac{y}{3} = 1โ€‹.

For the normal form write โ€‹3x + 4y = 12โ€‹ and divide by โ€‹\sqrt{9 + 16} = 5โ€‹: โ€‹\frac{3}{5}x + \frac{4}{5}y = \frac{12}{5}โ€‹. The distance of the line from the origin is โ€‹p = \frac{12}{5}โ€‹.

Example 3. Find the line through โ€‹(2, -1)โ€‹ perpendicular to โ€‹3x - 4y + 5 = 0โ€‹.

Swap the coefficients and change one sign: โ€‹4x + 3y + k = 0โ€‹. Put in the point: โ€‹8 - 3 + k = 0โ€‹, so โ€‹k = -5โ€‹. The line is โ€‹4x + 3y - 5 = 0โ€‹.

The lines 3x - 4y + 5 = 0 and 4x + 3y - 5 = 0 crossing at right angles; the second passes through (2, -1)

Example 4. Find the acute angle between the lines โ€‹y = \sqrt{3}\,x + 1โ€‹ and โ€‹y = \dfrac{x}{\sqrt{3}} + 4โ€‹.

โ€‹m_1 = \sqrt{3}โ€‹ and โ€‹m_2 = \dfrac{1}{\sqrt{3}}โ€‹, so โ€‹m_1 m_2 = 1โ€‹. The numerator is โ€‹\sqrt{3} - \dfrac{1}{\sqrt{3}} = \dfrac{2}{\sqrt{3}}โ€‹. Then โ€‹\tan\theta = \dfrac{2/\sqrt{3}}{2} = \dfrac{1}{\sqrt{3}}โ€‹ and โ€‹\theta = 30^\circโ€‹.

This agrees with the picture: the lines slope at โ€‹60^\circโ€‹ and โ€‹30^\circโ€‹ to the x-axis.

The lines y = root 3 times x plus 1 and y = x over root 3 plus 4; they slope at 60 and 30 degrees to the x-axis and meet at 30 degrees

Example 5. Find the distance between the lines โ€‹3x + 4y - 6 = 0โ€‹ and โ€‹6x + 8y + 3 = 0โ€‹.

Divide the second by 2 so that the coefficients match: โ€‹3x + 4y + \frac{3}{2} = 0โ€‹. Then โ€‹d = \dfrac{\left| -6 - \frac{3}{2} \right|}{5} = \dfrac{7.5}{5} = 1.5โ€‹.

8. From the real papers

Try each question for 75 seconds before reading the solution.

NDA II 2025, Q61. Which one of the following is the perpendicular form of the straight line โ€‹\sqrt{3}x + 2y = 7โ€‹?

(a) โ€‹y = -\frac{\sqrt{3}}{2}x + \frac{7}{2}โ€‹โ€ƒโ€ƒ(b) โ€‹\frac{x}{\left(\frac{7}{\sqrt{3}}\right)} + \frac{y}{\left(\frac{7}{2}\right)} = 1โ€‹โ€ƒโ€ƒ(c) โ€‹\frac{\sqrt{3}}{\sqrt{7}}x + \frac{2}{\sqrt{7}}y = \sqrt{7}โ€‹โ€ƒโ€ƒ(d) โ€‹\frac{\sqrt{3}}{\sqrt{7}}x + \frac{2}{\sqrt{7}}y = 7โ€‹

Solution. Divide by โ€‹\sqrt{(\sqrt{3})^2 + 2^2} = \sqrt{7}โ€‹. The right side becomes โ€‹\frac{7}{\sqrt{7}} = \sqrt{7}โ€‹. Option (a) is the slope-intercept form and (b) is the intercept form of the same line. Answer (c).

NDA II 2023, Q88. For what values of โ€‹kโ€‹ is the line โ€‹(k - 3)x - (5 - k^2)y + k^2 - 7k + 6 = 0โ€‹ parallel to the line โ€‹x + y = 1โ€‹?

(a) โ€‹-1, 1โ€‹โ€ƒโ€ƒ(b) โ€‹-1, 2โ€‹โ€ƒโ€ƒ(c) โ€‹1, -2โ€‹โ€ƒโ€ƒ(d) โ€‹2, -2โ€‹

Solution. The line โ€‹x + y = 1โ€‹ has equal coefficients of โ€‹xโ€‹ and โ€‹yโ€‹, so a parallel line must have them equal too: โ€‹k - 3 = -(5 - k^2)โ€‹. This gives โ€‹k^2 - k - 2 = 0โ€‹, so โ€‹(k - 2)(k + 1) = 0โ€‹ and โ€‹k = 2โ€‹ or โ€‹-1โ€‹. Answer (b).

NDA I 2025, Q55. โ€‹ABCโ€‹ is an equilateral triangle and โ€‹ADโ€‹ is the altitude on โ€‹BCโ€‹. If the coordinates of โ€‹Aโ€‹ are โ€‹(1, 2)โ€‹ and that of โ€‹Dโ€‹ are โ€‹(-2, 6)โ€‹, then what is the equation of โ€‹BCโ€‹?

(a) โ€‹3x + 4y - 18 = 0โ€‹โ€ƒโ€ƒ(b) โ€‹4x + 3y - 1 = 0โ€‹โ€ƒโ€ƒ(c) โ€‹4x - 3y + 26 = 0โ€‹โ€ƒโ€ƒ(d) โ€‹3x - 4y + 30 = 0โ€‹

Solution. โ€‹BCโ€‹ passes through โ€‹Dโ€‹ and is perpendicular to โ€‹ADโ€‹. Slope of โ€‹AD = \dfrac{6 - 2}{-2 - 1} = -\dfrac{4}{3}โ€‹, so the slope of โ€‹BCโ€‹ is โ€‹\dfrac{3}{4}โ€‹. Then โ€‹y - 6 = \frac{3}{4}(x + 2)โ€‹, which gives โ€‹3x - 4y + 30 = 0โ€‹. Answer (d).

NDA I 2024, Q61. If two sides of a square lie on the lines โ€‹2x + y - 3 = 0โ€‹ and โ€‹4x + 2y + 5 = 0โ€‹, then what is the area of the square in square units?

(a) โ€‹6.05โ€‹โ€ƒโ€ƒ(b) โ€‹6.15โ€‹โ€ƒโ€ƒ(c) โ€‹6.25โ€‹โ€ƒโ€ƒ(d) โ€‹6.35โ€‹

Solution. The lines are parallel, so they carry opposite sides, and the distance between them is the side of the square. Write the second as โ€‹2x + y + \frac{5}{2} = 0โ€‹. Side โ€‹= \dfrac{\left| -3 - \frac{5}{2} \right|}{\sqrt{5}} = \dfrac{5.5}{\sqrt{5}}โ€‹. Area โ€‹= \dfrac{30.25}{5} = 6.05โ€‹. Answer (a).

Two parallel lines, 2x + y - 3 = 0 and 4x + 2y + 5 = 0, with a square standing between them; the side of the square is the distance between the lines

NDA I 2026, Q51. The equation of a straight line which passes through the origin and makes an angle โ€‹\alphaโ€‹ โ€‹(0 \leq \alpha \leq 90ยฐ)โ€‹ with the line โ€‹L : x + \sqrt{3}y + 3\sqrt{3} = 0โ€‹ is โ€‹x - \sqrt{3}y = 0โ€‹. What is the value of โ€‹\alphaโ€‹?

(a) โ€‹30ยฐโ€‹โ€ƒโ€ƒ(b) โ€‹45ยฐโ€‹โ€ƒโ€ƒ(c) โ€‹60ยฐโ€‹โ€ƒโ€ƒ(d) โ€‹90ยฐโ€‹

Solution. The slope of โ€‹Lโ€‹ is โ€‹m_1 = -\dfrac{1}{\sqrt{3}}โ€‹ and the slope of the other line is โ€‹m_2 = \dfrac{1}{\sqrt{3}}โ€‹. Then โ€‹\tan\alpha = \left| \dfrac{-\frac{2}{\sqrt{3}}}{1 - \frac{1}{3}} \right| = \dfrac{2}{\sqrt{3}} \times \dfrac{3}{2} = \sqrt{3}โ€‹, so โ€‹\alpha = 60^\circโ€‹. Answer (c).

NDA II 2026, Q56. A line cuts off intercept โ€‹pโ€‹ on the โ€‹xโ€‹-axis and intercept โ€‹qโ€‹ on the โ€‹yโ€‹-axis, where โ€‹p > qโ€‹. The sum of the intercepts is 2 and the product of the intercepts is โ€‹-15โ€‹. What is the equation of the line?

(a) โ€‹3x - 5y - 15 = 0โ€‹โ€ƒโ€ƒ(b) โ€‹3x - 5y + 15 = 0โ€‹โ€ƒโ€ƒ(c) โ€‹5x - 3y - 15 = 0โ€‹โ€ƒโ€ƒ(d) โ€‹5x + 3y - 15 = 0โ€‹

Solution. โ€‹p + q = 2โ€‹ and โ€‹pq = -15โ€‹, so โ€‹pโ€‹ and โ€‹qโ€‹ are the roots of โ€‹t^2 - 2t - 15 = 0โ€‹, that is โ€‹5โ€‹ and โ€‹-3โ€‹. Since โ€‹p > qโ€‹, โ€‹p = 5โ€‹ and โ€‹q = -3โ€‹. Intercept form: โ€‹\dfrac{x}{5} - \dfrac{y}{3} = 1โ€‹. Multiply by 15: โ€‹3x - 5y - 15 = 0โ€‹. Answer (a).

Notice that each question is answered by one form or one formula of this chapter. The skill is to see which one.

9. Mistakes that cost marks

  1. The slope of โ€‹ax + by + c = 0โ€‹ is โ€‹-\frac{a}{b}โ€‹. It is not โ€‹\frac{a}{b}โ€‹ and not โ€‹-\frac{b}{a}โ€‹. For โ€‹2x + 3y - 6 = 0โ€‹ the slope is โ€‹-\frac{2}{3}โ€‹.
  2. Perpendicular slopes multiply to โ€‹-1โ€‹. If one slope is โ€‹\frac{2}{3}โ€‹, the other is โ€‹-\frac{3}{2}โ€‹: turn it over and change the sign. Doing only one of the two is wrong.
  3. Distance between parallel lines with unequal coefficients. For โ€‹2x + y - 3 = 0โ€‹ and โ€‹4x + 2y + 5 = 0โ€‹, first halve the second equation. Using โ€‹|-3 - 5|โ€‹ is wrong.
  4. The constant in the normal form. In โ€‹x\cos\alpha + y\sin\alpha = pโ€‹ the number โ€‹pโ€‹ is a length, so it must be positive, and the squares of the two coefficients must add up to 1.

10. Quick check

Do these without help. Answers are at the end.

  1. Find the slope of the line joining โ€‹(-1, 4)โ€‹ and โ€‹(3, -4)โ€‹.
  2. Write the equation of the line with x-intercept 3 and y-intercept โ€‹-2โ€‹ in general form.
  3. Find the distance of the point โ€‹(1, -2)โ€‹ from the line โ€‹5x - 12y + 10 = 0โ€‹.
  4. For what value of โ€‹kโ€‹ are the lines โ€‹2x + ky - 7 = 0โ€‹ and โ€‹3x - 2y + 1 = 0โ€‹ perpendicular?
  5. Find the acute angle between two lines whose slopes are โ€‹2โ€‹ and โ€‹-3โ€‹.

11. Read and watch more, free

What Where Language
Textbook NCERT Class 11 Mathematics, Chapter 9 Straight Lines ยท Hindi edition English, Hindi
Self-study notes NIOS Mathematics, Lesson 14 Straight Lines ยท Hindi edition English, Hindi
Video, this chapter for NDA Defence Wallah: Fast Track series (the video "STRAIGHT LINES", about 2 hours) Hinglish
Video, a longer class for NDA Chandigarh Career Group: NDA Maths one shots (Class 2, "Straight line", about 4 hours 30 minutes) Hinglish
Video, short lessons Khan Academy India: Straight Lines, Class 11 (30 short lessons on slope and the forms of a line) Hindi
Past questions with answers ExamSIDE: Coordinate System and Straight Line English

The videos were chosen from their titles, length and views; they have not yet been watched by a teacher.

Answers to the quick check

  1. โ€‹\dfrac{-4 - 4}{3 - (-1)} = \dfrac{-8}{4} = -2โ€‹.
  2. โ€‹\dfrac{x}{3} + \dfrac{y}{-2} = 1โ€‹. Multiply by 6: โ€‹2x - 3y - 6 = 0โ€‹.
  3. โ€‹\dfrac{|5 + 24 + 10|}{\sqrt{25 + 144}} = \dfrac{39}{13} = 3โ€‹.
  4. โ€‹2 \times 3 + k \times (-2) = 0โ€‹, so โ€‹k = 3โ€‹.
  5. โ€‹\tan\theta = \left| \dfrac{2 - (-3)}{1 + 2 \times (-3)} \right| = \left| \dfrac{5}{-5} \right| = 1โ€‹, so โ€‹\theta = 45^\circโ€‹.

Next chapter: The circle.

Free ยท no sign-up

Try three questions on this chapter

Exam-pattern questions from this chapter's drill. Pick an answer for each, then check.

  1. Question 1 of 3
    What is the equation of the line through โ€‹(-2, 3)โ€‹ with slope โ€‹-4โ€‹?
  2. Question 2 of 3
    Consider the following statements: I. The slope of the line โ€‹\dfrac{x}{3} + \dfrac{y}{4} = 1โ€‹ is โ€‹-\dfrac{4}{3}โ€‹. II. The lines โ€‹2x + 3y = 5โ€‹ and โ€‹3x - 2y = 7โ€‹ are perpendicular. Which of the statements given above is/are correct?
  3. Question 3 of 3
    What is the image (reflection) of the point โ€‹(2, 5)โ€‹ in the line โ€‹x + y = 3โ€‹?
Free sign-up

You have read the chapter. Now make it stick.

A free account adds the video lesson, a drill of ten questions on this chapter marked like the exam, the timed mock papers, a study plan to your exam date and your own record of what you have done. No fee, no card.

Past questions quoted are from the official UPSC paper named in the text; the explanations are WishWas's own and have been checked against the official key. The links under โ€œRead and watch moreโ€ go to free material on other sites; nothing is copied.