Coordinate Geometry — Straight Lines Deep Dive

Learn coordinate geometry with clear explanations, worked examples, and practice problems.

CBSE JEE-MAIN NEET 11 min read

What Are Straight Lines in Coordinate Geometry?

A straight line is the simplest curve — yet coordinate geometry turns it into one of the most powerful tools in mathematics. Every line in a 2D plane can be completely described by just two things: its slope (steepness) and a point it passes through.

The beauty of this chapter is that all the different forms of a line equation — slope-intercept, point-slope, two-point, intercept form — are all the same line, just described differently. Once you understand why each form exists, choosing the right one becomes automatic.

This topic carries significant weightage in CBSE Class 11, and JEE Main regularly tests the intersection of two lines, distance from a point to a line, and the angle between lines. NEET students often see coordinate geometry in physics contexts (motion graphs).

Key Terms and Definitions

Slope (m): The measure of steepness of a line. For a line passing through (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2):

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

If m>0m > 0, the line rises left to right. If m<0m < 0, it falls. If m=0m = 0, it’s horizontal. A vertical line has undefined slope.

Inclination (θ): The angle the line makes with the positive x-axis, where 0°θ<180°0° \leq \theta < 180°. The slope m=tanθm = \tan\theta.

x-intercept: Where the line crosses the x-axis (y = 0).

y-intercept (c): Where the line crosses the y-axis (x = 0).

Collinear points: Three or more points lying on the same straight line.

Forms of a Line Equation

Slope-Intercept Form

y=mx+cy = mx + c

Use this when you know the slope mm and the y-intercept cc. This is the most common form — almost every graph problem starts here.

Example: Write the equation of a line with slope 3 and y-intercept -2.

y=3x2y = 3x - 2

Point-Slope Form

yy1=m(xx1)y - y_1 = m(x - x_1)

Use this when you know the slope and one point on the line. This is the workhorse form.

Example: Find the equation of a line with slope 12\frac{1}{2} passing through (4, 1).

y1=12(x4)y - 1 = \frac{1}{2}(x - 4) y1=x22y - 1 = \frac{x}{2} - 2 y=x21orx2y2=0y = \frac{x}{2} - 1 \quad \text{or} \quad x - 2y - 2 = 0

Two-Point Form

yy1xx1=y2y1x2x1\frac{y - y_1}{x - x_1} = \frac{y_2 - y_1}{x_2 - x_1}

Use this when you know two points. You’re essentially using the slope formula and substituting back.

Intercept Form

xa+yb=1\frac{x}{a} + \frac{y}{b} = 1

Use this when you know both intercepts: aa on the x-axis and bb on the y-axis.

Example: Line cuts x-axis at 3 and y-axis at 4. Equation:

x3+y4=1    4x+3y=12\frac{x}{3} + \frac{y}{4} = 1 \implies 4x + 3y = 12

Normal Form

xcosα+ysinα=px\cos\alpha + y\sin\alpha = p

Here pp is the perpendicular distance from the origin to the line, and α\alpha is the angle the perpendicular makes with the x-axis. Used mainly in JEE Advanced and when problems give perpendicular distance data.

General Form

ax+by+c=0ax + by + c = 0

Every line can be written this way. Slope = ab-\frac{a}{b}, x-intercept = ca-\frac{c}{a}, y-intercept = cb-\frac{c}{b}.

Important Formulas

d=(x2x1)2+(y2y1)2d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} d=ax1+by1+ca2+b2d = \frac{|ax_1 + by_1 + c|}{\sqrt{a^2 + b^2}}

where the line is ax+by+c=0ax + by + c = 0 and the point is (x1,y1)(x_1, y_1).

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

For parallel lines: m1=m2m_1 = m_2

For perpendicular lines: m1m2=1m_1 \cdot m_2 = -1

Point dividing (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) in ratio m:nm:n internally:

(mx2+nx1m+n,my2+ny1m+n)\left(\frac{mx_2 + nx_1}{m+n}, \frac{my_2 + ny_1}{m+n}\right)

Solved Examples

Easy — CBSE Class 10/11

Problem: Find the slope of the line joining points A(2, 3) and B(5, 9).

m=9352=63=2m = \frac{9 - 3}{5 - 2} = \frac{6}{3} = 2

The slope is 2. This means for every 1 unit we move right, the line rises 2 units.

Medium — CBSE Class 11 / JEE Main

Problem: Find the equation of the perpendicular bisector of the segment joining A(1, 3) and B(5, 7).

Step 1: Midpoint of AB = (1+52,3+72)=(3,5)\left(\frac{1+5}{2}, \frac{3+7}{2}\right) = (3, 5)

Step 2: Slope of AB = 7351=44=1\frac{7-3}{5-1} = \frac{4}{4} = 1

Step 3: Slope of perpendicular bisector = 11=1-\frac{1}{1} = -1 (negative reciprocal)

Step 4: Equation through (3, 5) with slope -1:

y5=1(x3)y - 5 = -1(x - 3) y5=x+3y - 5 = -x + 3 x+y=8\mathbf{x + y = 8}

Hard — JEE Main Level

Problem: Find the distance between the parallel lines 3x+4y+7=03x + 4y + 7 = 0 and 3x+4y1=03x + 4y - 1 = 0.

For parallel lines ax+by+c1=0ax + by + c_1 = 0 and ax+by+c2=0ax + by + c_2 = 0:

d=c1c2a2+b2=7(1)9+16=825=85=1.6 unitsd = \frac{|c_1 - c_2|}{\sqrt{a^2 + b^2}} = \frac{|7 - (-1)|}{\sqrt{9 + 16}} = \frac{8}{\sqrt{25}} = \frac{8}{5} = 1.6 \text{ units}

This formula for distance between parallel lines appears in JEE Main almost every year. Always rewrite both lines in the same form ax+by+c=0ax + by + c = 0 before applying it. The coefficients of xx and yy must be identical (not just proportional) in both equations.

Exam-Specific Tips

CBSE Class 10

CBSE Class 10 focuses on slope, distance formula, and section formula. The standard question format asks you to prove three points are collinear or find a missing coordinate. Use the area of triangle formula for collinearity: if area = 0, the points are collinear.

Area=12x1(y2y3)+x2(y3y1)+x3(y1y2)\text{Area} = \frac{1}{2}|x_1(y_2 - y_3) + x_2(y_3 - y_1) + x_3(y_1 - y_2)|

CBSE Class 11/12

Class 11 introduces all the forms of line equations and the angle between lines. Board papers typically have a 6-mark question combining two-point form with distance formula. Show all intermediate steps — CBSE awards partial marks.

JEE Main

JEE Main has 1-2 questions from straight lines each year (weightage ~4-8 marks). High-frequency topics: locus problems, family of lines, distance from a point to a line. The family of lines concept — L1+λL2=0L_1 + \lambda L_2 = 0 — is a JEE favourite.

For JEE MCQs, if a question asks for the equation of a line satisfying certain conditions, always check by substituting back. Many “hard” questions become easy once you verify your answer against the given constraints.

Common Mistakes to Avoid

Mistake 1: Confusing slope with inclination. Slope = tanθ\tan\theta, not θ\theta. If slope = tan60°=3\tan 60° = \sqrt{3}, the inclination is 60°, but the slope is 3\sqrt{3}.

Mistake 2: Forgetting the modulus in distance formula. The distance from a point to a line is always positive. Without ax1+by1+c|ax_1 + by_1 + c|, you might get a negative distance.

Mistake 3: Perpendicular slope confusion. Students often add 1 to the slope instead of taking the negative reciprocal. If slope is 3, the perpendicular slope is 13-\frac{1}{3}, NOT 4 or 3-3.

Mistake 4: Parallel lines having equal intercepts. Parallel lines have equal slopes but generally different intercepts. Two lines y=2x+3y = 2x + 3 and y=2x+5y = 2x + 5 are parallel — same slope, different y-intercepts.

Mistake 5: Using the wrong section formula. For internal division, it’s mx2+nx1m+n\frac{mx_2 + nx_1}{m+n}. For external division, it’s mx2nx1mn\frac{mx_2 - nx_1}{m-n}. Many students mix these up in section formula problems.

Practice Questions

Q1. Find the slope of the line 2x3y+6=02x - 3y + 6 = 0.

Rewrite: 3y=2x+6    y=23x+23y = 2x + 6 \implies y = \frac{2}{3}x + 2.

Slope m=23m = \frac{2}{3}.

Q2. Find the equation of the line passing through (1, -2) and parallel to 3x2y+5=03x - 2y + 5 = 0.

Slope of given line = 32\frac{3}{2} (parallel lines have equal slopes).

Equation: y(2)=32(x1)y - (-2) = \frac{3}{2}(x - 1)

2y+4=3x32y + 4 = 3x - 3

3x2y7=0\mathbf{3x - 2y - 7 = 0}

Q3. Find the distance of the point (3, 4) from the line 5x12y+1=05x - 12y + 1 = 0.

d=5(3)12(4)+125+144=1548+1169=3213=3213d = \frac{|5(3) - 12(4) + 1|}{\sqrt{25 + 144}} = \frac{|15 - 48 + 1|}{\sqrt{169}} = \frac{|-32|}{13} = \frac{32}{13}

Q4. The vertices of a triangle are A(0,0), B(3,0), and C(0,4). Find the equation of the median from A.

Midpoint of BC = (3+02,0+42)=(32,2)\left(\frac{3+0}{2}, \frac{0+4}{2}\right) = \left(\frac{3}{2}, 2\right)

Slope of median from A(0,0) to (32,2)\left(\frac{3}{2}, 2\right) = 20320=43\frac{2-0}{\frac{3}{2}-0} = \frac{4}{3}

Equation: y=43x    4x3y=0y = \frac{4}{3}x \implies \mathbf{4x - 3y = 0}

Q5. Find the angle between the lines y=3x+1y = \sqrt{3}x + 1 and y=x+2y = x + 2.

m1=3m_1 = \sqrt{3}, m2=1m_2 = 1

tanθ=311+31=311+3\tan\theta = \left|\frac{\sqrt{3} - 1}{1 + \sqrt{3} \cdot 1}\right| = \left|\frac{\sqrt{3}-1}{1+\sqrt{3}}\right|

Multiply numerator and denominator by (31)(\sqrt{3}-1):

=(31)2(3)212=323+12=4232=23= \frac{(\sqrt{3}-1)^2}{(\sqrt{3})^2-1^2} = \frac{3 - 2\sqrt{3} + 1}{2} = \frac{4-2\sqrt{3}}{2} = 2 - \sqrt{3}

tan15°=23\tan 15° = 2 - \sqrt{3}, so θ=15°\theta = 15°.

Q6. Prove that the points (1, 1), (2, 3), and (3, 5) are collinear.

Slope between (1,1) and (2,3): m1=3121=2m_1 = \frac{3-1}{2-1} = 2

Slope between (2,3) and (3,5): m2=5332=2m_2 = \frac{5-3}{3-2} = 2

Since m1=m2m_1 = m_2 and the points share a common point (2,3), all three are collinear.

Q7. Find the foot of the perpendicular from the point (2, 3) to the line xy+1=0x - y + 1 = 0.

Slope of given line = 1. Slope of perpendicular = -1.

Perpendicular line: y3=1(x2)    x+y=5y - 3 = -1(x - 2) \implies x + y = 5

Solve xy+1=0x - y + 1 = 0 and x+y=5x + y = 5:

Adding: 2x+1=5    x=22x + 1 = 5 \implies x = 2, then y=3y = 3. Wait — let’s redo.

xy=1x - y = -1 … (i) and x+y=5x + y = 5 … (ii)

Adding: 2x=4    x=22x = 4 \implies x = 2, y=3y = 3.

Hmm, that gives (2,3) itself — let me recalculate slope.

The line xy+1=0x - y + 1 = 0 has slope 1. Perpendicular slope = -1.

Line through (2,3): y3=1(x2)    y=x+5    x+y=5y - 3 = -1(x-2) \implies y = -x + 5 \implies x + y = 5.

Intersection of xy=1x - y = -1 and x+y=5x + y = 5: 2x=42x = 4, x=2x = 2, y=3y = 3.

The foot is (2, 3)… which means (2,3) already lies on the line! Verify: 23+1=02 - 3 + 1 = 0 ✓. The perpendicular foot is the point itself when the point is on the line.

Q8. Find the image (reflection) of the point (1, 2) in the line x+y=0x + y = 0.

The image of (x1,y1)(x_1, y_1) in the line ax+by+c=0ax + by + c = 0 is:

(x12a(ax1+by1+c)a2+b2, y12b(ax1+by1+c)a2+b2)\left(x_1 - \frac{2a(ax_1+by_1+c)}{a^2+b^2},\ y_1 - \frac{2b(ax_1+by_1+c)}{a^2+b^2}\right)

Here a=1,b=1,c=0a=1, b=1, c=0, point = (1,2).

ax1+by1+c=1+2+0=3ax_1+by_1+c = 1+2+0 = 3

Image x=12(1)(3)2=13=2x = 1 - \frac{2(1)(3)}{2} = 1 - 3 = -2

Image y=22(1)(3)2=23=1y = 2 - \frac{2(1)(3)}{2} = 2 - 3 = -1

Image = (-2, -1)

FAQs

Q: What is the equation of a line parallel to the x-axis? A line parallel to the x-axis has zero slope and takes the form y=ky = k for some constant kk. For example, y=5y = 5 is a horizontal line passing through (0, 5).

Q: What is the equation of a line parallel to the y-axis? A line parallel to the y-axis is vertical and has undefined slope. Its equation is x=kx = k. These lines cannot be written in slope-intercept form.

Q: How do I check if two lines are perpendicular without finding slopes? For lines a1x+b1y+c1=0a_1x + b_1y + c_1 = 0 and a2x+b2y+c2=0a_2x + b_2y + c_2 = 0, they are perpendicular if a1a2+b1b2=0a_1 a_2 + b_1 b_2 = 0.

Q: What is the locus of a point equidistant from two given lines? A point equidistant from two lines lies on the angle bisector of those lines. If the lines are L1=0L_1 = 0 and L2=0L_2 = 0, the angle bisectors are given by L1a12+b12=±L2a22+b22\frac{L_1}{\sqrt{a_1^2+b_1^2}} = \pm\frac{L_2}{\sqrt{a_2^2+b_2^2}}.

Q: What does “family of lines through intersection of two lines” mean? If L1=0L_1 = 0 and L2=0L_2 = 0 are two lines, then L1+λL2=0L_1 + \lambda L_2 = 0 for any value of λ\lambda gives a line passing through the intersection of L1L_1 and L2L_2. This is a JEE-favourite trick to find equations without finding the intersection point.

Q: How is slope related to the tan of inclination? m=tanθm = \tan\theta where θ\theta is the inclination (angle with positive x-axis). So slope of 1 corresponds to 45° inclination, slope of 3\sqrt{3} to 60°, and slope of 1-1 to 135°.