Calculating a tangent line by hand helps you understand the relationship between a function and its derivative. Follow this step-by-step guide to find the equation of a line that touches a curve at a single point. For a quick solution, use our Tangent Line Calculator — but working through the steps manually builds intuition.
You'll Need
- A function f(x) (e.g., polynomial, rational, trigonometric)
- A specific point of tangency (a, f(a))
- The derivative of the function: f'(x)
- Point-slope or slope-intercept formula
- Basic algebra skills (substitution, simplification)
Step-by-Step Method
These steps work for any differentiable function. For more on the underlying math, see our What Is a Tangent Line? page.
- Find the y-coordinate of the point
Plug the x-coordinate a into the original function to get y = f(a). This gives you the point (a, f(a)). - Compute the derivative
Use differentiation rules (power rule, product rule, chain rule, etc.) to find f'(x). The derivative gives the slope at any point. - Evaluate the derivative at x = a
Substitute a into f'(x) to get the slope m = f'(a). - Choose a line form
Two common forms are the point-slope form: y - y₀ = m(x - x₀), and slope-intercept form: y = mx + b. - Plug in known values
Use the point (a, f(a)) and slope m into your chosen form. - Simplify to final equation
Rearrange into the desired format (point-slope, slope-intercept, or standard).
Worked Example 1: Polynomial Function
Find the tangent line to f(x) = 2x² - 3x + 1 at x = 2.
Step 1: Find the point
f(2) = 2(2)² - 3(2) + 1 = 8 - 6 + 1 = 3. Point: (2, 3).
Step 2: Compute the derivative
Using power rule: f'(x) = 4x - 3.
Step 3: Evaluate slope at x = 2
m = f'(2) = 4(2) - 3 = 8 - 3 = 5.
Step 4 & 5: Use point-slope form
y - 3 = 5(x - 2).
Step 6: Simplify
y - 3 = 5x - 10 → y = 5x - 7. The tangent line is y = 5x - 7.
Worked Example 2: Trigonometric Function
Find the tangent line to f(x) = sin(x) at x = π/4. See our page on trigonometric tangent lines for more examples.
Step 1: Point
f(π/4) = sin(π/4) = √2/2 ≈ 0.7071. Point: (π/4, √2/2).
Step 2: Derivative
f'(x) = cos(x).
Step 3: Slope
m = cos(π/4) = √2/2 ≈ 0.7071.
Step 4 & 5: Point-slope
y - √2/2 = (√2/2)(x - π/4).
Step 6: Simplify (optional)
Distribute: y = (√2/2)x - (√2/2)(π/4) + √2/2 = (√2/2)x + √2/2(1 - π/4). Numerically: y ≈ 0.7071x + 0.7071(1 - 0.7854) ≈ 0.7071x + 0.1518.
Common Pitfalls
- Forgetting to evaluate the derivative at the point: The slope must come from f'(a), not the derivative formula in general.
- Using the wrong point: Always verify the y-coordinate from the original function, not from some other source.
- Algebra errors when simplifying: Double-check distribution and combining like terms.
- Neglecting the point-slope form: Starting with slope-intercept can hide mistakes; point-slope is safer.
- Mishandling trigonometric or rational functions: When dealing with
sin,cos, or rational expressions, ensure you apply the chain rule correctly.
Understanding the Result
The slope of the tangent line tells you the instantaneous rate of change at that point. A steeper slope means faster change. Practice with different functions to gain confidence, and check your work with our Tangent Line Calculator.
Try the free Tangent Line Calculator ⬆
Get your A tangent line touches a curve at a single point and represents the instantaneous rate of change of the function at that point. result instantly — no signup, no clutter.
Open the Tangent Line Calculator