Straight LineFoundation

Slope, intercepts and inclination — interactive Mathematics simulation for IIT-JEE.

Concept

A straight line is fixed by its slope mm (how steep) and its intercept cc (where it cuts the y-axis). The slope equals tanθ\tan\theta, the angle the line makes with the positive x-axis.

Key formula

y=mx+c,m=tanθ,d=c1+m2y = mx + c, \quad m = \tan\theta, \quad d = \frac{|c|}{\sqrt{1+m^2}}

Derivation

From two points, m=y2y1x2x1m = \dfrac{y_2-y_1}{x_2-x_1}. The line meets the y-axis at (0,c)(0,c) and the x-axis at (c/m,0)(-c/m, 0).

The perpendicular distance from the origin to mxy+c=0mx - y + c = 0 is cm2+1\dfrac{|c|}{\sqrt{m^2+1}} from the point-to-line formula.

Scenarios to explore

  • Straight Line — Slope, intercepts and angle of inclination.

Real-world applications

  • Linear relationships in physics (v–t, V–I graphs).
  • Best-fit lines in data analysis.
  • Boundaries in linear programming.

JEE exam tips

  • Parallel lines share mm; perpendicular lines satisfy m1m2=1m_1 m_2 = -1.
  • Angle between two lines: tanφ=m1m21+m1m2\tan\varphi = \left|\dfrac{m_1-m_2}{1+m_1m_2}\right|.

Common mistakes

  • Swapping Δx\Delta x and Δy\Delta y in the slope.
  • Sign errors at the x-intercept (c/m-c/m, not c/mc/m).
  • Assuming every line has an x-intercept (horizontal lines may not).

Exam traps to avoid

  • A vertical line x=kx = k has undefined slope — it is not of the form y=mx+cy=mx+c.
  • Equal intercepts (xx-int =y= y-int) force m=1m = -1 unless the line passes through the origin.