Enter a function and point
Enter a supported function of x and a real input where the function is defined and differentiable.
At x = 2
Evaluate the derivative
- 1Locate the point on the curve
Evaluate the function at a = 2.
- 2Differentiate the function
- 3Evaluate the derivative to get the slope
The tangent slope is the derivative evaluated at the selected input.
What is the slope of a tangent?
The slope of the tangent to y = f(x) at x = a is the derivative evaluated at that input, f′(a). It measures the function’s instantaneous rate of change there. This calculator differentiates a supported function, evaluates the derivative at your selected x-value, and shows the corresponding point on the curve.
The derivative is the limit of secant slopes as the second point approaches the first. At x = a, that limit is the tangent slope f′(a), provided the derivative exists and is finite.
The function must be defined at x = a and differentiable there. At a corner, cusp, discontinuity, or vertical tangent, a finite tangent slope may not exist.
How to use the calculator
- Enter a function f(x) using the math field or standard notation such as x^2 + 3x + 1.
- Enter the x-coordinate a where you want the slope.
- Differentiate the function to obtain f′(x).
- Evaluate f′(a); this value is the tangent slope.
- Read the point (a, f(a)) and the direction indicated by the sign of the slope.
Worked example
Problem: Find the tangent slope of f(x) = x² + 3x + 1 at x = 2.
Method: Differentiate to get f′(x) = 2x + 3, then substitute a = 2.
Result: f′(2) = 2(2) + 3 = 7.
At the point (2, 11), the curve is rising by about 7 output units for each input unit locally.
When is tangent slope undefined?
- A corner such as |x| at zero has no single tangent slope because its left and right slopes differ.
- A vertical tangent has unbounded slope and cannot be reported as a finite real number.
- A function outside its real domain has no curve point at the requested input.
- For trigonometric functions, inputs use radians.
Common mistakes
- Using f(a) instead of f′(a) as the tangent slope.
- Substituting the point into the original function but forgetting to differentiate first.
- Treating a zero derivative as proof of a maximum or minimum.
- Ignoring domain restrictions or nondifferentiable points.
Frequently asked questions
How do I find the slope of a tangent line?
Differentiate f(x), then evaluate f′(a) at the chosen x-coordinate a.
Is tangent slope the same as the derivative?
At a differentiable point x = a, the tangent slope is the derivative value f′(a).
What does a zero tangent slope mean?
The tangent is horizontal. Further analysis is needed to decide whether the point is an extremum or a stationary inflection.
Can a tangent slope be undefined?
Yes. A corner, cusp, discontinuity, or vertical tangent can prevent a finite derivative from existing.
References
- OpenStax, Rice University: Calculus Volume 1 — The Derivative as a Function — The derivative as an instantaneous rate of change and the slope of a tangent line.