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- 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)
Derivative Calculator
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.
How to use the derivative calculator
- Type the function in
Function. Write it as you would on paper:x^2orx²,2xfor 2 times x,sin(x)orsin x,e^(3x),ln(x),sqrt(x)or√x,log_2(x),|x|andpi.f(x) =ory =in front is fine. - Choose the
Order: 1st for f′, 2nd for f″, up to the 10th derivative. - Leave
With respect toblank to differentiate by x. Type another letter, such asy, for a partial derivative (the other letters are held constant), or several, such asx, y, for a mixed partial derivative taken in that order. - To find the derivative at a point, type the value in
At the point, such as2orpi/4. For a function of several letters type each one:x = 1, y = 2. - Read the derivative at the top,
Functionto check how your input was read, andStepsfor the working rule by rule.As plain textgives the answer with * and ^ to paste into a calculator or code.Examplesfills in eight functions, from the product rule to implicit differentiation.
Example
x² sin(x) at x = π: the product rule, then the slope and the tangent line there.
Function: x^2 sin(x)
Order: 1st
At the point: pif′(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 = π³ - π²xDetails
- The derivative f′(x) is the rate at which f changes: the slope of the tangent line to the graph at each x, defined as the limit of (f(x + h) - f(x)) / h as h goes to 0. For f(x) = x² the derivative is 2x, so the slope at x = 3 is 6 and the tangent line there is y = 6x - 9. The calculator does not work out limits; it applies the rules that follow from them, which give the same answer.
- The power rule says d/dx xⁿ = n·xⁿ⁻¹, so x⁵ gives 5x⁴, √x gives 1/(2√x) and 1/x gives -1/x². The product rule, (uv)′ = u′v + uv′, turns x² sin(x) into 2x·sin(x) + x²·cos(x). The quotient rule, (u/v)′ = (u′v - uv′)/v², turns sin(x)/x into (x·cos(x) - sin(x))/x². The chain rule differentiates a function inside another: the outer derivative at the inner function, times the inner derivative, so sin(x²) gives 2x·cos(x²). The
Stepsrow writes each of these out with your own function and indents the steps each rule needs. - Exponentials and logarithms follow the same table: e^(3x) gives 3e^(3x), 2^x gives 2^x·ln(2), ln(x² + 1) gives 2x/(x² + 1) and log_2(x) gives 1/(x·ln(2)). When the letter is in both the base and the power, as in xˣ, the calculator uses logarithmic differentiation (xˣ = e^(x·ln(x))) and gets x^x·(ln(x) + 1).
- It knows all six trig functions, their inverses and the hyperbolic functions: tan(x) gives sec²(x), sec(x) gives sec(x)·tan(x), arcsin(x) gives 1/√(1 - x²), arctan(x) gives 1/(x² + 1), sinh(x) gives cosh(x) and arcsinh(x) gives 1/√(x² + 1). sin⁻¹(x) and sin^-1(x) are read as arcsin, and sin²(x) as (sin x)².
- The second derivative is the derivative of the derivative. For x⁴ - 3x² it is 12x² - 6: where it is positive the graph curves up (concave up), where negative it curves down, and at x = 1 it is 6. Higher orders repeat the step: the 5th derivative of e^(2x) is 32e^(2x). Each lower order gets its own row.
- A partial derivative differentiates by one letter and treats the others as numbers. For f(x, y) = x²y³ + sin(xy), ∂f/∂y is 3x²y² + x·cos(xy). With
x, yinWith respect toyou get the mixed second partial derivative, x first and then y: for x²y³ that is 6xy². - Implicit differentiation finds dy/dx when y is not written on its own side. The calculator moves every term to one side, F(x, y) = 0, and uses dy/dx = -(∂F/∂x) / (∂F/∂y). For the circle x² + y² = 25 that is -x/y, so at (3, 4) the slope is -3/4 = -0.75 and the tangent line is y = -0.75x + 6.25. For x³ + y³ = 6xy it gives (2y - x²)/(y² - 2x).
- Answers are exact and simplified: numbers stay as fractions, √2 and π stay symbolic, like terms are collected (2x + 3x is 5x), powers of the same base combine (x·x² is x³), a factor common to the top and bottom of a fraction cancels, and a product is multiplied out when that is shorter. At a point the value is given exactly when it is short (-π² at x = π) and as a decimal to 6 places.
Limits
- It differentiates; it does not integrate (antiderivatives) or work out limits.
- Simplification has no trig identities: sin²(x) + cos²(x) stays as it is, and ln(sin(x)) gives cos(x)/sin(x) rather than cot(x). An answer can look different from a textbook's and still be equal; the
Functionrow shows how your input was read. - The working is written rule by rule for the first three orders; beyond that each order is shown as the derivative of the one before. Some functions grow quickly with each order: a derivative over 20,000 parts is too large to work with in the page, so for x^x^x the 10th order stops at f⁽⁷⁾(x) and says so.
- Letters are single letters; e is Euler's number and log is the base-10 log (ln is the natural log). At a point where f or its derivative is undefined the calculator says which part fails, such as "ln(x) is undefined at x = 0: ln(0) is undefined". It does not work out one-sided derivatives. Implicit answers are in x and y and are not reduced using the equation itself, and the graph is drawn only for functions of one letter.
FAQ
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.