Try it yourself · Class 11 Mathematics · Straight Lines

Slope, parallel and perpendicular lines: change two slopes and read the angle between them

The slope of a line is the tangent of the angle it makes with the -axis. Two lines with slopes and meet at an angle that depends on both. The simulation draws the two lines and gives the angle between them.

Two lines on a grid. Blue is and orange is . The gold dot is where they meet. The acute angle between them follows from .

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

What to change

  • Slope of the blue line: from -4 to 4 in steps of 0.1 (start at 1).
  • Slope of the orange line: from -4 to 4 in steps of 0.1 (start at -0.5).
  • Orange y-intercept : from -3 to 3 in steps of 0.5 (start at -1).

What to watch

  • At the start: the lines meet at (-1.3, -0.3) and , so the acute angle is 71.6 degrees.
  • Set (equal to ): the readout says parallel and the angle is 0.0 degrees.
  • Set and : , the readout says perpendicular and the angle is 90.0 degrees.
  • The blue line’s angle with the -axis at is 45.0 degrees.

The formula

is the angle a line makes with the positive -axis; parallel lines have and perpendicular lines have .

Try these questions

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

  1. CBSE

    Find the angle between the lines and .
    Show the answer
    (acute angle), equivalently for the obtuse angle
  2. CBSE

    The slope of a line is double the slope of another line. If the tangent of the angle between them is , find the slopes of the lines.
    Show the answer

More to try in Straight Lines

Every simulation in the Lab