Table of Derivatives and Basic Rules
Differentiating most functions takes four basic rules (constant, constant multiple, sum, power) plus a table of standard derivatives, such as \frac{d}{dx}\sin x=\cos x, \frac{d}{dx}e^x=e^x and \frac{d}{dx}\ln x=\frac1x. This page gives the rules first, then the complete table, grouped by type so you can jump straight to the function you need.
Jump to: Basic rules · Power, root and polynomial · Exponential and logarithmic · Trigonometric · Inverse trigonometric · Hyperbolic · Choosing a method
Basic rules
Four rules cover everything built from simple pieces by scaling, adding and subtracting. They apply wherever the functions involved are differentiable.
- Constant rule. The graph of a constant is a horizontal line, so its slope is 0: \dfrac{d}{dx}c=0. Example: \dfrac{d}{dx}(7)=0.
- Constant multiple rule. A constant factor stays in front: \dfrac{d}{dx}\big(c\,f(x)\big)=c\,f'(x). Example: \dfrac{d}{dx}(6x^2)=6\cdot 2x=12x.
- Sum and difference rule. Differentiate term by term: \dfrac{d}{dx}\big(f(x)\pm g(x)\big)=f'(x)\pm g'(x). Example: \dfrac{d}{dx}(x^2+x^3)=2x+3x^2.
- Power rule. For any real exponent n, \dfrac{d}{dx}x^n=nx^{n-1}: the exponent moves to the front and then drops by one. The rule holds wherever x^n is defined and differentiable, which for fractional n usually means x>0. Examples: \dfrac1x=x^{-1} gives -1\cdot x^{-2}=-\dfrac{1}{x^2}, and \sqrt x=x^{1/2} gives \dfrac12x^{-1/2}=\dfrac{1}{2\sqrt x}.
Every formula on this page is written for the bare variable x. When the argument is something larger than x, follow the method guide at the end of this page. Proofs are left out; the page lists results.
Power, root and polynomial
Roots and fractions are powers in disguise, so rewrite them first: \sqrt[n]{x}=x^{1/n} and \dfrac{1}{x^n}=x^{-n}. After that the power rule does all the work.
| f(x) | f'(x) | Notes |
|---|---|---|
| c | 0 | constant |
| x^n | nx^{n-1} | any real n |
| \sqrt x | \dfrac{1}{2\sqrt x} | x>0 |
| \dfrac1x | -\dfrac1{x^2} | x\ne 0 |
| \lvert x\rvert | \dfrac{x}{\lvert x\rvert} | x\ne 0; the corner at x=0 is covered in differentiability and one-sided derivatives |
Example 1: a polynomial. Differentiate f(x)=3x^4-5x^2+7x-2. Treat each term separately, using the constant multiple rule and the power rule, and note that the constant term vanishes:
\begin{aligned} \frac{d}{dx}(3x^4)&=3\cdot 4x^{3}=12x^3,\\ \frac{d}{dx}(-5x^2)&=-5\cdot 2x=-10x,\\ \frac{d}{dx}(7x)&=7\cdot 1=7,\\ \frac{d}{dx}(-2)&=0. \end{aligned}
Adding the pieces gives f'(x)=12x^3-10x+7.
The pattern for a term ax^k is always the same: multiply by the exponent, then lower the exponent by one. The degree drops by one, and a constant term disappears.
Example 2: a root and a negative power. Differentiate g(x)=2\sqrt x+x^{-3} for x>0. Rewrite the root as a power, g(x)=2x^{1/2}+x^{-3}, then apply the rules:
g'(x)=2\cdot\frac12x^{-1/2}+(-3)x^{-4}=x^{-1/2}-3x^{-4}=\frac{1}{\sqrt x}-\frac{3}{x^4}.
The restriction x>0 comes from the square root. The term x^{-3} alone would only need x\ne 0.
Exponential and logarithmic
On this site \ln always means the natural logarithm, the logarithm to base e. In the calculator you can type ln(x) or log(x) for it, and results print it as \ln. The number e\approx 2.71828 is the base for which an exponential function’s slope equals its height, which is why e^x is its own derivative.
| f(x) | f'(x) | Notes |
|---|---|---|
| e^x | e^x | |
| a^x | a^x\ln a | a>0 |
| \ln x | \dfrac1x | x>0 |
| \log_a x | \dfrac{1}{x\ln a} | x>0,\ a>0,\ a\ne 1 |
The two lines are connected. Setting a=e in the rule for a^x returns e^x, because \ln e=1. Since \log_a x=\dfrac{\ln x}{\ln a}, the logarithm to base a differs from \ln x only by the constant factor \dfrac{1}{\ln a}, which is what the constant multiple rule predicts.
Do not mix up x^n and a^x. In x^n the variable is the base and the exponent is fixed; in a^x it is the other way round. Applying the power rule to a^x would give x\,a^{x-1}, which is wrong. When both the base and the exponent contain x, neither formula applies and you need logarithmic differentiation.
Trigonometric
All trigonometric formulas assume that x is measured in radians. The derivative of \sin x equals \cos x only in radians. The reciprocal of sine is written \csc x, and some textbooks call it cosec x.
| f(x) | f'(x) | Notes |
|---|---|---|
| \sin x | \cos x | |
| \cos x | -\sin x | |
| \tan x | \sec^2 x=\dfrac1{\cos^2x} | derivation in the quotient rule article |
| \cot x | -\csc^2 x | |
| \sec x | \sec x\tan x | |
| \csc x | -\csc x\cot x |
The tangent and secant are undefined where \cos x=0, and the cotangent and cosecant are undefined where \sin x=0. The formulas hold at every other point.
One pattern helps with recall: the derivatives of the three “co” functions, cosine, cotangent and cosecant, each carry a minus sign. The derivatives of sine, tangent and secant do not.
Inverse trigonometric
The function \arcsin x is the angle whose sine is x. It is also written \sin^{-1}x, and it is not the reciprocal \dfrac1{\sin x}. The same goes for the other five.
| f(x) | f'(x) | Notes |
|---|---|---|
| \arcsin x | \dfrac1{\sqrt{1-x^2}} | \lvert x\rvert<1 |
| \arccos x | -\dfrac1{\sqrt{1-x^2}} | \lvert x\rvert<1 |
| \arctan x | \dfrac1{1+x^2} | |
| \operatorname{arccot} x | -\dfrac1{1+x^2} | |
| \operatorname{arcsec} x | \dfrac{1}{\lvert x\rvert\sqrt{x^2-1}} | \lvert x\rvert>1 |
| \operatorname{arccsc} x | -\dfrac{1}{\lvert x\rvert\sqrt{x^2-1}} | \lvert x\rvert>1 |
Two notes on domains. The functions \arcsin x and \arccos x are defined on [-1,1], but their graphs have vertical tangents at x=\pm 1, so the derivative exists only for \lvert x\rvert<1. The functions \operatorname{arcsec} x and \operatorname{arccsc} x are defined for \lvert x\rvert\ge1, but are differentiable only for \lvert x\rvert>1.
The absolute value in the last two formulas comes from the usual choice of range for these functions. Some textbooks pick a different range and print the formula without it, as \dfrac{1}{x\sqrt{x^2-1}}, so check which convention your course uses.
Each “co” function mirrors its partner with the opposite sign: \arccos x against \arcsin x, \operatorname{arccot} x against \arctan x, and \operatorname{arccsc} x against \operatorname{arcsec} x.
Hyperbolic and inverse hyperbolic
The hyperbolic functions are built from e^x and e^{-x}:
\sinh x=\frac{e^x-e^{-x}}{2},\qquad \cosh x=\frac{e^x+e^{-x}}{2},\qquad \tanh x=\frac{\sinh x}{\cosh x},\qquad \coth x=\frac{\cosh x}{\sinh x}.
| f(x) | f'(x) | Notes |
|---|---|---|
| \sinh x | \cosh x | |
| \cosh x | \sinh x | |
| \tanh x | \operatorname{sech}^2x=\dfrac1{\cosh^2x} | |
| \coth x | -\operatorname{csch}^2x=-\dfrac1{\sinh^2x} | x\ne 0 |
| \operatorname{arsinh}x | \dfrac1{\sqrt{x^2+1}} | |
| \operatorname{arcosh}x | \dfrac1{\sqrt{x^2-1}} | x>1 |
| \operatorname{artanh}x | \dfrac1{1-x^2} | \lvert x\rvert<1 |
The inverse functions are also written \operatorname{arcsinh}, \operatorname{arccosh} and \operatorname{arctanh}, or \sinh^{-1}, \cosh^{-1} and \tanh^{-1}.
The hyperbolic family does not copy the trigonometric pattern. The derivative of \cosh x is \sinh x with no minus sign, unlike \cos x. The inverse functions also look close to their trigonometric cousins, with signs moved around: compare \dfrac1{1+x^2} for \arctan x with \dfrac1{1-x^2} for \operatorname{artanh}x. A single sign changes which function you have, so read the table carefully.
Choosing a method
Look at the outermost operation of the expression and match it to the first row that fits.
| What you see | Method |
|---|---|
| A constant multiple, sum or difference of functions from the tables | The basic rules and tables on this page |
| Two expressions multiplied or divided | Product and quotient rules |
| One function inside another, such as a trigonometric function of an expression | Differentiating composite functions |
| A variable in the exponent, or a long product or quotient | Logarithmic differentiation |
| An equation relating x and y where y is not isolated | Implicit differentiation |
Real expressions often mix these. Work from the outside in: identify the outermost operation, apply its rule, and use the tables for the pieces that remain. Keep in mind that a product is not differentiated factor by factor, so (fg)' is not f'g'.
Try it: Open
3*x^4-5*x^2+7*x-2with its steps and compare each step with the term-by-term work above. The steps are named “Sum rule — differentiate term by term”, “Pull the constant factor out of the derivative” and “Power rule”, and the result is 12x^3-10x+7. Then opencsc(x): the step is “Table derivative of cosecant” and the result is printed as -\cot x\,\csc x, which is -\csc x\cot x from the trigonometric table.
Frequently asked questions
What is the derivative of cosec x?
The derivative of \csc x is -\csc x\cot x, valid wherever \sin x\ne 0. Because \csc x=\dfrac1{\sin x}, the function is undefined at integer multiples of \pi, and the formula holds on every interval between them. The matching result for the secant is \dfrac{d}{dx}\sec x=\sec x\tan x, with the minus sign appearing on the “co” function.
Why is the power rule valid for fractional and negative exponents?
The rule is established first for positive integers: expanding (x+h)^n in the limit definition leaves nx^{n-1} as the only term that survives as h\to 0. For a negative exponent, write x^{-n}=\dfrac{1}{x^n} and differentiate the fraction; for a fractional exponent \dfrac pq, differentiate the equation y^q=x^p with implicit methods. Each route lands on the same formula, nx^{n-1}, with the new exponent in place of n.
Do I need to memorize all of these?
Not all of them. Memorize the four basic rules and the derivatives you will meet constantly: powers, e^x, a^x, \ln x, \sin x and \cos x. The others can be rebuilt when needed, for example \tan x from \sin x and \cos x, and this page covers the rest. Whichever formula you rely on, confirm your final answer with a numeric check.
Where to go next
- Product rule and quotient rule: differentiating expressions that are multiplied or divided, including how \tan x is derived.
- Chain rule: handling a function nested inside another function, which the tables on this page do not cover.
- How to check a derivative: ways to test a result before you trust it.
When you want to confirm an answer, use the online derivative calculator: it names the rule applied at each step, and its “Check your answer” box accepts any equivalent form of your derivative.