Tangent line calculator

Find the tangent at a finite point where the function and derivative are defined. Vertical tangents and absolute-value one-sided analysis are not supported.

Dedicated workspace

Tangent line calculator

Engine

Use ^ for powers and parentheses for functions. You can enter sec(x), csc(x), cot(x) and arctan(x) directly; trigonometric inputs use radians.

Find the tangent at a finite point where the function and derivative are defined. Vertical tangents and absolute-value one-sided analysis are not supported.

Uses the existing free allowance and calculation API. Invalid or unsupported inputs are not charged. No AI request is sent by calculating.

Input help and supported methods

Keep the original question visible. Confirm the variable and the live preview before calculating. Use ^(1/2) for a square root and explicit parentheses for function arguments.

Choose the differentiation variable and order. Symbols other than the selected variable are constants. For an equation containing y, use implicit differentiation.

Read the method

Try one. See the steps.

Click to fill the input. Calculation starts only when you choose Solve.

Live problem preview

This tool evaluates a derivative at one point. For the derivative function itself, open the general derivative calculator. General derivative calculator

How do you find the equation of a tangent line?

At a differentiable point x=a, find the point (a,f(a)) and slope f′(a). Substitute them into y=f(a)+f′(a)(x−a).

What information is needed?

Enter f(x), the variable and a finite point a. The point field is the horizontal coordinate, not the value f(a).

For f(x)=x^2 at a=1, the point is (1,1) and the slope is 2.

How do you use the workbench?

Type the function, set the point and calculate. Inspect the task preview to make sure it names the intended point.

Changing the function, variable or point hides the old answer. Calculate again before treating an answer as a result for the new task.

Where does the line formula come from?

Differentiate the function to obtain f′(x), evaluate f′(a), then use point–slope form.

For x^2 at a=1, y−1=2(x−1), which simplifies to y=2*x−1. The line must pass through the chosen point.

How can you check the line?

Substitute x=a into the line and confirm that it returns f(a). Its slope must equal the derivative at a.

The line is a local approximation near a, not a replacement for the function over the whole domain.

Distinguish tangent, secant and horizontal lines

A secant uses two points and an average rate of change. A tangent uses the derivative at one point. A horizontal tangent has slope zero, so its equation is y=f(a).

For f(x)=x^3 at a=2, the point is (2,8) and the slope is 12. Point–slope form gives y=12*x−16.

A useful check before you trust the answer

Before interpreting the line, check that the function is defined and differentiable at the chosen point. A finite output is not a global smoothness proof.

Worked examples to compare and try

These are teaching references with complete conditions. Open an example to prefill the workbench; calculation starts only when you choose to submit.

f(x)=x2,a=1,y=2x−1f(x)=x^2,\quad a=1,\quad y=2x-1

For x^2 at a=1, f(a)=1 and f′(a)=2, giving y=2*x−1.

Try this problem
f(x)=x3,a=2,y=12x−16f(x)=x^3,\quad a=2,\quad y=12x-16

For x^3 at a=2, f(a)=8 and f′(a)=12, giving y=12*x−16.

Try this problem
f(x)=sin⁡x,a=0,y=xf(x)=\sin x,\quad a=0,\quad y=x

For sin(x) at a=0, f(a)=0 and f′(a)=1, giving y=x.

Try this problem

Supported scope and conditions

This tool returns finite-slope tangent lines at finite points supported by the existing engine. Vertical tangents are not expressible in this slope form.

Corners, discontinuities and one-sided tangent questions need separate analysis. An error or unsupported status should not be replaced with a guessed line.

Frequently asked questions

What do I enter in the point field?

Enter a, the coordinate of the independent variable. For a tangent at x=2, enter 2, not f(2).

Can it find vertical tangents?

No. A vertical line cannot be represented by y=f(a)+f′(a)(x−a) with a finite slope.

Is a zero slope an error?

No. At a differentiable point with f′(a)=0, the tangent is horizontal: y=f(a).

Does the tangent equal the function everywhere?

Usually not. It matches the function’s value and slope at the chosen point and approximates it locally.

Check the result and its conditions

CalculusMate applies deterministic rules to supported derivatives, integrals and limits. Read the result together with its variable, domain and verification status. A rule that is not supported does not make the mathematical problem impossible.

  1. Enter the expression and choose the variable; provide bounds only for a definite integral.
  2. Check domain restrictions and sign intervals. In real arithmetic, sqrt(g²)=|g|, so the absolute value cannot simply be removed.
  3. Read the calculation steps and status. A numerical approximation is different from an independently checked symbolic result.
Three reference examples from the main calculators
TaskExpressionAnswerConditions
Derivativex3x^{3}3 x23\,x^{2}Real x
Indefinite integral2 x2\,xx2+Cx^{2} + CC is an arbitrary constant
Limit as x → 0sin⁡xx\frac{\sin x}{x}11Radians; x approaches 0, not substitution at 0

Mathematical references

These OpenStax textbook sections explain the mathematical rules and conditions relevant to this page. They are references for the mathematics, not certification of this software or its supported methods.

Maintained by CalculusMate · Guide updated: · Calculation and verification methodology