IA Differential Equations
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).$$
-
Ordinary DE involves functions of a single variable.
-
Partial DE involves functions of multiple variables.
Define $$ \exp(x) = \sum_{n=0}^\infty \frac{x^n}{n!}.$$
Alternatively define $$ \exp(x) = \lim_{k\to\infty}\Big(1+\frac xk\Big)^k. $$
$$\frac{d}{dx}\exp(x) = \exp(x).$$
Alternatively define $\exp(x)$ as the unique solution of $$ \frac{df}{dx} = f\quad\text{with } f(0) = 1.$$
For all $z_1, z_2\in\mathbb C$, $$ \exp(z_1)\exp(z_2) = \exp(z_1+z_2). $$
Define $$ \exp(x) = e^x $$ where $$e = \exp(1) = \lim_{k\to\infty}\Big(1+\frac1k\Big)^k.$$
Define the natural log $\ln$ be the inverse of $\exp$.
Define for any $a,x\in\R$, $$ a^x = \exp(x\ln a). $$
-
Linear: $y$ and its derivative appear linearly.
-
First-order: highest derivative is $dy/dx$.
-
Homogenous: all terms involve $y$ or its derivative.
For the equation $$ ay' + by = 0,$$ take $$ y = Ae^{\lambda x}. $$ Then we get the characteristic equation $$ a\lambda + b = 0. $$
General method for any linear forced ODEs:
-
Find (guess) a particular integral $y_p(x)$ i.e. a single solution of the forced equation;
-
Write the general solution of the ODE as $$ y(x) = y_p(x) + y_c(x). $$ Then $y_c(x)$, the complementary function, satisfies the homogenous equation.
-
Combine $y_p$ and $y_c$ to get the general solution.
Consider the general equation $$ a(x) y' + b(x) y = c(x). $$ We usually write it in the standard form by dividing $a(x)$: $$ y' + p(x) y = f(x). $$
We let the integrating factor be $$ \mu(x) = \exp\Big(\int^x p(u)\,du\Big) $$ and our solution is $$ y(x) = \frac{1}{\mu(x)}\int^x \mu(u)f(u)\,du. $$
We consider the form $$ Q(x,y)y' + P(x,y) = 0. $$ In general this is not solvable.
A first-order ODE is separable if it can be written as $$ q(y)\,dy = p(x)\,dx, $$ which can be solved by direct intergration.
An ODE $P(x,y) \,dx + Q(x,y)\,dy = 0$ is exact if there exists $f(x,y)$ such that $$ df = P(x,y)\,dx + Q(x,y)\,dy. $$ Then $df=0$ so $f(x,y) =$ constant is the solution.
Therefore we need to find $f$ such that $$\begin{cases} \frac{\partial f}{\partial x} = P(x,y), \\ \frac{\partial f}{\partial y} = Q(x,y). \end{cases}$$
Check this condition in your head:
Note that $\frac{\partial^2 f}{\partial x\partial y} = \frac{\partial^2 f}{\partial y\partial x}$, so a necessary condition for an exact equation is $$ \frac{\partial P}{\partial y} = \frac{\partial Q}{\partial x}. $$
The theorem below says this is a sufficient condition under certain domains.
If $$\begin{align*} \frac{\partial P}{\partial y} = \frac{\partial Q}{\partial x} \end{align*}$$ throughout a simply connected domain $\mathcal D$, then $P\,dx + Q\,dy$ is an exact differential of single-valued $f(x,y)$ in $\mathcal D$.
Consider $y' = f(t,y)$. Each initial condition like $y(0) = y_0$ generates a distinct solution curve.
$f(t,y)$ represents the gradient of the solution curve. You can plot the slope field to visualise. You can also plot isoclines, which are curves along with $f(t,y)$ is constant.
A fixed point of an ODE $$ \frac{dy}{dt} = f(t,y) $$ is a constant solution $y=c$, i.e. $dy/dt = 0$ for all $t$.
-
A fixed point $y=c$ is stable if whenever $y$ deviates slightly from $c$, $y$ converges to $c$ as $t\to\infty$.
-
It is unstable if whenever $y$ deviates slightly from $c$, $y$ diverges from $c$ as $t\to\infty$.
To find out the stability of a fixed point, we consider a small perturbation of $y$ from $c$, $$ y(t) = c + \epsilon(t). $$ So $$ \frac{d\epsilon}{dt} = f(t, c+\epsilon(t)) = \underbrace{f(t, c)}_0 + \epsilon\frac{\partial f}{\partial y}\Big|_{t,c} + O(\epsilon^2). $$ Linearising the small $\epsilon$, $$ \frac{d\epsilon}{dt} \approx \epsilon\frac{\partial f}{\partial y}\Big|_{t,c}. $$ Then solve for $\epsilon$ to find out behaviour as $t\to\infty$.
An autonomous system has a differential equation of the form $$ \frac{dy}{dt} = f(y) $$ which does not depend on $t$.
Suppose we have a fixed point $y=c$, i.e. $f(c) = 0$. Then $$ \frac{d\epsilon}{dt} = \epsilon f'(c) + O(\epsilon^2) $$
Lectures notes say that by linearising, we have the solution $$ \epsilon(t) = \epsilon_0 e^{f'(c)t}. $$ In practice, just considering the sign of $f'(c)$, or the first non-zero derivative of $f$, is enough to determine the stability.
Hence the fixed point is
-
stable when $f'(c) < 0$;
-
unstable when $f'(c) > 0$.
A phase diagram shows the direction solutions flow as $t$ increases.
Consider a first-order discrete equation which is independent of $n$ $$ x_{n+1} = f(x_n). $$
A fixed point of a first-order discrete equation is a value $x_n$ such that $$ x_{n+1} = x_n $$ i.e. $$ f(x_n) = x_n. $$
Using perturbation analysis, let $x_f$ be a fixed point and we let $$ x_n = x_f + \epsilon_n. $$ Then $$ x_f + \epsilon_{n+1} = f(x_f + \epsilon_n) = \underbrace{f(x_f)}_{x_f\text{ by fixed point}} + \epsilon_n f'(x_f) + O(\epsilon_n)^2. $$ Neglecting higher order terms, $$ \epsilon_{n+1} \approx \epsilon_n f'(x_f). $$
Therefore, a stable point is
-
stable when $|f'(x_f)| < 1$;
-
unstable when $|f'(x_f)| > 1$.
An operator $\mathcal D$ is linear if for any functions $y_1(x), y_2(x)$ and constants $\alpha,\beta$, $$ \mathcal D(\alpha y_1 + \beta y_2) = \alpha\mathcal D y_1 + \beta\mathcal D y_2. $$
A set of $N$ functions $\{f_i(x)\}$ is linearly dependent if $$ \sum_{i=1}^N c_i f_i(x) = 0 $$ for $N$ constants $c_i$ not all zero.
Otherwise the functions are linearly independent.
General form $$ a \frac{d^2y}{dx^2} + b\frac{dy}{dx} + cy = f(x). $$
$$ a\frac{d^2y}{dx^2} + b\frac{dy}{dx} + cy = 0. $$ Solution has the form $y(x) = e^{\lambda x}$, so the characteristic equation is $$ a\lambda^2 + b\lambda + c = 0. $$
-
If the roots $\lambda_1 \neq \lambda_2$, then $$ y(x) = Ae^{\lambda_1 x} + Be^{\lambda_2 x}. $$
-
If the roots $\lambda_1 = \lambda_2 = \lambda$, then $$ y(x) = (A + Bx)e^{\lambda x}. $$
General form $$ y'' + p(x) y' + q(x)y = 0. $$
This is hard to solve, but if we have one solution $y_1(x)$, we can find a second one $y_2(x)$ by reduction of order.
This can also be done with Abel's theorem. See that for formula.
This generalises to any order.
Example (degenerate linear second-order ODE with constant coefficient)
For an $n$-th order linear ODE $$ y^{(n)} + p(x) y^{(n-1)} + \ldots + q(x) y = f(x), $$ $y^{(n)}(x_0)$ is determined by $y(x_0), y'(x_0), y''(x_0), \ldots, y^{(n-1)}(x_0)$. Similarly by differentiating the ODE, we can determine higher derivatives.
Therefore we can construct a Taylor series of $y(x)$ about $x_0$ if $y(x_0), y'(x_0), y''(x_0), \ldots, y^{(n-1)}(x_0)$ are specified. By some theorem, a solution $y(x)$ is determined by these initial conditions.
The state of system is fully specified at any $x$ by the solution vector $$ \v Y(x) = \begin{pmatrix} y(x) \\ y'(x) \\ y''(x) \\ \vdots \\ y^{(n-1)}(x) \end{pmatrix}. $$ This means at any $x=x_0$, $\v Y(x_0)$, a point in the $n$ dimensional phase space, determines the full solution $y(x)$.
The Wronskian of $n$ functions $y_i(x)$ for $i=1,2,\ldots, n$ is the determinant of the fundamental matrix, defined by $$ W(x) = \begin{vmatrix} y_1 & y_2 & \ldots & y_n \\ y_1' & y_2' & \ldots & y_n' \\ y_1'' & y_2'' & \ldots & y_n'' \\ \vdots & \vdots & & \vdots \\ y_1^{(n-1)} & y_2^{(n-1)} & \ldots & y_n^{(n-1)} \end{vmatrix}. $$
If $n$ functions $\{y_i(x)\}$ are linearly dependent, then their Wronskian $W(x) = 0$ for all $x$.
Its contraposition is that if $W(x) \neq 0$, then $\{y_i(x)\}$ are linearly independent.
Given any two solutions of a linear homogenous second-order ODE $$ y'' + p(x) y' + q(x) y = 0, $$ if $p(x),q(x)$ are continuous on an interval $I$, then the Wronskian satisfies Abel's identity $$ W(x) = W(x_0) \exp\Big(-\int_{x_0}^x p(u) \,du\Big). $$
In particular either
-
$W(x) = 0$ for all $x\in I$; or
-
$W(x) \neq 0$ for all $x\in I$.
This tells us that two solution vectors $\vec Y_1(x), \vec Y_2(x)$ are either always collinear in the phase space or never as $x$ varies. Therefore, if $\vec Y_1(x_0), \vec Y_2(x_0)$ form a basis, then $\vec Y_1(x), \vec Y_2(x)$ also form a basis at any $x$.
For a homogenous linear second-order ODE with missing $y'$ term $$ y'' + q(x) y = 0, $$ the Wronskian $W(x)$ is a constant function.
By Abel's identity, $$ y_1 y_2' - y_1' y_2 = W(x_0) \exp\Big(-\int_{x_0}^x p(u)\,du\Big), $$ which, if $y_1$ is known, gives a first-order linear ODE of $y_2$. Using quotient rule, $$ \frac{d}{dx}\frac{y_2}{y_1} = \frac{W(x_0)}{y_1^2}\exp\Big(-\int_{x_0}^x p(u)\,du\Big) $$ $$ y_2(x) = y_1(x) \int^x \frac{\exp\Big(-\int^\xi p(u)\,du\Big)}{y_1(\xi)^2}\,d\xi, $$ which is equivalent to the reduction of order formula.
A linear, second-order equidimensional ODE has the form $$ ax^2 y'' + bxy' + cy = f(x) $$ where $a,b,c$ are constants.
For a homogenous linear second-order equidimensional ODE $$ ax^2 y'' + bxy' + cy = 0, $$ if $y(x)$ is a solution, then $\tilde y(x) = y(\lambda x)$ is also a solution for some non-zero constant $\lambda$.
The solution has form $y(x) = x^k$ where the characteristic equation is $$ ak^2 + (b-a)k + c = 0. $$
-
If the roots $k_1 \neq k_2$, the solution is $$ y(x) = Ax^{k_1} + Bx^{k_2}. $$
-
If the roots $k_1=k_2 = k$, the solution is $$ y(x) = (A + B\ln x)x^k. $$
(Derivation using eigenfunction, derivation using substitution)
For such ODE with constant coefficients, $$ ay'' + by' + cy = f(x), $$ try to guess the following for the particular solution:
$f(x)$ |
$y_p(x)$ |
|---|---|
$e^{\lambda x}$ |
$Ae^{\lambda x}$ |
$\sin kx$ or $\cos kx$ |
$A\sin kx + B\cos kx$ |
degree-$n$ polynomial |
degree-$n$ polynomial |
Also due to linearity of the differential operator, you can find separately the particular solution of each term in $f(x)$ and then add them.
When the forcing term $f(x)$ is a complimentary function of the ODE, we detune it.
The general rule is that we try $y_p(t) = t \times (\text{non-resonant particular integral})$.
For the equation $$y'' + p(x)y' + q(x) y = f(x),$$ given its two linearly independent complimentary functions $y_1(x), y_2(x)$, a particular integral is given by $$ y_p(x) = y_2(x) \int^x \frac{y_1(\xi) f(\xi)}{W(\xi)}d\xi - y_1(x) \int^x \frac{y_2(\xi) f(\xi)}{W(\xi)} d\xi. $$
We investigate in the equation $$ m\ddot y + b\dot y + ky = F(t). $$
We usually write it in terms of the dimensionless time $\tau = \omega_0 t$, where $\omega_0 = \sqrt{k/m}$, $$ y'' + 2\kappa y' + y = f(\tau) $$ where $\kappa = b/2m\omega_0$.
For complimentary functions, depending on the value of $\kappa$, the solution has different behaviours:
-
For $\kappa < 1$, light damping/underdamping: $$ y(t) = e^{-\kappa\omega_0 t}(A\sin\omega_{free}t + B\cos\omega_{free}t), $$ where $\omega_{free} = \sqrt{1-\kappa^2}\ \omega_0$.
-
For $\kappa = 1$, critical damping: $$ y(t) = e^{-\kappa\omega_0t}(A + Bt). $$
-
For $\kappa > 1$, heavy damping/overdamping: $$ y(t) = \underbrace{Ae^{-(\kappa - \sqrt{\kappa^2 - 1})\omega_0 t)}}_\text{dominates long-term} + Be^{-(\kappa + \sqrt{\kappa^2 - 1})\omega_0 t}.$$
Derivation of non-forcing oscillating system
For the general solution,
-
in the beginning, the solution is given by both complimentary functions and particular integral, which is called the transient response.
-
But since all complimentary functions eventually decay, the general solution is dominated by the particular integral in the long run. This is the steady-state response.
Consider any family of functions $D(t; \epsilon)$ satisfying
-
$\lim_{\epsilon\to 0} D(t;\epsilon) = 0$ for all $t\neq 0$;
-
$\int_{-\infty}^\infty D(t;\epsilon)\,dt = 1$ for all $\epsilon$.
We define the Dirac delta function as $$ \delta(x) \equiv \lim_{\epsilon\to 0} D(x;\epsilon). $$
We just focus on these properties:
-
$\delta(x) = 0$ for all $x\neq 0$;
-
$\int_{-\infty}^\infty \delta(x)\, dt = 1$;
-
If $g(x)$ is continuous at $x=0$, then $\int_{-\infty}^\infty g(x) \delta(x) \, dt = g(0)$. It follows that $$ \int_a^b g(x) \delta(x-x_0)\,dt = \begin{cases} g(x_0), & a < x < b, \\ 0, & x < a \text{ or } x > b, \\ \text{undefined}, & x=a \text{ or } x=b. \end{cases} $$
For the equation $$y'' + p(x) y' + q(x) y = \delta(x)$$ where $p(x)$ and $q(x)$ are continuous at $x=0$, we use the jump condition $$ \lim_{\epsilon\to 0} [y']_{-\epsilon}^\epsilon = 1. $$ (Derivation)
We define the Heaviside step function to be $$ H(x) = \int_{-\infty}^x \delta(t)\, dt, $$ so $$\begin{align*} H(x) &= \begin{cases} 0, & x<0, \\ 1, & x>0, \\ \text{undefined}, &x=0; \end{cases} \\ \frac{dH}{dx} &= \delta(x). \end{align*}$$
$$ y'' + p(x) y' + q(x) y = H(x) $$ If we assume $y'' \sim H(x)$, then $y'\sim xH(x)$ and $y\sim x^2 H(x)$, which are continuous. So we have $$ \lim_{\epsilon\to 0} [y']_{-\epsilon}^{\epsilon} = 0 = \lim_{\epsilon\to 0} [y]_{-\epsilon}^\epsilon. $$
Consider discretising the equation at points $\se{x_n}$ spaced by $h$ and take $y_n = y(x_n)$. We can estimate the derivative by the forward Euler scheme $$ \frac{dy}{dx}\Big|_{x_n} \approx \frac{y_{n+1} - y_n}{h}. $$
For second-order derivative, $$\begin{align*} \frac{d^2y}{dx^2}\Big|_{x_n} &\approx \frac{dy/dx\big|_{x_{n+1}} - dy/dx\big|_{x_n}}{h} \\ &= \frac{y_{n+2} - 2y_{n+1} + y_n}{h^2}. \end{align*}$$
Consider the equation $$ ay_{n+2} + by_{n+1} + cy_n = f_n. $$
The complementary function has the form $y_n^{(c)} = k^n$ where the characteristic equation is $$ ak^2 + bk + c = 0. $$
-
If the roots $k_1 \neq k_2$, then $$ y_n^{(c)} = Ak_1^n + Bk_2^n. $$
-
If the roots $k_1 = k_2 = k$, then $$ y_n^{(c)} = (A + Bn) k^n. $$
For particular integral, guess the following:
$f_n$ |
$y_n^{(p)}$ |
|---|---|
$k^n$ |
$Ak^n$ if not complementary |
$k^n$ |
$Ank^n$ if complementary |
$n^p$ |
degree $p$ polynomial in $n$ |
We may focus on looking for solutions that can be written as a power series $$ y(x) = \sum_{n=0}^\infty a_n x^n. $$
For $$ p(x) y'' + q(x) y' + r(x) y = 0, $$ we seek for a series solution around $x_0$.
If $q(x)/p(x)$ and $r(x)/p(x)$ are analytic at $x=x_0$, i.e. have Taylor series around $x=x_0$, then $x=x_0$ is called an ordinary point. Otherwise it is a singular point.
Suppose $x=x_0$ is a singular point. If the equation can be written as $$ P(x) (x-x_0)^2 y'' + Q(x) (x-x_0) y' + R(x) y = 0 $$ where $Q(x)/P(x)$ and $R(x)/P(x)$ are analytic at $x=x_0$, then $x=x_0$ is a regular singular point. Otherwise it is an irregular singular point.
Equivalently, $x=x_0$ is a regular singular point iff $$ \frac{(x-x_0) q(x)}{p(x)}\quad\text{and}\quad\frac{(x-x_0)^2 r(x)}{p(x)} $$ are analytic at $x=x_0$.
Example (regular singular point), Example (irregular singular point)
If $x=x_0$ is an... |
then there are... |
solutions |
convergent in some neighbourhood of $x_0$. |
|---|---|---|---|
ordinary point |
two linearly independent |
power series solutions $$ y(x) = \sum_{n=0}^\infty a_n(x-x_0)^n $$ |
|
regular singular point |
at least one |
Frobenius series solution $$\begin{align*} y(x) &= \sum_{n=0}^\infty a_n(x-x_0)^{n+\sigma} \\ &= (x-x_0)^\sigma\sum_{n=0}^\infty a_n(x-x_0)^n \end{align*}$$ where $\sigma\in\R$ and $a_0\neq 0$ |
Example of series solution about ordinary point
This method applies for solutions about a regular singular point.
The solutions depend on the roots $\sigma_1, \sigma_2$ of the indicial equation:
-
If $\sigma_2 - \sigma_1\not\in \Z$, then we have two linearly independent Frobenius series solution, $$ y_1(x) = (x - x_0)^{\sigma_1} \sumi n0\infty a_n(x-x_0)^n, $$ $$ y_2(x) = (x - x_0)^{\sigma_2} \sumi n0\infty b_n(x-x_0)^n. $$
-
If $\sigma_2 - \sigma_1 \in\Z$, suppose $\sigma_1 \leq \sigma_2$. Then we have one Frobenius series solution $$ y_1(x) = (x-x_0)^{\sigma_2} \sumi n0\infty a_n(x-x_0)^n $$ and another solution involving $\ln$, $$ y_2(x) = (x-x_0)^{\sigma_1} \sumi n0\infty b_n(x-x_0)^n + cy_1(x)\ln(x-x_0). $$ for some constant $c$ determined by $b_0$.
For a function $f(x,y)$, its gradient is $$ \mrm{grad}(f) \equiv \v\nabla f \equiv \Big(\pdfd fx, \pdfd fy\Big).$$
The directional derivative of $f(x,y)$ in the direction $\vhat s$ is $$ \dfd fs = \vhat s\cdot\v\nabla f. $$
-
Direction of $\v\nabla f$ is that in which $f$ increases most rapidly.
-
Magnitude of $\v\nabla f$ is the maximum rate of change of $f$.
-
When $0 = \dfd fs = \vhat s\cdot\v\nabla f$, we have $\hat s$ being along a contour of $f$, so $\v\nabla f$ is perpendicular to the contours of $f$.
The first three terms of the Taylor series around $\v x = \v x_0$ is $$ f(\v x_0 + \delta\v x) = f(\v x_0) + \delta\v x\cdot\v\nabla f\big|_{\v x_0} + \frac12 \delta\v x\ (\vnabla\vnabla f)\big|_{\v x_0}\ \delta\v x^T + \ldots $$ where $\delta\v x$ is a row vector and $\vnabla\vnabla f$ is the Hessian matrix $$ H \equiv \vnabla\vnabla f \equiv \pmat{f_{xx} & f_{xy} \\ f_{yx} & f_{yy}}. $$
If $f_{xy}$ is continuous, then $f_{xy} = f_{yx}$ so $H$ is symmetric.
What is on the lecture notes has $f_{xy}$ and $f_{yx}$ swapped compared to Wikipedia, but I guess no one really cares which is which since it's usually symmetric.
$\v x_0$ is a stationary point of a function $f(\v x)$ if $$ \vnabla f\big|_{\v x_0} = \v 0. $$
Equivalently, the directional derivative $\dfd fs\big|_{\v x_0} = 0$ for all $\vhat s$.
A real symmetric matrix $H$ is
-
positive definite if $\v x H\v x^T > 0$ for all real (row) vector $\v x\neq 0$;
-
negative definite if $\v x H\v x^T < 0$ for all real (row) vector $\v x\neq 0$; or
-
indefinite if otherwise.
The nature of a stationary point can sometimes be determined by the Hessian $H$:
-
$H$ is positive definite $\implies$ local minimum.
-
$H$ is negative definite $\implies$ local maximum.
-
If $H$ is indefinite, then we don't know.
Let $\lambda_i$ be the eigenvalues of $H$.
-
$\lambda_i > 0$ for all $i$ $\iff$ $H$ is positive definite $\implies$ local minimum;
-
$\lambda_i < 0$ for all $i$ $\iff$ $H$ is negative definite $\implies$ local maximum;
-
$\lambda_i\neq 0$ for all $i$ and with mixed signs $\implies$ saddle point;
-
Otherwise don't know.
The signature of a matrix $H$ is the pattern of signs of the ordered subdeterminant of the leading principle minors of $H$.
The following is a human-readable definition: for an $n\times n$ matrix $H$, its signature is the list of the signs of $$ |H_1|, |H_2|, |H_3|, \ldots, |H_n| $$ where $$\begin{align*} H_1 &= \pmat{ H_{11} }, \\ H_2 &= \pmat{H_{11} & H_{12} \\ H_{21} & H_{22}}, \\ H_3 &= \pmat{H_{11} & H_{12} & H_{13} \\ H_{21} & H_{22} & H_{23} \\ H_{31} & H_{32} & H_{33} \\ }, \\ \vdots \\ H_n &= H = \pmat{H_{11} & H_{12} & \ldots & H_{1n} \\ H_{21} & H_{22} & \ldots & H_{2n} \\ \vdots & \vdots & & \vdots \\ H_{n1} & H_{n2} & \ldots & H_{nn}}. \end{align*}$$
For a real symmetric $n\times n$ matrix $H$,
-
$H$ is positive definite $\iff$ signature is $+, +, +, \ldots, +$.
-
$H$ is negative definite $\iff$ signature is $-, +, -, +, \ldots, (-1)^n$.
If the eigenvalues of $H$ is non-zero,
-
near a local maximum or minimum, the contours are elliptical;
-
near a saddle point, the contours are hyperbolic.
Consider two functions $y_1$ and $y_2$, $$ \begin{cases} \dot y_1 &= ay_1 + by_2 + f_1(t), \\ \dot y_2 &= cy_1 + dy_2 + f_2(t). \end{cases} $$
$$ \begin{align*} \ddot y_1 &= a\dot y_1 + b(cy_1 + dy_2 + f_2) + \dot f_1 \\ &= a\dot y_1 + bcy_1 + d(by_2) + bf_2 + \dot f_1 \\ &= a\dot y_1 + bcy_1 + d(\dot y_1 - ay_1 - f_1) + bf_2 + \dot f_1 \\ \end{align*} $$ and this is a linear second-order ODE with constant coefficient.
We can write this in vector form $$ \dv Y = M\v Y + \v F$$ where $$ \v Y = \pmat{y_1\\y_2}, \v F = \pmat{ f_1 \\ f_2 }, M = \pmat{a&b \\ c&d}. $$
To look for complementary solution $\v Y_c$, we guess $$ \v Y_c = \v v e^{\lambda t}.$$ Then $$ M\v v = \lambda\v v, $$ so $\lambda$ is an eigenvalue of $M$ and $\v v$ is the eigenvector.
If there are $n$ distinct eigenvalues, then there will be $n$ linearly independent complimentary functions.
If the forcing term is a complementary function, then try $\v Y_p = (\v a + \v bt)e^{\lambda t}$.
A system of first-order linear ODEs has a phase portrait with points $$ \v Y = \pmat{y_1 \\ y_2 \\ \vdots \\ y_n}. $$
For the equation $\dv Y = M\v Y$, consider the non-degenerate general solution $$ \v Y(t) = \v v_1 e^{\lambda_1 t} + \v v_2 e^{\lambda_2 t}, \quad 0\neq \lambda_1 \neq \lambda_2 \neq 0. $$
$\v 0$ is a fixed point. The phase portraits depend on $\lambda_1, \lambda_2$:
-
$\lambda_1, \lambda_2\in\R$
$\v v_1, \v v_2$ are real.
-
Opposite signs (WLOG $\lambda_1 > 0$ and $\lambda_2 < 0$): this is called saddle node.
-
$\lambda_1, \lambda_2>0$ (WLOG $|\lambda_1| > |\lambda_2|$): unstable node
-
$\lambda_1, \lambda_2 < 0$ (WLOG $|\lambda_1| > |\lambda_2|$): stable node
-
-
$\lambda_1, \lambda_2 \not\in \R$
Then since $M$ is real, $\lambda_2 = \lambda_1^*$. Also $\lambda_1^* \v v_1^* = (M\v v_1)^* = M\v v_1^*$ so $\v v_2 = C\v v_1^*$. Then $$ \begin{align*} \v Y(t) = e^{\Re(\lambda_1)t} \Re\left(2\v v_1 e^{i\Im(\lambda_1) t}\right). \end{align*} $$ (Derivation)
-
If $\mrm{Re}(\lambda_1) < 0$, then this is a stable spiral:
-
If $\mrm{Re}(\lambda_2) > 0$, then this is an unstable spiral.
-
If $\mrm{Re}(\lambda_1) = 0$, then this is a centre:
To find out the direction of rotation, evaluate $\dv Y$ at any point, such as determining the sign of $\dot y_2$ at $\v Y = (1, 0)^T$.
-
Consider an autonomous system for 2 non-linear, first-order ODEs $$\begin{cases} \dot x &= f(x,y), \\ \dot y &= g(x,y). \end{cases}$$
A fixed point of the system $$\begin{cases} \dot x &= f(x,y), \\ \dot y &= g(x,y) \end{cases}$$ is a point at which $\dot x = \dot y = 0$. This means $$ f(x,y) = g(x,y) = 0. $$
Let $$\begin{align*} x(t) &= x_0 + \xi(t), &&\xi(t) \ll 1, \\ y(t) &= y_0 + \eta(t), &&\eta(t) \ll 1, \end{align*}$$ where $(x_0, y_0)$ is a fixed point. Then by Taylor expanding, we obtain $$ \pmat{\dot\xi \\ \dot\eta} = \ub{\pmat{\partial f/\partial x & \partial f/\partial y \\ \partial g/\partial x & \partial g/\partial y}}_M\Bigg|_{x_0, y_0} \pmat{\xi \\ \eta},$$ which is a linear system of homogenous ODEs, so the eigenvalue of $M$ determines the stability of the fixed point. (Derivation)
PDEs have multiple independent variables.
Consider the equation $$ \pdfd\psi t - c\pdfd\psi x = f(t). $$ By setting $x = x_0 - ct$ (characteristic), and considering $\psi(x(t), t)$, the equation becomes $$ \dfd\psi t = f(t). $$ (Derivation)
Integrating gives $$ \psi(x, t) = \int f(t)\, dt + g(x_0) = \int f(t)\,dt + g(x + ct) $$ where $g$ is the integration constant, which can be different for each characteristic.
Consider $$ \pdfd[2]\psi t - c^2\pdfd[2]\psi x = 0. $$
This has general solution $$ \psi(x,t) = f(x+ct) + g(x-ct). $$ (Derivation)