Black Friday: 50% off every paid plan with code BF50. Ends 5 December.

See prices

Free tool

Derivative calculator, with every step shown.

Type a function to get its derivative, with each rule named in order: power, product, quotient, chain, exponential and log. Choose the variable and the order, add a point to get the exact slope, the tangent line and the normal line, or type an equation like x^2 + y^2 = 25 for implicit differentiation. Test your own answer, copy it as LaTeX, and see the function and its derivative drawn together. Exact answers, and no sign-up.

Need a custom tool, app or website? Contact us 

Examples

Type like you would write it: 2x, x^2, sin x, sqrt(x), e^x, pi. Bars work for absolute value, like |x|. The line "Read as" shows how it was understood. log means base 10; ln is the natural log; log2(x) and log_5(x) work too. A leading "f(x) =" or "d/dx" is ignored.

Worked out in your browser. Nothing is sent anywhere.

The method

Differentiation, one rule at a time.

01 / Rules

Rules named

Each step says which rule was used: power, product, quotient, chain, exponential or a standard derivative.

02 / Exact

Exact answers

Results stay exact, like 1/2 or ln(2), and show a decimal only next to a value at a point.

03 / Check

Graph included

The function and its derivative are drawn together, so you can see the slope become the second curve.

Guide

How to find a derivative, with worked examples.

A derivative calculator finds the derivative of a function: a new function that tells you the slope of the original at every point. This one shows the working, naming each rule as it is used, so you can follow it and check your own homework. It handles sums, products, quotients, powers, roots, exponentials, logs, trig and inverse trig functions, hyperbolic functions and absolute value, up to the tenth derivative. It also gives the exact value at a point with the tangent and normal lines, partial derivatives, implicit differentiation for an equation in x and y, and a test for your own answer.

How to use the derivative calculator

  1. Type your function in Function, for example x^3 sin(x). Multiplication can be left out, so 2x and x sin x both work. Use the symbol buttons to add a power, a root, pi or a function.
  2. Check the line that starts "Read as". It shows the function the way the calculator understood it. If a bracket is in the wrong place, fix it here.
  3. Leave Variable on Auto, or choose the letter you are differentiating with respect to. Other letters are treated as constants.
  4. Pick the Order: 1st for the slope, 2nd for how the slope changes, and so on up to the 10th.
  5. To get the slope at one place, type a number or an expression like pi/4 in Value at a point. You also get the tangent line and the normal line there.
  6. To test your own work, type your answer in Check your own answer.
  7. Read the answer, read the steps below it, and use Copy answer, Copy LaTeX or Copy link. The link opens this page with your function filled in.

The rules, with one example each

The steps use these rules. They are the same ones taught in any calculus course.

  • Power rule. The derivative of x^n is n x^(n-1). So the derivative of x^4 is 4x^3, and the derivative of the square root of x is 1/(2 sqrt(x)).
  • Product rule. For f times g, the derivative is f' g + f g'. For x^3 sin(x) that gives 3x^2 sin(x) + x^3 cos(x).
  • Quotient rule. For f over g it is (f' g − f g') / g^2. For ln(x)/x, f = ln(x) and g = x, so the top is (1/x)(x) − ln(x)(1) = 1 − ln(x), and the answer is (1 − ln(x)) / x^2.
  • Chain rule. For a function of a function, differentiate the outside and multiply by the derivative of the inside. For sin(x^2) the outside gives cos(x^2) and the inside gives 2x, so the answer is 2x cos(x^2).
  • Exponential and log. The derivative of e^x is e^x, of a^x is a^x ln(a), and of ln(x) is 1/x.

Standard derivatives the calculator knows

FunctionDerivative
sin(x)cos(x)
cos(x)-sin(x)
tan(x)sec(x)^2
atan(x)1/(1 + x^2)
asin(x)1/sqrt(1 − x^2)
sinh(x)cosh(x)
abs(x)x/abs(x), which is 1 for positive x and -1 for negative x

A longer worked example

Take e^(2x) cos(x). It is a product, so use the product rule with f = e^(2x) and g = cos(x). The derivative of f needs the chain rule: the outside e^u gives e^(2x) and the inside 2x gives 2, so f' = 2e^(2x). The derivative of g is -sin(x). Put it together: f' g + f g' = 2e^(2x) cos(x) − e^(2x) sin(x). Type it in and the calculator shows the same pieces in the steps.

Derivative at a point

Type (x^2+1)/(x-1) and put 3 in Value at a point. The derivative is (x^2 − 2x − 1)/(x − 1)^2. At x = 3 the top is 9 − 6 − 1 = 2 and the bottom is 2^2 = 4, so the slope is 1/2. The calculator shows 1/2 exactly, then the decimal 0.5.

Tangent and normal line

Type x^3-3x and put 2 in Value at a point. The derivative is 3x^2 − 3, so the slope at x = 2 is 9, and the function value is 8 − 6 = 2. The tangent line is y − 2 = 9(x − 2), which is y = 9x − 16. The normal line is perpendicular to it, with slope −1/9, so y = 20/9 − x/9. Both lines are drawn on the graph with the curve.

Where the slope is zero

For a function of one letter the calculator also scans the graph range for points where the first derivative crosses zero, and uses the second derivative to say whether each is a local minimum or maximum. For x^3-3x it finds x = −1 (a local maximum, value 2) and x = 1 (a local minimum, value −2). These are found numerically in the range under Graph from and Graph to, so widen the range to look further out.

Implicit differentiation

Type an equation with two letters, such as x^2 + y^2 = 25. The calculator moves everything to one side, differentiates with respect to x and to y, and gives dy/dx = −Fx / Fy. Here Fx = 2x and Fy = 2y, so dy/dx = −x/y. Put 3, 4 in Value at a point (x first, then y) and the slope is −3/4, with the tangent line y = 25/4 − 3x/4. Only the first derivative is given for an equation.

Partial derivatives

If the function has more than one letter, choose the letter under Variable, or leave it on Auto. The other letters are held constant, and the partial derivative for each of them is shown as well. For x^2 y^3 + sin(xy), the derivative with respect to x is 2x y^3 + y cos(xy), and with respect to y it is 3x^2 y^2 + x cos(xy).

Checking your own answer

Type your derivative in Check your own answer. The calculator compares it with its own at a dozen test points and says whether they match. Any equal form is accepted, for example (1 − ln(x))/x^2 and 1/x^2 − ln(x)/x^2. The test is numeric, so it shows that the two agree at those points.

Higher derivatives

Choose a higher Order to differentiate again. For x^4 the first derivative is 4x^3, the second is 12x^2, and the third is 24x. Each order is worked from the one before, and the steps show all of them.

What it cannot do

It does not do limits, derivatives from the limit definition, second implicit derivatives, directional derivatives or functions defined in pieces. Implicit differentiation needs exactly two letters. If your function has a rule it cannot read, the box tells you what to change. Absolute value is differentiated away from 0 only, and the slope-is-zero scan only looks inside the graph range.

Common problems

  • A result that looks too long is often correct but not factored. The calculator combines fractions and expands where that is shorter, but a hand answer can look different and still be equal. Compare values at a point to be sure.
  • Check that "Read as" matches what you meant. Writing 1/2x reads as (1/2) times x. For 1 over 2x, write 1/(2x).
  • log(x) is the base 10 logarithm here. For the natural log, use ln(x).

To draw the function on its own, use the graphing calculator. For the slope between two points, try the slope calculator, and for general sums the scientific calculator.

Questions

Good to know.

What is a derivative?

The derivative of a function gives its slope, or rate of change, at each point. If f(x) is a position, the derivative is the speed.

Does it show the steps?

Yes. Every rule used is named and explained in order, from the sum rule to the chain rule, then the pieces are put together.

Can it find the second derivative?

Yes. Choose 2nd under Order. You can go up to the 10th.

Can it do implicit differentiation?

Yes, for an equation with two letters, like x^2 + y^2 = 25 or x^3 + y^3 = 6xy. It gives dy/dx with the steps. Give a point as x, y to get the slope and the tangent line there.

Can it check my answer?

Yes. Type your derivative in Check your own answer. It is compared with the calculator's answer at a dozen test points, so any equal form passes.

How do I write the answer in LaTeX?

Press Copy LaTeX. It copies the derivative as a LaTeX formula you can paste into a document.

Can I use a letter other than x?

Yes. Choose the letter under Variable, or leave it on Auto. Letters that are not the variable are treated as constants, so d/dy of x^2 y^3 is 3x^2 y^2, and the partial derivatives for the other letters are shown too.

How do I type a power, a root or e to a power?

Use ^ for powers, like x^2. Use sqrt(x) for a root, e^x or e^(2x) for the exponential, and pi for pi. The symbol buttons insert them.

Why is the answer in a different form from mine?

Many forms of an answer are equal. Plug in the same number into both, or use Value at a point, to compare.

Is the answer checked?

The engine applies exact rules. First and second derivatives of more than ninety functions were compared numerically with the computer algebra system SymPy (checked 24 Oct 2026). It is still a good habit to check homework answers against your textbook.

Does it work on a phone?

Yes. The layout stacks on a narrow screen and the buttons make typing symbols easier.

Is my function sent anywhere?

No. It is worked out in your browser. The last function you typed is remembered on this device only.

Listed on

Listed on JustMacAppsMotionShine on Mac App IndexMotionShine on ScrollLaunchMotionShine featured on StartupBaseFeatured on FazierFeatured on Twelve ToolsMotionShine - Featured on Smol Launch