Tangent Line Calculator
Find the equation of a tangent line to a polynomial curve at a given point. Includes derivative calculation and a visual graph.
About
The tangent line to a curve at a given point is the straight line that "just touches" the curve at that point. In calculus, the slope of this line is determined by the derivative of the function, denoted as f'(x).
This tool automates the process: it takes a polynomial function f(x) and an x-coordinate, computes the derivative to find the slope m, calculates the y-coordinate, and uses the point-slope form to generate the final linear equation y = mx + b. It visualizes the intersection on a canvas graph.
Formulas
1. Find Derivative: Compute f'(x) using the Power Rule:
2. Find Slope: Evaluate m = f'(x0).
3. Point-Slope Form: Use y0 = f(x0):
Reference Data
| Function f(x) | Point x | Derivative f'(x) | Slope (m) | Tangent Equation |
|---|---|---|---|---|
| x2 | 1 | 2x | 2 | y = 2x − 1 |
| x3 | 1 | 3x2 | 3 | y = 3x − 2 |
| 2x2 + x | 0 | 4x + 1 | 1 | y = x |
| x2 − 4 | 2 | 2x | 4 | y = 4x − 8 |
| x4 | -1 | 4x3 | -4 | y = -4x − 3 |
| 5 | 3 | 0 | 0 | y = 5 |
| x | 5 | 1 | 1 | y = x |
| -x2 | 2 | -2x | -4 | y = -4x + 4 |