The basic rules
Here \(u\) and \(v\) are functions of \(x\), \(c\) and \(k\) are constants, and \(u' = \dfrac{du}{dx}\).
| Rule | Formula |
|---|---|
| Constant | \(\dfrac{d}{dx}(c) = 0\) |
| Constant multiple | \(\dfrac{d}{dx}(k\,u) = k\,u'\) |
| Sum and difference | \(\dfrac{d}{dx}(u \pm v) = u' \pm v'\) |
| Product rule | \(\dfrac{d}{dx}(uv) = u'v + uv'\) |
| Quotient rule | \(\dfrac{d}{dx}\left(\dfrac{u}{v}\right) = \dfrac{u'v - uv'}{v^2}\) |
| Chain rule | \(\dfrac{dy}{dx} = \dfrac{dy}{du}\cdot\dfrac{du}{dx}\) |
Full lessons: product and quotient rule and chain rule.
Standard derivatives
Powers, exponentials and logarithms
| Function | Derivative |
|---|---|
| \(x^n\) | \(nx^{n-1}\) |
| \(\sqrt{x}\) | \(\dfrac{1}{2\sqrt{x}}\) |
| \(\dfrac{1}{x}\) | \(-\dfrac{1}{x^2}\) |
| \(e^x\) | \(e^x\) |
| \(a^x\) | \(a^x\log a\) |
| \(\log x\) | \(\dfrac{1}{x}\) |
| \(\log_a x\) | \(\dfrac{1}{x\log a}\) |
Trigonometric functions
| Function | Derivative |
|---|---|
| \(\sin x\) | \(\cos x\) |
| \(\cos x\) | \(-\sin x\) |
| \(\tan x\) | \(\sec^2 x\) |
| \(\cot x\) | \(-\operatorname{cosec}^2 x\) |
| \(\sec x\) | \(\sec x\tan x\) |
| \(\operatorname{cosec} x\) | \(-\operatorname{cosec} x\cot x\) |
Inverse trigonometric functions
| Function | Derivative |
|---|---|
| \(\sin^{-1}x\) | \(\dfrac{1}{\sqrt{1 - x^2}}\), for \(|x| < 1\) |
| \(\cos^{-1}x\) | \(-\dfrac{1}{\sqrt{1 - x^2}}\), for \(|x| < 1\) |
| \(\tan^{-1}x\) | \(\dfrac{1}{1 + x^2}\) |
| \(\cot^{-1}x\) | \(-\dfrac{1}{1 + x^2}\) |
| \(\sec^{-1}x\) | \(\dfrac{1}{|x|\sqrt{x^2 - 1}}\), for \(|x| > 1\) |
| \(\operatorname{cosec}^{-1}x\) | \(-\dfrac{1}{|x|\sqrt{x^2 - 1}}\), for \(|x| > 1\) |
Hyperbolic functions (engineering)
| Function | Derivative |
|---|---|
| \(\sinh x\) | \(\cosh x\) |
| \(\cosh x\) | \(\sinh x\) |
| \(\tanh x\) | \(\operatorname{sech}^2 x\) |
Every function whose name starts with "co" has a minus sign in its derivative: \(\cos\), \(\cot\), \(\operatorname{cosec}\), and their inverses \(\cos^{-1}\), \(\cot^{-1}\), \(\operatorname{cosec}^{-1}\). The others don't.
Chain-rule versions
Most exam questions put something more complicated than \(x\) inside the function. Replace \(x\) with \(f(x)\) and multiply by \(f'(x)\):
| Function | Derivative |
|---|---|
| \(\big[f(x)\big]^n\) | \(n\big[f(x)\big]^{n-1}f'(x)\) |
| \(\sqrt{f(x)}\) | \(\dfrac{f'(x)}{2\sqrt{f(x)}}\) |
| \(e^{f(x)}\) | \(e^{f(x)}\,f'(x)\) |
| \(a^{f(x)}\) | \(a^{f(x)}\log a\cdot f'(x)\) |
| \(\log f(x)\) | \(\dfrac{f'(x)}{f(x)}\) |
| \(\sin f(x)\) | \(\cos f(x)\cdot f'(x)\) |
| \(\tan^{-1}f(x)\) | \(\dfrac{f'(x)}{1 + \big[f(x)\big]^2}\) |
| \((ax + b)^n\) | \(na(ax + b)^{n-1}\) |
Which rule do I use?
Before you differentiate, look at how the expression is built. Ask these in order:
- Can I simplify first? \(\dfrac{x^2 + 3x}{x}\) is just \(x + 3\). Log laws and trig identities often save a lot of work.
- Is it a sum of terms? Differentiate each term on its own.
- Is it two things multiplied? Product rule.
- Is it one thing divided by another? Quotient rule.
- Is something sitting inside a function? Chain rule, working from the outside in.
- Is \(x\) in both the base and the power, like \(x^x\)? Take logs first (logarithmic differentiation).
Solved examples
Example 1: Powers of x
EasyDifferentiate \(y = 4x^5 - 3x^2 + \dfrac{7}{x}\).
- Write \(\dfrac{7}{x}\) as \(7x^{-1}\).
- \(\dfrac{dy}{dx} = 20x^4 - 6x - 7x^{-2}\).
Answer\(\dfrac{dy}{dx} = 20x^4 - 6x - \dfrac{7}{x^2}\)
Example 2: Mixed standard functions
EasyDifferentiate \(y = 3\sqrt{x} + 2e^x - 5\log x\).
- Term by term: \(3\cdot\dfrac{1}{2\sqrt{x}} + 2e^x - 5\cdot\dfrac{1}{x}\).
Answer\(\dfrac{dy}{dx} = \dfrac{3}{2\sqrt{x}} + 2e^x - \dfrac{5}{x}\)
Example 3: A product
MediumDifferentiate \(y = x^3\sin x\).
- Product rule with \(u = x^3\), \(v = \sin x\): \(u' = 3x^2\), \(v' = \cos x\).
- \(\dfrac{dy}{dx} = 3x^2\sin x + x^3\cos x\).
Answer\(\dfrac{dy}{dx} = x^2(3\sin x + x\cos x)\)
Example 4: A quotient
MediumDifferentiate \(y = \dfrac{\log x}{x}\).
- Quotient rule with \(u = \log x\), \(v = x\): \(\dfrac{\frac{1}{x}\cdot x - \log x \cdot 1}{x^2}\).
Answer\(\dfrac{dy}{dx} = \dfrac{1 - \log x}{x^2}\)
Example 5: Product and chain together
MediumDifferentiate \(y = e^{3x}\cos 2x\).
- \(\dfrac{d}{dx}e^{3x} = 3e^{3x}\) and \(\dfrac{d}{dx}\cos 2x = -2\sin 2x\), both by the chain rule.
- Product rule: \(3e^{3x}\cos 2x + e^{3x}(-2\sin 2x)\).
Answer\(\dfrac{dy}{dx} = e^{3x}(3\cos 2x - 2\sin 2x)\)
Example 6: An inverse trig function
Exam levelDifferentiate \(y = \tan^{-1}(x^2)\).
- Chain-rule form \(\dfrac{f'(x)}{1 + [f(x)]^2}\) with \(f(x) = x^2\).
Answer\(\dfrac{dy}{dx} = \dfrac{2x}{1 + x^4}\)
To print this page or save it as a PDF, use your browser's Print option.
Common mistakes
1. Treating \(a^x\) like \(x^n\)
\(\dfrac{d}{dx}2^x\) is not \(x\,2^{x-1}\). The power rule is for a variable base and a fixed power. For a fixed base and a variable power, \(\dfrac{d}{dx}a^x = a^x\log a\).
2. Forgetting the inside derivative
\(\dfrac{d}{dx}e^{2x} = 2e^{2x}\), not \(e^{2x}\). \(\dfrac{d}{dx}\sin 5x = 5\cos 5x\), not \(\cos 5x\).
3. Mixing up \(\log_{10}\) and natural log
In calculus, \(\log x\) means the natural log (base \(e\)) unless a base is written. For base 10, \(\dfrac{d}{dx}\log_{10}x = \dfrac{1}{x\log 10}\).
Practice questions
Try each one on paper before you open the answer.
Q1Differentiate \(y = x^4 + 4^x\).
\(4x^3 + 4^x\log 4\).
Q2Differentiate \(y = \sec x + \cot x\).
\(\sec x\tan x - \operatorname{cosec}^2 x\).
Q3Differentiate \(y = (3x + 2)^5\).
\(5(3x + 2)^4\cdot 3 = 15(3x + 2)^4\).
Q4Differentiate \(y = \log(x^2 + 1)\).
\(\dfrac{2x}{x^2 + 1}\).
Q5Differentiate \(y = \sin^{-1}x + \cos^{-1}x\).
\(\dfrac{1}{\sqrt{1 - x^2}} - \dfrac{1}{\sqrt{1 - x^2}} = 0\). That makes sense: \(\sin^{-1}x + \cos^{-1}x = \dfrac{\pi}{2}\), a constant.
Q6Differentiate \(y = \sqrt{x}\,e^x\).
Product rule: \(\dfrac{e^x}{2\sqrt{x}} + \sqrt{x}\,e^x = e^x\left(\dfrac{1}{2\sqrt{x}} + \sqrt{x}\right)\).
Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.
Frequently asked questions
Does log x mean log base 10 or natural log?
In calculus it means the natural log, \(\log_e x\), which some books write as \(\ln x\). That is why \(\dfrac{d}{dx}\log x = \dfrac{1}{x}\) with no extra factor. If the base is 10, the answer picks up \(\dfrac{1}{\log 10}\).
What is the derivative of a constant?
Zero. A constant does not change, so its rate of change is 0. That includes numbers like \(\pi\), \(e\) and \(\log 2\).
Do I need to memorise all of these?
Learn the standard derivatives in section 2 by heart. They come up in every question. The chain-rule versions in section 3 follow from them, so once you understand the chain rule you can rebuild them yourself.
Why does the derivative of x to the power n work for fractions and negatives?
The power rule \(\dfrac{d}{dx}x^n = nx^{n-1}\) holds for every real \(n\), including fractions and negative numbers. That is why \(\sqrt{x} = x^{1/2}\) gives \(\tfrac{1}{2}x^{-1/2}\) and \(\dfrac{1}{x} = x^{-1}\) gives \(-x^{-2}\).