Derivative Calculator
Compute the symbolic derivative of any mathematical function instantly. Supports polynomials, trigonometric functions, logarithms, exponentials, and the chain rule.
Function Input
Use * for multiplication (e.g. 2*x). Supported: ^, sin, cos, tan, ln, log, sqrt, e.
Symbolic Derivative
f(x) f'(x)
View Differentiation Rules Applied
Introduction to Derivatives
The derivative of a function represents the instantaneous rate of change of the function with respect to one of its variables. Geometrically, if you plot a function $y = f(x)$ on a graph, the derivative $f'(x)$ gives the slope of the tangent line to the curve at any specific point $x$. It is a fundamental concept in calculus, used extensively in physics, engineering, economics, and machine learning to find rates of change, optimize systems, and model dynamic behaviors.
Common Differentiation Rules
POWER RULE: d/dx [x^n] = n * x^(n-1) CONSTANT RULE: d/dx [c] = 0 SUM RULE: d/dx [f + g] = f' + g' PRODUCT RULE: d/dx [f * g] = f' * g + f * g' QUOTIENT RULE: d/dx [f / g] = (f' * g - f * g') / g^2 CHAIN RULE: d/dx [f(g(x))] = f'(g(x)) * g'(x)
Derivatives of Common Functions
| Function $f(x)$ | Derivative $f'(x)$ |
|---|---|
| sin(x) | cos(x) |
| cos(x) | -sin(x) |
| tan(x) | sec^2(x) |
| e^x | e^x |
| ln(x) | 1/x |
| log(x) (base 10) | 1 / (x * ln(10)) |
| sqrt(x) | 1 / (2 * sqrt(x)) |
How to Use This Calculator
- Enter the function: Type your function using standard mathematical syntax (e.g.,
x^3 - 2*sin(x)). - Specify the variable: By default, it differentiates with respect to
x, but you can change it totor another variable. - Click Differentiate: The engine parses your input into an Abstract Syntax Tree (AST), applies differentiation rules recursively (including the chain rule), simplifies the algebraic output, and plots the result.
Frequently Asked Questions
Does this calculator show step-by-step work?
This tool is designed for fast, accurate symbolic computation. It applies standard calculus rules (Power, Product, Quotient, Chain) automatically. For detailed manual step-by-step algebraic expansions, symbolic algebra software like Wolfram Alpha is recommended.
Why does the output sometimes look unsimplified?
The built-in simplifier handles basic algebraic reductions (like multiplying by 1, adding 0, or reducing exponents). However, advanced simplifications like combining like terms (e.g., turning $2x + 3x$ into $5x$) require polynomial factoring algorithms that are too large for a browser-based widget. The output is mathematically correct.
What syntax should I use?
Use
* for multiplication (e.g., 2*x, not 2x). Use ^ for exponents (e.g., x^2). Always use parentheses for functions: sin(x), ln(x^2+1).How does the Chain Rule work here?
If you input
sin(x^2), the calculator recognizes the outer function (sin) and the inner function ($x^2$). It calculates the derivative of the outer function (cos), leaves the inner function intact, and multiplies it by the derivative of the inner function ($2x$), resulting in cos(x^2) * (2 * x).