Derivative Calculator

Calculate symbolic derivatives step by step.

Supports polynomials, powers, trigonometric functions, logarithms, exponentials, products, quotients, parentheses and composite functions.

Calculate a Derivative

Use x as the variable. Multiplication can be written as 2*x or implicitly as 2x.
Try an example:

How to Use the Derivative Calculator

Enter a mathematical expression using x as the variable. The calculator parses the expression, differentiates the resulting symbolic expression, and simplifies the result.

  • Addition: x^2 + 3x
  • Subtraction: x^3 - 2x
  • Multiplication: x*sin(x)
  • Division: x/(x+1)
  • Powers: x^4
  • Negative powers: x^-2
  • Parentheses: (x+1)^2
  • Implicit multiplication: 2x
  • Functions: sin(x)
  • Nested functions: ln(x^2+1)
  • Constants: e and pi
  • Square root: sqrt(x)

Function names should be followed by parentheses, such as sin(x), ln(x), or sqrt(x).

Supported Functions

Function Input example Derivative
Sine sin(x) \(\cos(x)\)
Cosine cos(x) \(-\sin(x)\)
Tangent tan(x) \(\sec^2(x)\)
Secant sec(x) \(\sec(x)\tan(x)\)
Cosecant csc(x) \(-\csc(x)\cot(x)\)
Cotangent cot(x) \(-\csc^2(x)\)
Inverse sine asin(x) \(\frac{1}{\sqrt{1-x^2}}\)
Inverse cosine acos(x) \(-\frac{1}{\sqrt{1-x^2}}\)
Inverse tangent atan(x) \(\frac{1}{1+x^2}\)
Natural logarithm ln(x) \(\frac{1}{x}\)
Base-10 logarithm log10(x) \(\frac{1}{x\ln(10)}\)
Exponential exp(x) \(e^x\)
Square root sqrt(x) \(\frac{1}{2\sqrt{x}}\)

For this calculator, log(x) is treated as the natural logarithm, equivalent to ln(x).

Differentiation Rules and Formulas

Power Rule

\[ \frac{d}{dx}(x^n)=nx^{n-1} \]

For a composite power \(u(x)^n\), the chain rule is also required: \[ \frac{d}{dx}(u^n)=nu^{n-1}u'. \]

Sum Rule

\[ (u+v)'=u'+v' \]

Difference Rule

\[ (u-v)'=u'-v' \]

Product Rule

\[ (uv)'=u'v+uv' \]

Quotient Rule

\[ \left(\frac{u}{v}\right)' = \frac{u'v-uv'}{v^2} \]

Chain Rule

\[ \frac{d}{dx}f(g(x)) = f'(g(x))g'(x) \]

General Power Rule

\[ \frac{d}{dx}(u^v) = u^v \left( v'\ln(u) + v\frac{u'}{u} \right) \]

This form is used under the usual real-valued conditions where the logarithm and resulting derivative are defined.

What Is a Derivative?

A derivative measures how a function changes as its input changes. In calculus, \(f'(x)\) is the derivative of \(f(x)\) with respect to \(x\).

Geometrically, the derivative represents the slope of the tangent line to the graph of a function at a point.

\[ f'(x) = \lim_{h\to0} \frac{f(x+h)-f(x)}{h} \]

For example:

\[ f(x)=x^2 \] \[ f'(x)=2x \]

Derivative Examples

Polynomial

\[ f(x)=x^3+2x^2-5x+7 \]

\[ f'(x)=3x^2+4x-5 \]

Sine

\[ f(x)=\sin(x) \]

\[ f'(x)=\cos(x) \]

Product Rule

\[ f(x)=x\sin(x) \]

\[ f'(x)=\sin(x)+x\cos(x) \]

Chain Rule

\[ f(x)=\sin(2x) \]

\[ f'(x)=2\cos(2x) \]

Logarithm

\[ f(x)=\ln(x^2+1) \]

\[ f'(x)=\frac{2x}{x^2+1} \]

Quotient

\[ f(x)=\frac{x}{x+1} \]

\[ f'(x)=\frac{1}{(x+1)^2} \]

Understanding the Product Rule

When a function is the product of two functions, both factors can change as \(x\) changes. The product rule accounts for both changes.

\[ (uv)'=u'v+uv' \]

For example, with \[ f(x)=x\sin(x), \] let \[ u=x \] and \[ v=\sin(x). \] Then \[ u'=1 \] and \[ v'=\cos(x). \] Therefore: \[ f'(x) = 1\cdot\sin(x) + x\cdot\cos(x). \]

Understanding the Chain Rule

The chain rule is used when one function is contained inside another function. For example, \(sin(2x)\) is a sine function whose input is \(2x\).

\[ \frac{d}{dx}f(g(x)) = f'(g(x))g'(x) \]

For: \[ f(x)=\sin(2x), \] the outside function is sine and the inside function is \(2x\). Therefore: \[ f'(x)=\cos(2x)\cdot2=2\cos(2x). \]

More Calculus Calculators

Explore related differentiation and calculus tools on Summe.org.

Related Integration Calculators

Explore More Mathematics Tools

Differentiation is one part of a larger calculus and mathematics toolset. On Summe.org you can also explore sigma notation , series , sums of powers , and factorial sums .

For multivariable calculus, see the Directional Derivative Calculator , Gradient Calculator , Divergence Calculator , Curl Calculator , Jacobian Calculator , and Hessian Calculator .

Derivative Calculator FAQ

What is a derivative?

A derivative measures the instantaneous rate of change of a function with respect to its variable. Geometrically, it is the slope of the tangent line to the graph of a function.

What is the power rule?

The power rule states that the derivative of x raised to the power n is n times x raised to the power n minus 1: d/dx(x^n) = nx^(n-1).

What is the derivative of sin(x)?

The derivative of sin(x) is cos(x).

What is the derivative of cos(x)?

The derivative of cos(x) is -sin(x).

What is the chain rule?

The chain rule is used to differentiate a composition of functions. If y=f(g(x)), then y'=f'(g(x))g'(x).

What is the product rule?

The product rule states that the derivative of u(x)v(x) is u'(x)v(x) + u(x)v'(x).

What is the quotient rule?

The quotient rule states that the derivative of u(x)/v(x) is (u'v - uv')/v².

What is the derivative of ln(x)?

The derivative of ln(x) is 1/x.

What is the derivative of e^x?

The derivative of e^x is e^x.

Can this calculator differentiate a product?

Yes. The calculator supports products such as x*sin(x) and applies the product rule.

Can this calculator differentiate composite functions?

Yes. Nested supported functions such as sin(2x), ln(x^2+1), and exp(3x) can be differentiated using the chain rule.

Free Symbolic Derivative Calculator

This free derivative calculator is designed for symbolic differentiation. Instead of calculating the derivative only at one numerical point, it attempts to return an algebraic expression for the derivative of the entire function.

The calculator supports common polynomial expressions, powers, trigonometric functions, inverse trigonometric functions, logarithms, exponentials, square roots, fractions and composite functions. It applies differentiation rules such as the power rule, sum rule, product rule, quotient rule and chain rule.

For example, expressions such as x^3 + 2x^2 - 5x + 7, x*sin(x), sin(2x), x/(x+1), and ln(x^2+1) can be entered directly.

The resulting expression is also provided in LaTeX so that the mathematical result can be copied into notes, documents, assignments, or other mathematical software.