Derivative calculator with steps

A derivative calculator that shows its working: type in a function and it differentiates it step by step, naming each rule — sum, product, quotient and chain rule. It also finds second and third derivatives and the value of the derivative at a point.

Examples:
Order of derivative

Type it as you would write it: x^2 or x², sqrt(x) or √x, e^x, ln x, sin(2x), tan x. You can leave out the multiplication sign: 2x, 3sin x. Any single letter can be the variable.

Derivative
y′ = 2x·sin x + x²·cos x

The first derivative of y = x²·sin x is 2x·sin x + x²·cos x.

Step-by-step working

  1. The function as the calculator reads it:

    y = x²·sin x
  2. Product rule: (uv)′ = u′v + uv′, where u = x², v = sin x.

    y′ = (x²)′·sin x + x²·(sin x)′= 2x·sin x + x²·cos x

Formula

(u · v)′=u′v + uv′

This is the rule the calculator applies to your function first: the power, sum, product, quotient or chain rule. u and v are functions of x; n and C are numbers.

How we got there

(x²·sin x)′ = 2x·sin x + x²·cos x

The answer is written the way you would write it on paper: like terms collected, fractions kept as fractions and roots written with √.

How to differentiate by hand

  1. Identify the type of function

    y = x²·sin x is a product of two functions: u = x² and v = sin x. The type of function decides which rule you use.

  2. Apply the rule

    For a product, (uv)′ = u′v + uv′, so y′ = (x²)′·sin x + x²·(sin x)′.

  3. Use the standard derivatives

    (x²)′ = 2x and (sin x)′ = cos x, so y′ = 2x·sin x + x²·cos x.

  4. Chain rule: multiply by the derivative of the inside

    (sin(2x + 1))′ = cos(2x + 1)·(2x + 1)′ = 2cos(2x + 1).

Your derivatives not matching the mark scheme? Find a maths tutor for Year 12

Frequently asked questions

Type the function into the box, for example x^2*sin(x) or x²·sin x. The derivative calculator immediately shows the derivative and the working: which rule was applied at each step and what it gave. For integrals and limits, use the other calculus calculators in this section.

Polynomials, powers with any exponent, roots, eˣ and aˣ, the logarithms ln, log (base 10) and logₐ, sin, cos, tan and cot, the inverse functions arcsin, arccos, arctan and arccot, and the modulus |x|. You can combine them however you like. sec x and cosec x are not recognised yet — write them as 1/cos x and 1/sin x.

Use the chain rule: differentiate the outer function, leaving what is inside it unchanged, then multiply by the derivative of the inside: (ln(x² + 1))′ = 1/(x² + 1)·2x = 2x/(x² + 1).

With the quotient rule, (u/v)′ = (u′v − uv′)/v². For y = x/(x² + 1): y′ = (x² + 1 − x·2x)/(x² + 1)² = (1 − x²)/(x² + 1)².

Yes. Choose y″ or y‴ and the calculator differentiates again, showing the steps. To get the gradient at a particular point, type a number such as 2 or π/4 into the ‘Point x₀’ field.

Powers with ^ or ², ³: x^3, x^(1/2), 2^x. Roots as sqrt(x) or √x. π as pi or π, and e is just e. You can leave out the multiplication sign: 2x, 3sin x.

Struggling with differentiation?

Book a free introductory lesson with a Mathema tutor. 30 minutes online, no commitment — we find the gap and the plan to close it.