Skip to content

Derivative Calculator

Get the derivative of any function with each rule explained — power, product, quotient, chain, trig, exponential and logarithmic rules — plus higher-order and partial derivatives.

Your problem will appear here as you type.

The derivative rules this calculator applies

RuleFormulaExample
Powerd/dx xⁿ = n·xⁿ⁻¹d/dx x⁵ = 5x⁴
Product(uv)′ = u′v + uv′d/dx x² sin x = 2x sin x + x² cos x
Quotient(u/v)′ = (u′v − uv′)/v²d/dx sin x / x = (x cos x − sin x)/x²
Chaind/dx f(g(x)) = f′(g(x))·g′(x)d/dx sin(3x²) = 6x cos(3x²)
Exponentiald/dx eˣ = eˣd/dx e^(3x) = 3e^(3x)
Logarithmd/dx ln x = 1/xd/dx ln(x² + 1) = 2x/(x² + 1)

Worked example: the product rule

Differentiate f(x) = x² sin(x)

  1. Let u = x² and v = sin x. Then u′ = 2x and v′ = cos x.
  2. Product rule: f′ = u′v + uv′.
  3. Substitute: f′ = 2x·sin x + x²·cos x.

Answer: f′(x) = 2x sin(x) + x² cos(x)

Worked example: the chain rule

Forgetting the inner derivative is the most common chain rule mistake. If your answer to d/dx sin(3x²) is just cos(3x²), you have missed the factor 6x.

Differentiate f(x) = sin(3x²)

  1. The outer function is sin(u) and the inner function is u = 3x².
  2. Derivative of the outer function: cos(u). Derivative of the inner function: 6x.
  3. Multiply them: cos(3x²) · 6x.

Answer: f′(x) = 6x cos(3x²)

Slope at a point and the tangent line

Tangent to f(x) = x² at x = 3

  1. f′(x) = 2x, so the slope at x = 3 is f′(3) = 6.
  2. The point on the curve is (3, f(3)) = (3, 9).
  3. Point-slope form: y − 9 = 6(x − 3), which simplifies to y = 6x − 9.

Answer: Slope 6, tangent line y = 6x − 9

Higher-order derivatives

Differentiate again to go up an order. For f(x) = x⁴ the first derivative is 4x³, the second is 12x², and the third is 24x. The second derivative tells you about concavity: positive means the graph curves upward.

Partial derivatives

With more than one variable, treat the others as constants. For f(x, y) = x²y + y³ the partial derivative with respect to x is ∂f/∂x = 2xy, and with respect to y it is ∂f/∂y = x² + 3y². Choose the variable in the options.

Frequently asked questions

How do I find the second derivative?

Set the order to 2 in the options, or type “second derivative of …”.

Can I get the slope at a point?

Enter a value in “at x =”. You'll get f′ at that point and the equation of the tangent line.

What is the derivative of a constant?

Zero. A constant does not change, so its rate of change is 0.

How do I differentiate xˣ?

Use logarithmic differentiation: write y = xˣ, take ln of both sides to get ln y = x ln x, and differentiate to get y′ = xˣ(ln x + 1).

Other calculators