Try it yourself · Class 9 Maths · Class 9 Maths: identities, lines and sequences

The line y = ax + b: change the slope and the intercept and watch the graph move

In the number tells how steeply the line climbs and tells where it crosses the y-axis. The simulation draws the line and the step of 1 along and up that makes the slope visible.

The blue line is . The orange steps show a run of 1 and the rise ; green is the y-intercept, gold the x-intercept and orange the point where .

The simulation needs JavaScript; everything it shows is explained below.

What to change

  • Slope a: from -4 to 4 in steps of 0.5 (start at 2).
  • Intercept b: from -6 to 6 in steps of 1 (start at 1).
  • Read the picture: the orange steps show a run of 1 and the rise a, and the dots mark where the line meets the axes.

What to watch

  • a = 2, b = 1: the equation reads y = 2x + 1, the y-intercept is (0, 1), the x-intercept is (-0.5, 0) and at x = 1, y = 3.
  • a = 0.5, b = -3: the line crosses the x-axis at (6, 0) and at x = 1 the value is y = -2.5.
  • a = 0, b = 3: the line is flat, y = 3, and the x-intercept row says never.
  • a = -2, b = 4: the rise is -2, so the line falls; the x-intercept is (2, 0) and at x = 1, y = 2.

The formula

is the slope: the rise in for a run of 1 in . is the -intercept, the value of at . The -intercept is when .

Try these questions

Work each one out with the simulation, tap to see the answer, then try the chapter quiz.

  1. CBSE

    Differentiate between the graphs of the equations and .
    Show the answer
    Both cut the -axis at and both have steepness , so they cross there and are equally steep. But rises while falls, and they meet the -axis at and respectively. Each is the mirror image of the other in the -axis.
  2. CBSE

    Does this help you to conclude anything about the linear equation when is
    fixed but varies?
    Show the answer
    With fixed and varying, all the lines are parallel: same slope, different -intercepts, and they never meet. Changing slides the line up or down without changing its direction, and each line crosses the -axis at .
  3. Our question

    A line cuts the -axis at and has slope . What is its equation?
    Show the answer
    (C)

More to try in Class 9 Maths: identities, lines and sequences

Every simulation in the Lab