How to Find Horizontal and Vertical Tangent Lines
Find where a curve has a horizontal tangent (f'(x) = 0) or a vertical tangent (slope undefined), including implicit and parametric curves, with examples.
Where Is the Tangent Line Horizontal?
Set the derivative to zero. That is the only move. A horizontal tangent line occurs at any x where f'(x) = 0, provided the function is defined there. The slope is the derivative, and a slope of zero means the line is flat, neither rising nor falling as you move to the right.
But zero slope does not automatically mean the function has peaked or bottomed out. The derivative can be zero at a point where the curve simply pauses before continuing in the same direction, an inflection point with a horizontal tangent. To confirm an extremum, use the second derivative test or a sign chart. OpenStax Calculus Vol. 1 section 4.3 defines a critical point as anywhere f'(c) = 0 or f'(c) is undefined; a horizontal tangent is always a critical point, but not every critical point is an extremum.
The failure case: forgetting to check continuity and differentiability. If the function has a corner or a cusp at the candidate x, the derivative never equals zero because it does not exist. The calculator's nDeriv( function may report zero at a cusp (such as f(x)=|x| at x=0), but that is a numeric artifact, not a real horizontal tangent.
How to Find Points With Horizontal Tangent
To find points with horizontal tangent for an explicit function y = f(x), follow three steps. First, compute f'(x) using the appropriate rule: power, product, chain, or trigonometric. Second, solve the equation f'(x) = 0. Third, plug each solution back into the original function to get the y-coordinate. The result is a list of points (x, f(x)) where the tangent line is horizontal.
For a cubic like f(x) = x³ − 3x² + 2, the derivative is f'(x) = 3x² − 6x. Set 3x² − 6x = 0, factor to 3x(x − 2) = 0, giving x = 0 and x = 2. The points are (0, 2) and (2, −2). The horizontal tangent at x = 0 is a local maximum; at x = 2, local minimum. Verify this by the second derivative: f''(x) = 6x − 6. At x = 0, f''(0) = −6 (negative, so local max). At x = 2, f''(2) = 6 (positive, so local min).
If the derivative factors into a quadratic that does not cross zero, such as f'(x) = x² + 1, there are no real solutions and therefore no horizontal tangents. That is the correct answer, not a mistake in the problem.
One common error: solving f'(x) = 0 but forgetting the domain of f. If f(x) = ln(x) and f'(x) = 1/x, the equation 1/x = 0 has no solution, so ln(x) has no horizontal tangent anywhere. The function is defined only for x > 0, and its derivative is never zero there.
Vertical Tangent Line: Derivative Undefined, Function Continuous
A vertical tangent line occurs where the derivative is infinite, technically, where the limit of secant slopes goes to +∞ or −∞. The line itself has equation x = a, which cannot be written in slope-intercept form. The condition: the function must be continuous at x = a, and f'(x) must approach ±∞ from both sides as x approaches a.
The classic example is f(x) = x^(1/3) at x = 0. The derivative is f'(x) = (1/3)x^(−2/3).The function is continuous at 0 (∛0 = 0), so the curve has a vertical tangent line at the origin. The limit of secant slopes is unbounded, and no finite derivative exists.
Do not confuse a vertical tangent with a discontinuity or a cusp. At a cusp, the left-hand and right-hand limits of the derivative go to opposite infinities (e.g.At a jump discontinuity, there is no tangent line because the function is not continuous. A vertical asymptote is also not a vertical tangent; the curve does not pass through the asymptote.
When you use a calculator's DRAW Tangent( command on a curve with a vertical tangent, it may draw nothing or draw an incorrect line. The calculator does not check the limit behavior; it uses a numeric derivative that is undefined at that point and may produce a false slope of zero or a large number. Always verify analytically.
Tangent Line Parallel to a Given Line
To find where the tangent line is parallel to a given line, match the slopes. A line expressed as y = mx + b has slope m. The condition for the tangent to be parallel is f'(x) = m. Solve for x, then find the corresponding y from the original function. This is the direct answer to tangent line parallel to a given line problems.
For example, given f(x) = x² and the line y = 4x − 7, set f'(x) = 2x = 4, so x = 2. The point is (2, 4) on f(x). The tangent line there is y − 4 = 4(x − 2), or y = 4x − 4. It is parallel to the given line because both have slope 4, but they are distinct lines because the y-intercepts differ.
If the given line is in standard form Ax + By = C, solve for y first: y = (−A/B)x + C/B, so m = −A/B. Then proceed as above. The failure case: the given line may be vertical (x = constant). A vertical line has undefined slope. To have a tangent parallel to it, you need a vertical tangent on the curve; solve for where f'(x) is infinite, following the vertical tangent conditions above.
Worked Examples: Cubic, Cube Root, and Circle
Cubic: f(x) = x³ − 3x² + 2
Derivative: f'(x) = 3x² − 6x. Set equal to zero: 3x(x − 2) = 0 → x = 0, x = 2. Points: (0, 2) and (2, −2). The horizontal tangents at these points are critical points. Second derivative test: f''(0) = −6 (local max), f''(2) = 6 (local min). The curve is increasing on (−∞, 0) and (2, ∞), decreasing on (0, 2).
Cube Root: f(x) = x^(1/3)
Derivative: f'(x) = (1/3)x^(−2/3). This is never zero.
Circle: x² + y² = 25
Use implicit differentiation: 2x + 2y(dy/dx) = 0 → dy/dx = −x/y. Horizontal tangents occur where dy/dx = 0, so x = 0. Plug into circle equation: 0 + y² = 25 → y = ±5. Points: (0, 5) and (0, −5).Then x² + 0 = 25 → x = ±5. Points: (5, 0) and (−5, 0). This matches the geometric understanding of a circle: horizontal tangents at top and bottom, vertical tangents at left and right.
For the circle, the curve fails the vertical line test locally at the vertical tangents; y is not a function of x there. Implicit differentiation still gives the correct slope because it evaluates dy/dx at the point, regardless of whether y can be written as a single function of x. OpenStax Calculus Vol. 1 section 3.8 covers this method in detail.
Horizontal Tangents and Local Maxima and Minima
A horizontal tangent at a point is a candidate for a local extremum, but it is not a guarantee. The derivative being zero means the instantaneous rate of change is zero; the function is flat at that instant. Whether it is a maximum, minimum, or neither depends on the behavior of the function around that point.
For f(x) = x³ at x = 0, the derivative is 3x²; at x = 0, f'(0) = 0. But f(x) = x³ is increasing everywhere (except at x = 0 where it pauses). The point (0, 0) is an inflection point with a horizontal tangent, not an extremum. The second derivative f''(x) = 6x gives f''(0) = 0, which is inconclusive. A sign chart of the first derivative confirms that f'(x) is positive on both sides of 0 (positive for x < 0 and x > 0), so no change in monotonicity, hence no extremum.
In contrast, f(x) = x² at x = 0 has derivative 2x, zero at x = 0, and the second derivative is 2 (positive), indicating a local minimum. The first derivative changes from negative to positive at x = 0. This is the pattern: a change in sign of f' across the candidate point confirms an extremum; no change means a horizontal inflection point.
The practical takeaway: when you solve f'(x) = 0, always check the behavior of f' just before and after each solution. A calculator's nDeriv( can give a false reading at points that are not differentiable, but for points where f' is truly zero, the sign of f' on either side is the deciding factor.
Parametric and Implicit Versions
For parametric curves defined by (x(t), y(t)), the slope of the tangent line is dy/dx = (dy/dt) / (dx/dt), provided dx/dt ≠ 0. Horizontal tangents occur where dy/dt = 0 and dx/dt ≠ 0. Vertical tangents occur where dx/dt = 0 and dy/dt ≠ 0. If both derivatives are zero at the same t, the curve may have a cusp or self-intersection, and the tangent is indeterminate without further analysis (use limits of dy/dx as t approaches the point).
For an implicit equation F(x, y) = 0, differentiate both sides with respect to x, treating y as a function of x. Solve for dy/dx. Horizontal tangents occur where the numerator of dy/dx is zero (dy/dx = 0). Vertical tangents occur where the denominator of dy/dx is zero, provided the point satisfies the original equation. OpenStax Calculus Vol. 1 section 3.8 provides the full method for implicit differentiation, including how to handle points where both numerator and denominator vanish simultaneously.
For polar curves r = f(θ), convert to parametric form first: x = r cosθ, y = r sinθ. Then apply the parametric slope formula. This avoids the common error of applying the parametric formula directly to r = f(θ) without conversion. The polar tangent formula dy/dx = (r' sinθ + r cosθ) / (r' cosθ − r sinθ) is the result of that conversion, not a separate rule.
Common Questions
What does it mean when the tangent line is horizontal?
It means the derivative at that point is zero. The curve is flat at that instant, neither increasing nor decreasing. This often (but not always) indicates a local maximum or minimum.
How do I find where the tangent line is horizontal on a parametric curve?
Set dy/dt = 0 and ensure dx/dt ≠ 0 at the same t value. Solve for t, then plug back into x(t) and y(t) to get the point.
Can a function have a vertical tangent line and still be differentiable?
No. At a vertical tangent, the derivative is undefined (infinite). The function is continuous, but not differentiable, at that point.
What is the difference between a vertical tangent and a cusp?
A vertical tangent has the same infinite slope from both sides (e.g., x^(1/3) at 0). A cusp has opposite infinities from left and right (e.g., x^(2/3) at 0), so no single tangent line exists.
Why does the tangent line at an inflection point cross the curve?
At an inflection point, the second derivative changes sign, so the curve goes from concave up to concave down (or vice versa) relative to the tangent line. The line crosses the curve at that point.
How do I find a tangent line parallel to a given line?
Compute the slope m of the given line. Solve f'(x) = m for x. The point (x, f(x)) is where the tangent is parallel to the given line.
What if my calculator says the derivative is zero but there is no horizontal tangent?
The calculator's nDeriv( function uses a symmetric difference quotient with a fixed step size. At a cusp or corner, it may report zero because the left and right slopes cancel numerically. Always check differentiability analytically.