Straight line equations — slope form, intercept form, normal form selection

medium CBSE JEE-MAIN 3 min read

Question

A line passes through (3,2)(3, -2) and makes an angle of 45° with the positive x-axis. Write its equation in slope-intercept form, point-slope form, and normal form.


Solution — Step by Step

Slope m=tan45°=1m = \tan 45° = 1. Point: (3,2)(3, -2).

y(2)=1(x3)    y+2=x3y - (-2) = 1(x - 3) \implies \mathbf{y + 2 = x - 3} xy5=0\mathbf{x - y - 5 = 0}

From y+2=x3y + 2 = x - 3: y=x5y = x - 5

So slope m=1m = 1 and y-intercept c=5c = -5: y=x5\mathbf{y = x - 5}

Normal form: xcosα+ysinα=px\cos\alpha + y\sin\alpha = p where p>0p > 0 is the perpendicular distance from origin and α\alpha is the angle the normal makes with x-axis.

From xy5=0x - y - 5 = 0: divide by 12+(1)2=2\sqrt{1^2 + (-1)^2} = \sqrt{2}.

But we need the RHS to be positive, so write as x+y+5=0    x+y=5-x + y + 5 = 0 \implies -x + y = -5… Actually, let us rewrite: xy=5x - y = 5, divide by 2\sqrt{2}:

x2y2=52\frac{x}{\sqrt{2}} - \frac{y}{\sqrt{2}} = \frac{5}{\sqrt{2}}

cosα=1/2\cos\alpha = 1/\sqrt{2}, sinα=1/2\sin\alpha = -1/\sqrt{2}α=π/4\alpha = -\pi/4 (or 7π/47\pi/4, or equivalently 315°315°).

p=5/2=52/2p = 5/\sqrt{2} = 5\sqrt{2}/2. Normal form: xcos(315°)+ysin(315°)=522\mathbf{x\cos(315°) + y\sin(315°) = \frac{5\sqrt{2}}{2}}


Why This Works

graph TD
    A["Which line equation form to use?"] --> B["Given slope and y-intercept?"]
    B -->|Yes| C["Slope-intercept: y = mx + c"]
    A --> D["Given slope and a point?"]
    D -->|Yes| E["Point-slope: y - y₁ = m x - x₁"]
    A --> F["Given two intercepts?"]
    F -->|Yes| G["Intercept form: x/a + y/b = 1"]
    A --> H["Need perpendicular distance from origin?"]
    H -->|Yes| I["Normal form: x cos α + y sin α = p"]
    A --> J["Given two points?"]
    J -->|Yes| K["Two-point: y-y₁ / y₂-y₁ = x-x₁ / x₂-x₁"]

Each form of the line equation is suited to different given information. The point-slope form is the most versatile — it works whenever you have any point on the line and the slope. The intercept form is elegant when both intercepts are known. The normal form is essential for distance calculations.

All forms ultimately represent the same line — converting between them is just algebra. The general form ax+by+c=0ax + by + c = 0 is the most compact and is used for distance formulas: distance from (x1,y1)(x_1, y_1) to line ax+by+c=0ax + by + c = 0 is ax1+by1+ca2+b2\frac{|ax_1 + by_1 + c|}{\sqrt{a^2 + b^2}}.


Alternative Method

For JEE, the parametric form (also called symmetric form) is extremely useful: xx1cosθ=yy1sinθ=r\frac{x - x_1}{\cos\theta} = \frac{y - y_1}{\sin\theta} = r, where rr is the distance from (x1,y1)(x_1, y_1) along the line. Any point on the line is (x1+rcosθ,y1+rsinθ)(x_1 + r\cos\theta, y_1 + r\sin\theta).

This form is a JEE Advanced favourite because it lets you express points on a line in terms of a single parameter rr (the distance), making optimization problems on lines much easier.


Common Mistake

Using the intercept form when the line passes through the origin. The intercept form x/a+y/b=1x/a + y/b = 1 requires non-zero intercepts. If the line passes through the origin, both intercepts are 0, and the form breaks down (division by zero). Use the slope form y=mxy = mx instead. Similarly, the intercept form fails for vertical lines (x=kx = k) and horizontal lines through origin (y=0y = 0). Always check applicability before using a specific form.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next