Math Lab

Slope–Intercept Line: y = mx + c

Straight Lines · Class XI

Drag m and c , see how slope tilts and intercept slides the line.

1
type a value
-55
0
type a value
-1010
Live values
  • Angle with x-axis45
  • x-intercept0
  • y-intercept0
xy
  • y = m x + c

Formulas in this lab

  • Angle with x-axis
    θ=arctanm\theta = \arctan m
  • x-intercept
    x=c/mx = -c/m
  • y-intercept
    y=cy = c
Tip: Slope m = tan θ where θ is the angle with the positive x-axis.

Frequently asked questions

What does $y = mx + c$ tell you about a line?

$m$ is the slope (rise over run) and $c$ is the y-intercept (where the line cuts the y-axis). So $y = 2x + 3$ rises by 2 units for every 1 unit right, and passes through $(0, 3)$. This is the most-used line form in board and JEE coordinate geometry.

How do I use the slope-intercept lab?

Slide $m$ and $c$. The line rotates as you change $m$ and slides vertically as you change $c$. Set $m = 0$ to get a horizontal line; set $c = 0$ to make the line pass through the origin. The lab also reports the x-intercept $-c/m$.

Slope as $\tan\theta$: how is it linked to angles?

Slope equals the tangent of the angle the line makes with the positive x-axis: $m = \tan\theta$. So $m = 1$ corresponds to $\theta = 45^\circ$, and $m = \sqrt{3}$ corresponds to $\theta = 60^\circ$. This connects coordinate geometry to trig — a favourite JEE crossover.

Parallel versus perpendicular lines: what about the slopes?

Parallel lines have equal slopes: $m_1 = m_2$. Perpendicular lines have slopes whose product is $-1$: $m_1 m_2 = -1$. So a line perpendicular to $y = 2x + 1$ has slope $-1/2$. The lab makes it easy to plot two lines and verify visually.