The Graph of Tangent

The curve that escapes to infinity.

Tangent is sine divided by cosine

In a right triangle, tan θ = opposite ÷ adjacent. Divide the top and the bottom of that fraction by the hypotenuse. The value does not change, and it becomes (opposite ÷ hypotenuse) ÷ (adjacent ÷ hypotenuse), which is sin θ / cos θ.

So tan θ = sin θ / cos θ. On the unit circle, where the point at angle θ is (cos θ, sin θ), this is the height of the point divided by its distance across, y / x. That is the gradient of the radius. So tan θ is the gradient of the radius at angle θ, and this is how the tangent of any angle, not only an acute one, is defined.

For example, at 45° the sine and cosine are equal, both √2/2, so tan 45° = 1. The radius at 45° has gradient 1.

Where the cosine is 0

At 90° the point on the unit circle is (0, 1), so sin 90° = 1 and cos 90° = 0. Then tan 90° would be 1 ÷ 0, and dividing by 0 has no answer. The tangent of 90° does not exist. The radius at 90° is vertical, and a vertical line has no gradient.

Look at angles close to 90°. To 2 decimal places, tan 80° = 5.67, tan 89° = 57.29 and tan 89.9° = 572.96. As the angle approaches 90° from below, the cosine gets closer and closer to 0 while the sine stays close to 1, so the tangent grows without limit.

Just past 90° the cosine is a small negative number, and tan 91° = −57.29. So on the right of 90° the graph comes up from very large negative values.

The vertical line θ = 90° is a vertical asymptote of the graph: the curve gets closer and closer to it and never meets it. This is the same thing that happens to any quotient where the denominator is 0 and the numerator is not. The same happens at 270°, where cos 270° = 0 and sin 270° = −1.

θy(45°, 1)(180°, 0)(225°, 1)

y = tan θ from 0° to 360°, with one square across for every 45°. The dashed vertical lines at 90° and 270° are asymptotes, where cos θ = 0 and the tangent has no value. The curve rises through each branch without ever crossing them.

90°180°270°360°tan 40° = 0.84sincostan

tan θ is the length the arm cuts on the tangent line at x = 1, sin θ / cos θ: it grows without bound as θ nears 90°, which is the asymptote

Choose tan and turn the arm to 90°

The arm at 40°, extended to meet the vertical line x = 1. That line is 1 across from the center, so the height where the arm meets it is the arm’s gradient, tan 40° = 0.84, to 2 decimal places. Turn the arm toward 90° and the height climbs off the top: at 90° the arm is parallel to the line and never meets it.

The sign of the tangent

The tangent is positive when the sine and cosine have the same sign and negative when they have opposite signs.

From 0° to 90° both are positive, so the tangent is positive. From 90° to 180° the point is to the left of the center and above it: the sine is positive and the cosine negative, so the tangent is negative. For example, tan 135° = (√2/2) / (−√2/2) = −1. From 180° to 270° both are negative, so the tangent is positive again. From 270° to 360° it is negative.

The tangent is 0 where the sine is 0, at 0°, 180° and 360°. Those are where the graph crosses the axis.

135°−√2/2√2/2

The point at 135° is above the center and to the left of it. The height √2/2 divided by the distance across, −√2/2, gives tan 135° = −1.

A period of 180°

Turn the radius half a turn further, from θ to θ + 180°. The point moves to the opposite side of the circle, so both of its coordinates change sign: sin (θ + 180°) = −sin θ and cos (θ + 180°) = −cos θ.

Divide one by the other and the two minus signs cancel: tan (θ + 180°) = −sin θ / (−cos θ) = sin θ / cos θ = tan θ. So the tangent repeats every 180°, not every 360°. Its period is 180°.

The gradient says the same thing. After half a turn the radius points the opposite way along the same straight line, and a line has one gradient. So tan 225° = tan 45° = 1.

Every value, and no maximum

Sine and cosine stay between −1 and 1. The tangent does not: between −90° and 90° it rises through every number, from very large negative values near −90° to very large positive values near 90°. Its range is every real number, so tan θ = 1000 has a solution, which sin θ = 1000 does not.

Turning the radius clockwise through θ, to −θ, reflects the point in the x-axis. The sine changes sign and the cosine does not, so tan (−θ) = −tan θ: for example tan (−45°) = −1. On the graph, the branch from −90° to 90° is symmetrical about the origin: half a turn about (0, 0) takes it onto itself.

To sketch y = tan θ from 0° to 360°: draw the asymptotes at 90° and 270°; mark the zeros at 0°, 180° and 360°; mark tan 45° = 1 and tan 135° = −1; then draw three branches, each rising from left to right and bending toward the asymptotes on either side.

The usual mistakes

Joining the branches across the asymptote. The graph is not a continuous wave: at 90° the tangent has no value, and the curve on the left goes up while the curve on the right comes from below.

Writing tan 90° = 0 or tan 90° = 1. The cosine is 0 at 90°, and division by 0 has no answer, so tan 90° is undefined.

Giving the tangent a period of 360°, like sine and cosine. Half a turn changes the sign of both the sine and the cosine, so their quotient repeats every 180°.

Taking the tangent of an obtuse angle as positive. Between 90° and 180° the cosine is negative, so tan 120° = −√3.

An exact value with √3 underneath

The application below writes an exact value in its simplest form. The exact value of tan 30° is 1/√3, so 8 tan 30° = 8/√3. It is usual to write such a value with no surd in the denominator, which is called rationalizing the denominator.

Multiply the numerator and the denominator by √3. The value is unchanged, because this multiplies by √3/√3, which is 1, and √3 × √3 = 3. So 8/√3 = 8√3/3, which is 4.62 to 2 decimal places.

Worked example: A Rotating Warning Light and the Spot It Sweeps Along a Wall

Question A rotating warning light at a building site is 8 m from a long straight wall, and F is the point of the wall nearest to it. As the light turns, its beam makes an angle θ with the line from the light to F and lights a spot on the wall y meters from F, where y = 8 tan θ for −90° < θ < 90°. (a) How far from F is the spot when θ = 30° and when θ = 60°? Give exact values and values to 2 decimal places. (b) The wall runs 40 m from F in each direction. For what values of θ is the spot on the wall? How far from F would the wall have to run to catch the beam at θ = 89°? Take tan−1(5) = 78.7° and tan 89° = 57.29.

  1. 1.The line from the light to F is at right angles to the wall, so the triangle from the light to F to the spot is right-angled at F. The 8 m is adjacent to θ and y is opposite it, so tan θ = y8 and y = 8 tan θ.

    020400306090angle of the beam, θ (deg)distance from F (m), ytan θ = y/8, so y = 8 tan θy is opposite θ, and 8 m is adjacent
    020400306090angle of the beam, θ (deg)distance from F (m), ytan θ = y/8, so y = 8 tan θy is opposite θ, and 8 m is adjacent
    The line from the light to F is at right angles to the wall, so tan θ = y8 and y = 8 tan θ.
  2. 2.(a) At 30°, y = 8 tan 30° = 8√3 = 8√33 ≈ 4.62 m. At 60°, y = 8 tan 60° = 8√3 ≈ 13.86 m. The second 30° of turn moves the spot 9.24 m, twice as far as the first, because the graph of tangent grows steeper as θ grows.

    020400306090angle of the beam, θ (deg)distance from F (m), y4.62 m13.86 m8 tan 30 = 8/√3= 4.62 m8 tan 60 = 8√3= 13.86 m
    020400306090angle of the beam, θ (deg)distance from F (m), y4.62 m13.86 m8 tan 30 = 8/√3= 4.62 m8 tan 60 = 8√3= 13.86 m
    (a) 8 tan 30° = 8√33 ≈ 4.62 m and 8 tan 60° = 8√3 ≈ 13.86 m.
  3. 3.The spot reaches the end of the wall where 8 tan θ = 40, so tan θ = 5 and θ = tan−1(5) = 78.7°. The graph of y = tan θ is symmetrical about the origin, so the spot reaches the other end, 40 m on the other side of F, at θ = −78.7°.

    020400306090angle of the beam, θ (deg)distance from F (m), yend of the wall78.74.62 m13.86 m8 tan θ = 40, so tan θ = 5θ = 78.7 deg, and −78.7 deg on the other side
    020400306090angle of the beam, θ (deg)distance from F (m), yend of the wall78.74.62 m13.86 m8 tan θ = 40, so tan θ = 5θ = 78.7 deg, and −78.7 deg on the other side
    The spot reaches the end of the wall where tan θ = 5, at 78.7°. The graph is symmetrical about the origin, so the other end is at −78.7°.
  4. 4.At 89°, y = 8 × 57.29 = 458.3 m. As θ nears 90° the beam turns parallel to the wall and tan θ grows without limit: the line θ = 90° is an asymptote of the graph, and at 90° itself the beam never meets the wall.

    020400306090angle of the beam, θ (deg)distance from F (m), yasymptoteend of the wall78.74.62 m13.86 m8 tan 89 = 8 × 57.29 = 458.3 mtoward 90 deg, y grows without limit
    020400306090angle of the beam, θ (deg)distance from F (m), yasymptoteend of the wall78.74.62 m13.86 m8 tan 89 = 8 × 57.29 = 458.3 mtoward 90 deg, y grows without limit
    At 89° the spot is 8 × 57.29 = 458.3 m from F. The line θ = 90° is an asymptote: there the beam is parallel to the wall.
  5. 5.(b) The spot is on the wall for −78.7° ≤ θ ≤ 78.7°, and to catch the beam at 89° the wall would have to run 458.3 m from F. Check: 8 tan 78.7° = 8 × 4.99 = 39.9, which is 40 m to the accuracy of the angle.

    020400306090angle of the beam, θ (deg)distance from F (m), yasymptoteend of the wall78.74.62 m13.86 mon the wall from −78.7 deg to 78.7 deg458.3 m of wall to catch 89 deg
    020400306090angle of the beam, θ (deg)distance from F (m), yasymptoteend of the wall78.74.62 m13.86 mon the wall from −78.7 deg to 78.7 deg458.3 m of wall to catch 89 deg
    (b) The spot is on the wall for −78.7° ≤ θ ≤ 78.7°, and the wall would have to run 458.3 m to catch the beam at 89°.

Answer: (a) 8√33 ≈ 4.62 m and 8√3 ≈ 13.86 m from F; (b) −78.7° ≤ θ ≤ 78.7°, and 458.3 m

Common mistakes

  • Treating the spot as moving the same distance for every degree: 30° of turn moves it 4.62 m, so 60° would move it 9.24 m. The distance is 8 tan θ, not a fixed amount per degree, and 8 tan 60° = 13.86 m.
  • Adding the period of 180° and including θ = 258.7°, where tan θ = 5 as well. The graph of tangent repeats every 180°, but at 258.7° the beam points away from the wall, which is why the model holds only for −90° < θ < 90°.

More triangle trigonometry problems, worked step by step →

Practice The Graph of Tangent in the app