Derivative Calculator

: Differentiate any function with every step shown: power, product, quotient and chain rules, exact simplified answers, second and nth derivatives, partial and implicit derivatives, the value at a point, the tangent line and a graph
Derivative
Type it as you write it: x^2 or x², 2x, sin(x) or sin x, e^(3x), ln(x), sqrt(x), log_2(x), |x|, pi. An equation in x and y (x^2 + y^2 = 25) gives dy/dx by implicit differentiation.
Blank for x. Another letter gives a partial derivative; several (x, y) a mixed one, in that order.
Optional: f and the derivative there, and the tangent line. With more letters: x = 1, y = 2.
Exact and worked out in this browser: numbers stay as fractions, roots and π stay symbolic, and the answer is simplified (like terms collected, common factors cancelled). Each step names the rule it uses. Decimals at a point are rounded to 6 places; ≈ marks a rounded figure.
Result
f′(x)
2x·sin(x) + x²·cos(x)
As plain text
2*x*sin(x) + x^2*cos(x)
For a calculator, a spreadsheet or code: * for times, ^ for powers, sqrt() for roots.
Function
f(x) = x²·sin(x)
How your input was read: check it is the function you meant.
Steps
Product rule: d/dx[x²·sin(x)] = d/dx[x²]·sin(x) + x²·d/dx[sin(x)]    Power rule: d/dx[x²] = 2x    Derivative of sin: d/dx[sin(x)] = cos(x) = 2x·sin(x) + x²·cos(x)
f(x) and f′(x)

A derivative calculator that differentiates a function and shows every step. Type the function as you write it, such as x^2 sin(x), e^(3x) or ln(x^2 + 1), and it names each rule as it uses it (the power, product, quotient and chain rules and the derivative of each function), then gives the answer exact and simplified. The same page is a second derivative calculator and a higher order derivative calculator up to the 10th, a partial derivative calculator for functions of several letters, and an implicit differentiation calculator for equations such as x² + y² = 25. Give a point and it adds the slope there and the tangent line, with a graph of f and its derivative.

  1. Type the function in Function. Write it as you would on paper: x^2 or x², 2x for 2 times x, sin(x) or sin x, e^(3x), ln(x), sqrt(x) or √x, log_2(x), |x| and pi. f(x) = or y = in front is fine.
  2. Choose the Order: 1st for f′, 2nd for f″, up to the 10th derivative.
  3. Leave With respect to blank to differentiate by x. Type another letter, such as y, for a partial derivative (the other letters are held constant), or several, such as x, y, for a mixed partial derivative taken in that order.
  4. To find the derivative at a point, type the value in At the point, such as 2 or pi/4. For a function of several letters type each one: x = 1, y = 2.
  5. Read the derivative at the top, Function to check how your input was read, and Steps for the working rule by rule. As plain text gives the answer with * and ^ to paste into a calculator or code. Examples fills in eight functions, from the product rule to implicit differentiation.

x² sin(x) at x = π: the product rule, then the slope and the tangent line there.

Input
Function: x^2 sin(x)
Order: 1st
At the point: pi
Output
f′(x): 2x·sin(x) + x²·cos(x)
Steps: 
Product rule: d/dx[x²·sin(x)] = d/dx[x²]·sin(x) + x²·d/dx[sin(x)]
   Power rule: d/dx[x²] = 2x
   Derivative of sin: d/dx[sin(x)] = cos(x)
= 2x·sin(x) + x²·cos(x)
f(π): 0
f′(π): -π² ≈ -9.869604
Tangent line: y = π³ - π²x

How do you find the derivative of a function?

Break the function into sums, products, quotients and compositions, and apply the matching rule to each part: the sum rule term by term, the power rule to xⁿ, the product or quotient rule where two parts are multiplied or divided, and the chain rule where one function sits inside another. For x² sin(x) the product rule gives 2x·sin(x) + x²·cos(x). The Steps row shows this breakdown for any function you type.

What is the derivative of ln(x)?

The derivative of ln(x) is 1/x. For a log to another base, log_b(x) = ln(x)/ln(b), so its derivative is 1/(x·ln(b)): log_2(x) gives 1/(x·ln(2)) and log(x), base 10, gives 1/(x·ln(10)). With the chain rule, ln(u) gives u′/u, so ln(x² + 1) gives 2x/(x² + 1).

How do you do implicit differentiation?

Differentiate both sides by x, treating y as a function of x (so y² gives 2y·dy/dx), then solve for dy/dx. The shortcut the calculator uses gives the same result: move everything to one side as F(x, y) = 0, and dy/dx = -(∂F/∂x) / (∂F/∂y). For x² + y² = 25 that is -2x / 2y = -x/y.

What is a partial derivative?

The derivative of a function of several variables by one of them, with the others held constant. For f(x, y) = x²y³ + sin(xy), ∂f/∂y treats x as a number and gives 3x²y² + x·cos(xy). Type the letter in With respect to to pick the variable.

What does the second derivative tell you?

How the slope itself changes. A positive second derivative means the graph is concave up (bending upward, like a cup), a negative one concave down; at a critical point it tells a minimum from a maximum (the second derivative test). Physically, if f is position, f′ is velocity and f″ is acceleration. Choose 2nd in Order; for x⁴ - 3x² it gives 12x² - 6.

Runs entirely in your browser. Nothing is uploaded.