Tangent Explained: The Ratio That Measures Slope
Here's something weird about the tangent function that nobody tells you upfront: it's the ratio of two perfectly well-behaved functions (sine and cosine), but at 90 degrees it explodes to infinity. Not "gets really big." Literally infinite. And this isn't a bug—it's what makes tangent useful.
If you learned trigonometry in high school, you probably memorized that tan(θ) = opposite/adjacent, plugged numbers into your calculator, and moved on. But the tangent function is doing something genuinely strange. It takes a bounded, cyclical input (angles from 0° to 360°) and produces outputs that shoot from negative infinity to positive infinity, over and over again.
And the reason it does this? It's measuring slope. Not just in triangles—everywhere. The tangent function is the bridge between angles and steepness, between rotation and rate of change. When surveyors need to measure the angle of a mountain. When engineers calculate the grade of a road. When physicists track projectile motion. They're using tangent.
Let's figure out why it works, why it blows up, and why that explosion is actually the point.
Tangent as the Ratio That Reveals Slope
Start with the unit circle—the circle with radius 1 centered at the origin. Pick any angle θ, measured counterclockwise from the positive x-axis. Draw a line from the origin to the circle at that angle. The coordinates where that line hits the circle are (cos θ, sin θ).
So far, standard. But now: what happens when you draw a vertical line at x = 1 (the rightmost edge of the circle) and extend your angle line until it crosses that vertical?
That intersection point has a y-coordinate. And that y-coordinate is tan θ.
Here's the geometric punchline: that y-value measures how steep your angle line is. If the angle is small (say, 10°), the line barely rises, and tan(10°) ≈ 0.176. If the angle is 45°, the line rises at exactly a 1:1 slope, and tan(45°) = 1. If the angle approaches 90°, the line gets steeper and steeper, shooting upward without bound.
At exactly 90°, the line is vertical. It never crosses the vertical line at x = 1—or rather, it crosses it "at infinity." That's why tan(90°) is undefined.
But here's the algebraic version of the same insight:
tan θ = sin θ / cos θ
That's it. The tangent is just the ratio of sine to cosine.
At θ = 0°:
- sin(0°) = 0
- cos(0°) = 1
- tan(0°) = 0/1 = 0
At θ = 45°:
- sin(45°) = √2/2 ≈ 0.707
- cos(45°) = √2/2 ≈ 0.707
- tan(45°) = (√2/2) / (√2/2) = 1
At θ = 60°:
- sin(60°) = √3/2 ≈ 0.866
- cos(60°) = 1/2 = 0.5
- tan(60°) = (√3/2) / (1/2) = √3 ≈ 1.732
At θ = 89°:
- sin(89°) ≈ 0.9998
- cos(89°) ≈ 0.0175
- tan(89°) ≈ 57.29
At θ = 90°:
- sin(90°) = 1
- cos(90°) = 0
- tan(90°) = 1/0 = undefined
You're dividing by zero. The ratio explodes.
Why Tangent Blows Up (And Why That's Not a Problem)
Division by zero isn't a glitch in mathematics—it's a signal. It tells you that something has crossed a boundary where the model breaks down. In this case, the boundary is simple: you're asking for the slope of a vertical line.
Slope is "rise over run"—the change in y divided by the change in x. For a vertical line, the run is zero. You're climbing infinitely steeply with no horizontal movement. The slope isn't a number anymore. It's undefined.
And that's what tangent captures. As the angle approaches 90°, the tangent value grows without bound. It's telling you: "This line is getting steeper than any finite number can describe."
Then something beautiful happens. At 91°, you've crossed over the vertical barrier. Now your line is tilted backward, sloping downward to the left. The tangent function doesn't stay infinite—it jumps to negative infinity and starts climbing back toward zero.
The graph of tan(θ) looks like this:
- From 0° to 90°: climbs from 0 to +∞
- At 90°: vertical asymptote (undefined)
- From 90° to 180°: climbs from -∞ to 0
- At 270°: vertical asymptote again
- Repeats every 180°
The function is periodic with period 180° (or π radians). But unlike sine and cosine, which oscillate smoothly between -1 and +1, tangent oscillates between negative infinity and positive infinity. It's unbounded, discontinuous, and perfectly predictable.
Tangent and Slope: The Deep Connection
Here's where tangent becomes indispensable. If you have a line that makes an angle θ with the horizontal, the slope of that line is m = tan θ.
Why? Because slope is rise over run, and in a right triangle with angle θ:
- Rise = opposite side = sin θ (on the unit circle)
- Run = adjacent side = cos θ
- Slope = rise/run = sin θ / cos θ = tan θ
This means:
- A 0° line (horizontal) has slope tan(0°) = 0. Flat.
- A 45° line has slope tan(45°) = 1. For every unit you move right, you go up 1 unit.
- A 30° line has slope tan(30°) = 1/√3 ≈ 0.577. Gentle incline.
- A 60° line has slope tan(60°) = √3 ≈ 1.732. Steep.
- A 90° line has slope tan(90°) = undefined. Vertical wall.
This is why calculus uses tangent to describe instantaneous rates of change. The derivative of a function at a point is the slope of the tangent line (yes, that "tangent" comes from the same root—it's the line that touches the curve at exactly one point). And the slope of that tangent line? Often expressed using the tangent function when dealing with angular rates of change.
Applications: Where Tangent Shows Up
1. Surveying and Angles of Elevation
You're standing 100 meters from the base of a building. You tilt your head up at a 60° angle to see the top. How tall is the building?
The angle of elevation is 60°. The distance from you to the building is the adjacent side of a right triangle. The height of the building is the opposite side. You want opposite, and you know adjacent and the angle.
tan(60°) = opposite / adjacent √3 = height / 100 height = 100√3 ≈ 173.2 meters
Surveyors use this constantly. If you can measure an angle and a distance, tangent gives you heights, depths, widths—anything you can't measure directly.
2. Road Grades and Slopes
A road sign says "6% grade." What does that mean?
It means for every 100 units you travel horizontally, you rise (or fall) 6 units. That's a slope of 6/100 = 0.06.
What angle is that?
tan(θ) = 0.06 θ = arctan(0.06) ≈ 3.43°
Most mountain roads are 6-10% grade. That's only 3-6 degrees. But it feels steep because human perception of slope is nonlinear. A 45° slope (100% grade) is the angle where you're climbing as much as you're moving forward—it's a scramble, not a road.
The steepest street in the world (Baldwin Street in New Zealand) has a grade of 35%, or about 19°. Still not even close to vertical. But it feels like a wall.
3. Projectile Motion
When you throw a ball at an angle θ with initial velocity v₀, the horizontal and vertical components of the velocity are:
- Horizontal: v₀ cos θ
- Vertical: v₀ sin θ
The ratio of vertical to horizontal velocity is: (v₀ sin θ) / (v₀ cos θ) = tan θ
This ratio determines the initial trajectory slope. If you throw at 45°, tan(45°) = 1, so you're launching with equal horizontal and vertical velocity components. This gives the maximum range (for a given initial speed in a vacuum).
If you throw at 60°, tan(60°) = √3 ≈ 1.732, so you're launching much steeper—more height, less range.
If you throw at 30°, tan(30°) = 1/√3 ≈ 0.577, so you're launching flatter—less height, but still decent range.
The angle that maximizes range is 45° because sin(2θ) is maximized when θ = 45°. But the tangent function tells you the immediate direction of flight.
The Inverse Tangent: From Slope Back to Angle
If tangent converts angles to slopes, the inverse tangent (arctan, or tan⁻¹) converts slopes back to angles.
You have a ramp with rise 3 meters and run 4 meters. What's the angle?
Slope = 3/4 = 0.75 θ = arctan(0.75) ≈ 36.87°
Most calculators have an arctan button. It's the function that answers: "What angle has this tangent value?"
But there's a subtlety. Because tangent repeats every 180°, arctan has to pick one answer. By convention:
- arctan(x) returns an angle between -90° and +90° (or -π/2 and π/2 radians).
If you feed it tan(200°) = tan(20°), it will return 20°, not 200°. You have to use context to figure out which cycle you're in.
Why Tangent Matters Beyond Triangles
Here's the thing: tangent isn't just a trig function for solving right triangles. It's a slope function. And slope is everywhere.
In calculus, the derivative measures the slope of a curve at a point. When you're dealing with parametric curves, polar coordinates, or angular velocity, tangent shows up constantly.
In physics, tan(θ) appears in:
- Friction: The angle at which an object starts to slide down an inclined plane depends on tan(θ) = coefficient of friction.
- Optics: The tangent of the angle of refraction relates to the refractive index via Snell's law (though that's more directly a sine relationship, tangent simplifies certain geometries).
- Engineering: Stress, strain, and deformation often involve angular changes, and tangent linearizes those relationships near small angles.
In complex analysis, the tangent function extends to the complex plane, where it's written as: tan(z) = sin(z) / cos(z)
And it turns out that tan(z) has poles (singularities) wherever cos(z) = 0. Those poles are at z = π/2 + nπ for integer n. The function explodes at these points—not because the math is broken, but because the geometry demands it.
The Tangent Identity You Actually Use
There's one tangent identity that shows up constantly in calculus and physics:
1 + tan²(θ) = sec²(θ)
Where sec(θ) = 1/cos(θ) is the secant function.
Why does this matter? Because when you differentiate tan(θ), you get:
d/dθ [tan(θ)] = sec²(θ)
This is the derivative of tangent. And since sec²(θ) = 1 + tan²(θ), you can write:
d/dθ [tan(θ)] = 1 + tan²(θ)
This shows up in integration, differential equations, and anywhere you're tracking angular rates of change.
The proof of the identity is simple:
- Start with sin²(θ) + cos²(θ) = 1 (the Pythagorean identity)
- Divide both sides by cos²(θ):
- sin²(θ)/cos²(θ) + cos²(θ)/cos²(θ) = 1/cos²(θ)
- tan²(θ) + 1 = sec²(θ)
Done. One line.
Tangent in the Wild: Navigation and Bearings
If you're navigating by compass, bearings are angles measured clockwise from north. A bearing of 0° is due north. A bearing of 90° is due east. A bearing of 180° is due south.
If you walk on a bearing of θ for a distance d, your displacement in the east-west direction is: Δx = d sin(θ)
And your displacement in the north-south direction is: Δy = d cos(θ)
(Note: This uses the convention where 0° is north, so the roles of sine and cosine are swapped from the usual Cartesian setup.)
The ratio of east-west to north-south displacement is: Δx / Δy = (d sin θ) / (d cos θ) = tan(θ)
So if you walk on a bearing of 45°, tan(45°) = 1, meaning you move equally east and north. If you walk on a bearing of 60°, tan(60°) = √3, meaning you move √3 times as far east as you do north.
This is how ships and aircraft compute cross-track error—the tangent of the bearing angle tells you the ratio of lateral drift to forward progress.
The Hyperbolic Tangent: Tangent's Twin in a Different Geometry
There's a cousin to the regular tangent function called the hyperbolic tangent, written tanh(x).
Where tan(θ) = sin(θ) / cos(θ), the hyperbolic version is:
tanh(x) = sinh(x) / cosh(x)
Where:
- sinh(x) = (eˣ - e⁻ˣ) / 2 (hyperbolic sine)
- cosh(x) = (eˣ + e⁻ˣ) / 2 (hyperbolic cosine)
So: tanh(x) = (eˣ - e⁻ˣ) / (eˣ + e⁻ˣ)
Unlike tan(θ), which oscillates between -∞ and +∞, tanh(x) is bounded between -1 and +1. As x → ∞, tanh(x) → 1. As x → -∞, tanh(x) → -1.
This function shows up in:
- Neural networks: The tanh activation function squashes inputs to the range (-1, 1), making it useful for gradient-based learning.
- Special relativity: The velocity addition formula involves tanh when dealing with rapidities (a measure of velocity that adds linearly).
- Differential equations: Solutions to certain PDEs (like the heat equation on an infinite domain) involve tanh as the transition function between boundary conditions.
The hyperbolic tangent is tangent's sibling in a geometry where circles are replaced by hyperbolas. Same structure, different curvature.
Why "Undefined" Is the Right Answer
When students ask, "Why is tan(90°) undefined?" the usual answer is: "Because you can't divide by zero."
True. But here's the deeper reason: tan(90°) is asking for the slope of a vertical line, and vertical lines don't have finite slopes.
A vertical line doesn't fail to have a slope because of a technicality. It genuinely doesn't have a number you can assign to it. The rise is finite, but the run is zero. The ratio is infinite in the limit, but infinity isn't a number—it's a direction of unboundedness.
This is why mathematicians say "undefined" rather than "infinite." The tangent function doesn't equal infinity at 90°. It approaches +∞ from the left and -∞ from the right. There's a discontinuity, a break in the fabric of the function. The function isn't defined there because the geometry doesn't support a finite value.
And that's fine. Not every question has a numerical answer. Some questions point to a boundary where the framework shifts. Vertical lines live in that boundary space. The tangent function honors that by refusing to give them a number.
The Big Sentence
Tangent is the function that converts angles into slopes and explodes at the exact moment the geometry demands it.
Further Reading
- Stewart, James. Calculus: Early Transcendentals (8th ed.). Cengage Learning, 2015.
- Chapter 1 covers trigonometric functions and their properties, including tangent and its relationship to slope.
- Spivak, Michael. Calculus (4th ed.). Publish or Perish, 2008.
- A rigorous introduction to calculus with deep treatment of trigonometric functions and limits.
- Strang, Gilbert. Calculus (3rd ed.). Wellesley-Cambridge Press, 2017.
- Clear explanations of derivatives of trig functions, including the tangent derivative and its applications.
- Serway, Raymond A., and John W. Jewett. Physics for Scientists and Engineers (9th ed.). Cengage Learning, 2014.
- Applications of tangent in projectile motion, inclined planes, and vector decomposition.
- Rudin, Walter. Principles of Mathematical Analysis (3rd ed.). McGraw-Hill, 1976.
- For the mathematically inclined: rigorous treatment of trigonometric functions as infinite series and their analytic properties.
Part 4 of the Trigonometry series.
Previous: Cosine Explained: The Horizontal Partner to Sine Next: The Unit Circle: Why Radius 1 Changes Everything
Comments ()