Basic Calculus
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}. $$
$$ \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) $$
$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)|. $$
$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$.
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. $$
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$.
Let $f(x) = F(g(x))$. Then $$ f'(x) = F'(g(x)) g'(x). $$
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). $$
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)}. $$
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. $$
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)$.
If $f^{(n+1)}$ exists and is continuous for all $(x_0,x)$, then $$ E_n = O((x-x_0)^{n+1}).$$
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. $$
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)}. $$
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$.
Define $$ F(x) = \int_a^x f(t)\,dt. $$ Then $$ \frac{dF}{dx} = f(x). $$
Indefinite integrals are written as $$ \int f(x)\,dx $$ or $$ \int^x f(t)\,dt. $$
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.
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}. $$
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}.$$
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}.$$
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}. $$
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.
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. $$
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}}.$$
$$ \frac{\partial x}{\partial z}\Big|_y = \frac{1}{\frac{\partial z}{\partial x}\Big|_y}.$$
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).$$