Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Common Derivatives






The Core Derivative Library


A small collection of derivative formulas covers the vast majority of differentiation work. Polynomials, trigonometric functions, exponentials, and logarithms appear constantly, and their derivatives should be available from memory. Every more complex derivative—a composition, a product, an implicitly defined relation—ultimately reduces to these building blocks combined through differentiation rules.

Each formula below is provable from the limit definition. For some, the proof is a direct algebraic manipulation of the difference quotient. For others, it requires special limits such as limh0sinhh=1\lim_{h \to 0} \frac{\sin h}{h} = 1. The proofs confirm the formulas; the formulas replace the proofs in daily computation.



Constant Functions


For any constant cc:

ddx[c]=0\frac{d}{dx}[c] = 0


The graph of a constant function is a horizontal line. Every secant line through two points on it has slope zero, so the tangent line at every point also has slope zero. From the limit definition, the difference quotient cch=0\frac{c - c}{h} = 0 for all h0h \neq 0, and the limit is 00.

Under differentiation, constant terms vanish. In any sum f(x)+cf(x) + c, the constant contributes nothing to the derivative: ddx[f(x)+c]=f(x)\frac{d}{dx}[f(x) + c] = f'(x).

Power Functions


For any real exponent nn:

ddx[xn]=nxn1\frac{d}{dx}[x^n] = nx^{n-1}


The rule applies uniformly across exponent types. Positive integers: ddx[x5]=5x4\frac{d}{dx}[x^5] = 5x^4. Negative integers: ddx[x3]=3x4\frac{d}{dx}[x^{-3}] = -3x^{-4}. Fractions: ddx[x1/2]=12x1/2=12x\frac{d}{dx}[x^{1/2}] = \frac{1}{2}x^{-1/2} = \frac{1}{2\sqrt{x}}. Irrational exponents: ddx[xπ]=πxπ1\frac{d}{dx}[x^\pi] = \pi x^{\pi - 1}.

For positive integer nn, the proof expands (x+h)n(x+h)^n using the binomial theorem. The leading term after cancellation is nxn1hnx^{n-1}h, and dividing by hh and taking the limit gives nxn1nx^{n-1}. All higher-order terms contain hh as a factor and vanish in the limit.

Extension to negative and fractional exponents uses the quotient rule and the chain rule respectively, or alternatively logarithmic differentiation: writing xn=enlnxx^n = e^{n \ln x} and applying the chain rule gives ddx[xn]=enlnxnx=xnnx=nxn1\frac{d}{dx}[x^n] = e^{n \ln x} \cdot \frac{n}{x} = x^n \cdot \frac{n}{x} = nx^{n-1}.

Polynomials


A polynomial p(x)=anxn+an1xn1++a1x+a0p(x) = a_n x^n + a_{n-1}x^{n-1} + \cdots + a_1 x + a_0 is differentiated term by term using the power rule, constant multiple rule, and sum rule:

p(x)=nanxn1+(n1)an1xn2++a1p'(x) = na_n x^{n-1} + (n-1)a_{n-1}x^{n-2} + \cdots + a_1


Each term drops its degree by one. The constant term a0a_0 disappears. A polynomial of degree nn has a derivative of degree n1n - 1.

Polynomials are differentiable at every real number. Their derivatives are again polynomials, so the process can be repeated indefinitely. After nn differentiations, a degree-nn polynomial becomes a constant n!ann! \cdot a_n. One more differentiation yields zero, and all subsequent derivatives remain zero. This termination property distinguishes polynomials from transcendental functions, whose derivatives cycle or persist indefinitely.

Trigonometric Functions — Sine and Cosine


The two fundamental trigonometric derivatives are:

ddx[sinx]=cosxddx[cosx]=sinx\frac{d}{dx}[\sin x] = \cos x \qquad \qquad \frac{d}{dx}[\cos x] = -\sin x


The sine derivative is proved from the limit definition. Expanding sin(x+h)\sin(x + h) using the angle addition formula gives sinxcosh+cosxsinh\sin x \cos h + \cos x \sin h. The difference quotient becomes

sinx(cosh1)+cosxsinhh=sinxcosh1h+cosxsinhh\frac{\sin x(\cos h - 1) + \cos x \sin h}{h} = \sin x \cdot \frac{\cos h - 1}{h} + \cos x \cdot \frac{\sin h}{h}


The special limits limh0sinhh=1\lim_{h \to 0} \frac{\sin h}{h} = 1 and limh0cosh1h=0\lim_{h \to 0} \frac{\cos h - 1}{h} = 0 yield the result: cosx\cos x.

The cosine derivative follows similarly, or by differentiating cosx=sin(π/2x)\cos x = \sin(\pi/2 - x) using the chain rule. The negative sign in (cosx)=sinx(\cos x)' = -\sin x is essential and a frequent source of error.

Repeated differentiation cycles with period four: sinxcosxsinxcosxsinx\sin x \to \cos x \to -\sin x \to -\cos x \to \sin x. This periodicity extends to higher-order derivatives: dndxn[sinx]=sin(x+nπ/2)\frac{d^n}{dx^n}[\sin x] = \sin(x + n\pi/2).

Trigonometric Functions — Tangent, Cotangent, Secant, Cosecant


The remaining four trigonometric derivatives follow from sine and cosine via the quotient rule or rewriting in terms of sine and cosine.

ddx[tanx]=sec2xddx[cotx]=csc2x\frac{d}{dx}[\tan x] = \sec^2 x \qquad \qquad \frac{d}{dx}[\cot x] = -\csc^2 x


ddx[secx]=secxtanxddx[cscx]=cscxcotx\frac{d}{dx}[\sec x] = \sec x \tan x \qquad \qquad \frac{d}{dx}[\csc x] = -\csc x \cot x


For tanx=sinxcosx\tan x = \frac{\sin x}{\cos x}, the quotient rule gives cosxcosxsinx(sinx)cos2x=cos2x+sin2xcos2x=1cos2x=sec2x\frac{\cos x \cdot \cos x - \sin x \cdot (-\sin x)}{\cos^2 x} = \frac{\cos^2 x + \sin^2 x}{\cos^2 x} = \frac{1}{\cos^2 x} = \sec^2 x.

A pattern runs through the six derivatives: the cofunctions—cos\cos, cot\cot, csc\csc—each carry a negative sign in their derivatives, while sin\sin, tan\tan, sec\sec do not. This sign pattern is worth noting as a memory aid rather than a coincidence.

Each derivative is valid on the domain of the original function. The derivatives of tanx\tan x and secx\sec x are undefined at x=π/2+kπx = \pi/2 + k\pi (where cosx=0\cos x = 0). The derivatives of cotx\cot x and cscx\csc x are undefined at x=kπx = k\pi (where sinx=0\sin x = 0).

Exponential Functions


The natural exponential function has the unique property of being its own derivative:

ddx[ex]=ex\frac{d}{dx}[e^x] = e^x


No other function satisfies f(x)=f(x)f'(x) = f(x) except constant multiples CexCe^x. This self-replicating property is what makes ee the natural base for exponential functions.

The proof from the limit definition uses the special limit limh0eh1h=1\lim_{h \to 0} \frac{e^h - 1}{h} = 1. The difference quotient for exe^x factors as exeh1he^x \cdot \frac{e^h - 1}{h}, and the limit gives ex1=exe^x \cdot 1 = e^x.

For a general base a>0a > 0, a1a \neq 1:

ddx[ax]=axlna\frac{d}{dx}[a^x] = a^x \ln a


This follows from rewriting ax=exlnaa^x = e^{x \ln a} and applying the chain rule. The factor lna\ln a is constant—it scales the derivative. When a=ea = e, lna=1\ln a = 1 and the factor disappears, confirming the special role of base ee.

Logarithmic Functions


The natural logarithm has derivative:

ddx[lnx]=1xx>0\frac{d}{dx}[\ln x] = \frac{1}{x} \qquad x > 0


This can be derived by implicit differentiation. If y=lnxy = \ln x, then ey=xe^y = x. Differentiating both sides: eydydx=1e^y \frac{dy}{dx} = 1, so dydx=1ey=1x\frac{dy}{dx} = \frac{1}{e^y} = \frac{1}{x}.

Alternatively, the limit definition gives limh0ln(x+h)lnxh=limh01hln(x+hx)=limh01hln(1+hx)\lim_{h \to 0} \frac{\ln(x+h) - \ln x}{h} = \lim_{h \to 0} \frac{1}{h}\ln\left(\frac{x+h}{x}\right) = \lim_{h \to 0} \frac{1}{h}\ln\left(1 + \frac{h}{x}\right), which evaluates to 1x\frac{1}{x} using the limit definition of ee.

For a general base a>0a > 0, a1a \neq 1:

ddx[logax]=1xlna\frac{d}{dx}[\log_a x] = \frac{1}{x \ln a}


This follows from the change of base formula logax=lnxlna\log_a x = \frac{\ln x}{\ln a} and the constant multiple rule. The natural logarithm gives the simplest derivative—another reason ee is the preferred base.

The function lnx\ln|x| extends the domain to all x0x \neq 0, and its derivative is 1x\frac{1}{x} for both positive and negative xx. This extended form appears frequently in integration.

Summary of Common Derivatives


The complete set of common derivative formulas:

ddx[c]=0ddx[xn]=nxn1\frac{d}{dx}[c] = 0 \qquad \frac{d}{dx}[x^n] = nx^{n-1}


ddx[sinx]=cosxddx[cosx]=sinx\frac{d}{dx}[\sin x] = \cos x \qquad \frac{d}{dx}[\cos x] = -\sin x


ddx[tanx]=sec2xddx[cotx]=csc2x\frac{d}{dx}[\tan x] = \sec^2 x \qquad \frac{d}{dx}[\cot x] = -\csc^2 x


ddx[secx]=secxtanxddx[cscx]=cscxcotx\frac{d}{dx}[\sec x] = \sec x \tan x \qquad \frac{d}{dx}[\csc x] = -\csc x \cot x


ddx[ex]=exddx[ax]=axlna\frac{d}{dx}[e^x] = e^x \qquad \frac{d}{dx}[a^x] = a^x \ln a


ddx[lnx]=1xddx[logax]=1xlna\frac{d}{dx}[\ln x] = \frac{1}{x} \qquad \frac{d}{dx}[\log_a x] = \frac{1}{x \ln a}


These twelve formulas, combined with the differentiation rules, handle every explicit function built from powers, trigonometric functions, exponentials, and logarithms. Functions involving inverse trigonometric, hyperbolic, or piecewise definitions require the additional formulas collected in derivatives of special functions.