The derivative calculator finds the derivative of a function and simplifies the result. Type the function, choose the first, second or third derivative, and optionally a value of x to find the slope there. For example, the derivative of x³ + 2 sin(x) is 3x² + 2 cos(x), and at x = 0 its value is 2.
How to use the derivative calculator
- Type your function using x, such as x^2 * e^x or ln(x^2 + 1). Tap an example to try one.
- Pick the variable if your function uses t, y or u instead of x. Other letters are treated as constants.
- Choose the order: first, second or third derivative.
- Enter a point to evaluate the derivative there, if you need the slope at a particular value.
How to type functions
- Powers: type x^3 for x cubed and x^(1/2) for a square root written as a power.
- Multiplication: 3x and 3*x both mean 3 times x, and (x + 1)(x − 1) multiplies the brackets.
- Roots: sqrt(x) is the square root.
- Exponentials and logs: e^x or exp(x), ln(x) for the natural log and log(x) for log base 10.
- Trig: sin, cos, tan, sec, csc and cot, plus asin, acos and atan, all in radians.
- Constants: pi for π and e for Euler’s number.
Use parentheses for anything inside a function: sin(2x), not sin 2x. You can write sin^2(x) for the square of sin(x).
Differentiation rules
- Constant rule: the derivative of a constant is 0.
- Power rule: the derivative of xⁿ is n·xⁿ⁻¹. So x⁵ becomes 5x⁴, and √x = x^(1/2) becomes 1/(2√x).
- Sum rule: differentiate each term separately.
- Product rule: (uv)′ = u′v + uv′.
- Quotient rule: (u/v)′ = (u′v − uv′)/v².
- Chain rule: for f(g(x)), multiply the outer derivative by the inner one: f′(g(x)) · g′(x).
Common derivatives
| Function | Derivative |
|---|---|
| sin(x) | cos(x) |
| cos(x) | −sin(x) |
| tan(x) | sec²(x) |
| eˣ | eˣ |
| aˣ | aˣ ln(a) |
| ln(x) | 1/x |
| arctan(x) | 1/(1 + x²) |
Worked examples
Chain rule: for ln(x² + 1), the outer function is ln(u), with derivative 1/u, and the inner function is u = x² + 1, with derivative 2x. Multiplying gives 2x/(x² + 1).
Quotient rule: for (x + 1)/(x − 1), u′ = 1 and v′ = 1, so the derivative is ((x − 1) − (x + 1))/(x − 1)², which simplifies to −2/(x − 1)².
Second derivative: for x⁴, the first derivative is 4x³ and the second is 12x².
What the derivative tells you
The derivative is the rate of change of a function, or the slope of its graph at a point. If f′(a) is positive, the graph is rising at x = a; if it’s negative, it’s falling; and where it’s zero the graph is flat, which happens at peaks, valleys and some turning points. The second derivative tells you whether the graph curves up or down. In physics, if f gives position over time, f′ is velocity and f″ is acceleration.
Checking the answer
The calculator works with symbols, the same way you would by hand, and its rules are tested against a numeric check of the slope. Answers can look different from a textbook and still be equal: for example, 2 sin(x) cos(x) is the same as sin(2x). The calculator gives the derivative wherever it exists; it doesn’t check where the original function is defined, so take care at points such as x = 0 for 1/x.
Derivatives in everyday problems
Derivatives answer questions about change. A company can use the derivative of its cost function to find the cost of making one more item, called the marginal cost. In medicine, the rate at which a drug level falls in the blood is a derivative. And in any problem that asks for the largest area, the shortest time or the lowest cost, you set the derivative to zero and solve to find the best value.
Finding a tangent line
The tangent line to a curve at x = a has slope f′(a) and passes through the point (a, f(a)). So its equation is y = f(a) + f′(a)(x − a). For f(x) = x² at x = 3, f(3) = 9 and f′(3) = 6, so the tangent line is y = 9 + 6(x − 3), or y = 6x − 9. Enter 3 in the point box to get the slope.
Common mistakes
- Forgetting the chain rule. The derivative of sin(3x) is 3 cos(3x), not cos(3x).
- Applying the power rule to aˣ. The derivative of 2ˣ is 2ˣ ln(2), not x·2ˣ⁻¹.
- Mixing up the quotient rule order. It’s u′v minus uv′ on top, over v squared.
- Using degrees. Calculus rules for trig functions only work in radians.
Higher-order derivatives
Each derivative can be differentiated again. For a polynomial, every step lowers the highest power by one, so x³ has derivatives 3x², 6x and 6, and every derivative after that is 0. For sin(x), the derivatives repeat every four steps: cos(x), −sin(x), −cos(x) and back to sin(x). The calculator lists each step when you choose the second or third derivative.
To see the function and its slope, plot them with the graphing calculator. For equations, try the quadratic equation solver.
What next
Use this often? Add Derivative to your Home screen.
Frequently asked questions
How does the derivative calculator work?
It reads your function into parts, applies the derivative rules to each part, then simplifies the result by combining like terms and factors.
Can it find the second derivative?
Yes. Choose the second or third derivative, and the calculator shows each step from the first derivative on.
Are trig functions in degrees or radians?
Radians, as in calculus. The derivative of sin(x) is cos(x) only when x is in radians.
How do I find the slope at a point?
Enter a value in the point box. The calculator evaluates the derivative there, which is the slope of the tangent line.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.