Basic Calculus

Definition (differentiation) open_in_new

Define the derivative of a function $f(x)$ with respect to its argument $x$ as the function $$ \frac{df}{dx} = \lim_{h\to 0}\frac{f(x+h)-f(x)}{h}. $$

Notation (differentiation) open_in_new

$$ \underbrace{\frac{df}{dx}}_\text{Leibniz} = \underbrace{f'(x)}_\text{Lagrange} = \underbrace{\dot f(x)}_\text{Newton (for time)}$$

$$\frac{d^2f}{dx^2} = f''(x) = \ddot f(x)$$

$$ \frac{d^nf}{dx^n} = f^{(n)}(x) $$

Big O and little o open_in_new

Definition (big O) open_in_new

$f(x)=O(g(x))$ as $x\to x_0$ if
there exists $M>0$ and
there exists $\delta > 0$ such that
for all $x$ where $0<|x-x_0|<\delta$, $$ |f(x)|\leq M|g(x)|. $$

Extending this, $f(x)=O(g(x))$ as $x\to\infty$ if
there exists $M>0$ and
there exists $X>0$ such that
for all $x > X$, $$ |f(x)|\leq M|g(x)|. $$

Definition (little o) open_in_new

$f(x) = o(g(x))$ as $x\to x_0$ if
for all $\epsilon>0$,
there exists $\delta > 0$, such that
for all $x$ where $0<|x-x_0|<\delta$, $$ |f(x)|\leq \epsilon|g(x)|. $$

Similar definition for $x\to\infty$.

Proposition (limit of ratio and little o) open_in_new

For $g(x)\neq 0$, $f(x) = o(g(x))$ as $x\to x_0$ iff $$ \lim_{x\to x_0} \frac{f(x)}{g(x)} = 0. $$

Proof

Proposition (first order expansion) open_in_new

For any differentiable function $f(x)$ at $x=x_0$, $$ f(x_0 + h) = f(x_0) + h f'(x_0) + o(h) $$ as $h\to 0$.

Proof

Differentiation rules open_in_new

Proposition (chain rule) open_in_new

Let $f(x) = F(g(x))$. Then $$ f'(x) = F'(g(x)) g'(x). $$

Proof

Proposition (product rule) open_in_new

Suppose $$f(x)=u(x)v(x)$$ where $u,v$ are differentiable at $x$. Then $f$ is differentiable at $x$ and $$ f'(x) = u'(x)v(x) + u(x)v'(x). $$

Proof

Proposition (Leibniz's rule) open_in_new

Given $f(x) = u(x)v(x)$ where $u,v$ are $n$-times differentiable, $$ f^{(n)} = \sum_{k=0}^n \begin{pmatrix}n\\r\end{pmatrix}u^{(n-r)}v^{(r)}. $$

Proof

Taylor series open_in_new

Definition (Taylor polynomial) open_in_new

For a function $f(x)$ that is $n$-times differentiable at $x_0$, its $n$-th order Taylor polynomial about $x_0$ is $$ \sum_{k=0}^n \frac{f^{(k)}(x_0)}{k!}(x-x_0)^k. $$

Theorem (Taylor theorem) open_in_new

For a function $f(x)$ that is $n$ times differentiable at $x_0$, it differs from its $n$-th order Taylor polynomial by $o((x-x_0)^n)$ as $x\to x_0$: $$ f(x) = \sum_{k=0}^n \frac{f^{(k)}(x_0)(x-x_0)^k}{k!} + E_n $$ with $E_n = o((x-x_0)^n)$.

Theorem (stronger Taylor theorem) open_in_new

If $f^{(n+1)}$ exists and is continuous for all $(x_0,x)$, then $$ E_n = O((x-x_0)^{n+1}).$$

Proof

Definition (Taylor series) open_in_new

For a function $f(x)$ which is infinitely differentiable at $x_0$, then the Taylor series about $x_0$ is $$ \sum_{k=0}^\infty \frac{f^{(k)}(x_0)}{k!}(x-x_0)^k. $$

L'Hôpital's rule open_in_new

Considering the limit of the ratio of two functions $\lim_{x\to x_0} f(x)/g(x)$, if

  • $f(x_0)=g(x_0)=0$ or $\pm\infty$;

  • $f(x)$ and $g(x)$ are differentiable at an open interval $I$ around $x_0$ possibly except $x_0$;

  • $g'(x)\neq 0$ for all $x\in I$ but $x\neq x_0$; and

  • $\lim_{x\to x_0} f'(x)/g'(x)$ exists,

then $$ \lim_{x\to x_0} \frac{f(x)}{g(x)} = \lim_{x\to x_0}\frac{f'(x)}{g'(x)}. $$

Proof of a special case

Integration open_in_new

Integrals as Riemann sum open_in_new

Definition (definite integral) open_in_new

The integral of a function $f(x)$ is defined as $$ \int_a^b f(x)\,dx = \lim_{N\to\infty}\sum_{n=0}^{N-1}f(x_n)\Delta x = \lim_{x_0\to 0}\sum_{n=0}^{N-1}f(x_n)\Delta x $$ where $\Delta x = (b-a)/N$ and $x_n = a + n\Delta x$.

Riemann sum approaches area under graph

Integrals as inverse of differentiation open_in_new

Theorem (fundamental theorem of calculus) open_in_new

Define $$ F(x) = \int_a^x f(t)\,dt. $$ Then $$ \frac{dF}{dx} = f(x). $$

Proof

Notation (indefinite integral) open_in_new

Indefinite integrals are written as $$ \int f(x)\,dx $$ or $$ \int^x f(t)\,dt. $$

Method of integration open_in_new

Common substitution:

Expression in integrand

Substitution

Identity

$1+x^2$

$x=\tan\theta$

$1+\tan^2\theta = \sec^2\theta$

$1+x^2$

$x=\sinh\theta$

$1+\sinh^2\theta = \cosh^2\theta$

$1-x^2$

$x=\sin\theta$

$1-\sin^2\theta = \cos^2\theta$

$1-x^2$

$x=\tanh\theta$

$1-\tanh^2\theta = \mathrm{sech}^2\theta$

$x^2-1$

$x=\sec\theta$

$\sec^2\theta-1 = \tan^2\theta$

$x^2-1$

$x=\cosh\theta$

$\cosh^2\theta-1 = \sinh^2\theta$

Specify the range of $\theta$ to be more rigorous.

Partial differentiation open_in_new

Definition (partial differentiation) open_in_new

Given function $f(x,y)$, the partial derivative of $f$ with respect to $x$ is $$ \frac{\partial f}{\partial x}\Big|_y = \lim_{\delta x\to 0} \frac{f(x+\delta x, y) - f(x,y)}{\delta x} $$ and that with respect to $y$ is $$ \frac{\partial f}{\partial y}\Big|_x = \lim_{\delta y\to 0} \frac{f(x, y+\delta y) - f(x,y)}{\delta y}. $$

Notation (partial differentiation) open_in_new

We usually omit the evaluation line and write $$\frac{\partial f}{\partial x}\Big|_y \equiv \frac{\partial f}{\partial x} \equiv f_x.$$

Mixed partial differentiation is written as $$\frac{\partial}{\partial x}\Big(\frac{\partial f}{\partial y}\Big) \equiv \frac{\partial^2 f}{\partial x\partial y} \equiv f_{yx}.$$

Theorem (Schwarz theorem) open_in_new

If $\partial^2 f/\partial x\partial y$ is continuous, then $$\frac{\partial^2 f}{\partial x\partial y} = \frac{\partial^2 f}{\partial y\partial x}.$$

Theorem (multi-variate chain rule) open_in_new

For a function $f(x,y)$ where $x$ and $y$ are functions of $t$, $$ \frac{df}{dt} = \frac{\partial f}{\partial x}\frac{dx}{dt} + \frac{\partial f}{\partial y}\frac{dy}{dt}. $$

Proof

Integrals of a multi-variate function open_in_new

For a function $f(x,y)$, $$ \Delta f = \int df = \int\Big(\frac{\partial f}{\partial x}dx + \frac{\partial f}{\partial y}dy\Big) $$

This does not depend on the path, only on the start and end points.

Implicit differentiation open_in_new

Define $$ \frac{\partial y}{\partial x}\Big|_z $$ be the partial derivative of $y$ with respect to $x$, holding $z$ fixed. This means that $$ \frac{\partial z}{\partial x}\Big|_z = 0. $$

Proposition (partial derivative of implicit equation) open_in_new

For a general implicit equation $f(x,y,z) = c$, $$\frac{\partial y}{\partial x}\Big|_z = -\frac{\partial f/\partial x\big|_{y,z}}{\partial f/\partial y\big|_{x,z}}.$$

Proof

Proposition (reciprocal rule) open_in_new

$$ \frac{\partial x}{\partial z}\Big|_y = \frac{1}{\frac{\partial z}{\partial x}\Big|_y}.$$

Proof

Theorem (differentiation of an integral with respect to its parameters) open_in_new

For a family of functions $f(x;\lambda)$ where the parameter $\lambda$ lables the different members of the family, define $$ I(\lambda) = \int_{a(\lambda)}^{b(\lambda)} f(x;\lambda)\,dx. $$

Then $$ \frac{dI}{d\lambda} = \int_{a(\lambda)}^{b(\lambda)}\frac{\partial f}{\partial \lambda}(x,\lambda)\,dx + \frac{db}{d\lambda}f\big(b(\lambda);\lambda\big) - \frac{da}{d\lambda}f\big(a(\lambda);\lambda\big).$$

Proof