Ordinary Differential Equations: Lectures by Arman Bayramyan

Definition and Scope of Ordinary Differential Equations

  • Mathematical Definition: An Ordinary Differential Equation (ODE) is an equation of the form:     F(x,y,y′,…,y(n))=0F(x, y, y', \dots, y^{(n)}) = 0     where:

    • x∈Rx \in \mathbb{R} is the independent variable.

    • y=y(x)y = y(x) is the unknown function.

    • FF is a function of n+2n+2 variables (n≥1n \ge 1).

  • Terminology:

    • Differential: The equation contains derivatives of the unknown function.

    • Ordinary: The derivatives are "ordinary" (with respect to a single variable) as opposed to partial derivatives.

  • Examples:

    • ODE: y(y′)2−2x2y=sin⁡(x)y(y')^2 - 2x^2y = \sin(x). Here n=1n = 1, and the function is F(x1,x2,x3)=x2x32−2x12x2−sin⁡(x1)F(x_1, x_2, x_3) = x_2x_3^2 - 2x_1^2x_2 - \sin(x_1).

    • Non-ODE: y′=y(y(x))y' = y(y(x)) is not a differential equation because it cannot be represented in the standard form (it is a functional differential equation).

Real-World Applications of Differential Equations

  • Problem of a Falling Body:

    • Consider a body of mass mm in free fall from height hh without initial velocity.

    • Let x(t)x(t) be the height and v(t)=dxdtv(t) = \frac{dx}{dt} be the velocity at time tt.

    • According to Newton's Second Law: ma=mdvdt=Fm \mathbf{a} = m \frac{d\mathbf{v}}{dt} = \mathbf{F}.

    • If gravity is the only force: md2xdt2=−mgm \frac{d^2x}{dt^2} = -mg.

    • If air resistance is proportional to velocity (r(t)=−γv(t)\mathbf{r}(t) = -\gamma \mathbf{v}(t), where γ>0\gamma > 0):         md2xdt2=−mg−γdxdtm \frac{d^2x}{dt^2} = -mg - \gamma \frac{dx}{dt}         mdvdt=−mg−γvm \frac{dv}{dt} = -mg - \gamma v

  • Radiocarbon Dating Method:

    • Used to determine the age of organic materials based on the amount of radioactive Carbon-14 (14C^{14}C).

    • The rate of decay is proportional to the mass of the substance at that moment.

    • Let c(t)c(t) be the concentration at time tt (t=0t=0 at death):         dcdt=−kc\frac{dc}{dt} = -kc         where k>0k > 0.

  • Predator-Prey Model (Volterra Model):

    • Let x(t)x(t) be the number of prey (rabbits) and y(t)y(t) the number of predators (wolves).

    • Model proposed by Vito Volterra:

      1. In the absence of predators, prey grows proportionally: dxdt=αx\frac{dx}{dt} = \alpha x.

      2. Meetings between species are proportional to xyxy, leading to prey loss: dxdt=αx−βxy\frac{dx}{dt} = \alpha x - \beta xy.

      3. Predators die without food but grow through meetings: dydt=−γy+δxy\frac{dy}{dt} = -\gamma y + \delta xy.

    • Represented as a system:         {dxdt=αx−βxydydt=−γy+δxy\begin{cases} \frac{dx}{dt} = \alpha x - \beta xy \\ \frac{dy}{dt} = -\gamma y + \delta xy \end{cases}

Classification of Differential Equations

  • Ordinary vs. Partial: ODEs involve one variable; Partial Differential Equations (PDEs) involve functions of multiple variables (e.g., Wave Equation: ∂2u(x,t)∂t2=c2∂2u(x,t)∂x2\frac{\partial^2u(x, t)}{\partial t^2} = c^2 \frac{\partial^2u(x, t)}{\partial x^2}).

  • Linearity: An ODE is linear if FF is linear with respect to variables y,y′,…,y(n)y, y', \dots, y^{(n)}. General form:     an(x)y(n)+an−1(x)y(n−1)+⋯+a0(x)y=f(x)a_n(x)y^{(n)} + a_{n-1}(x)y^{(n-1)} + \dots + a_0(x)y = f(x)

    • Non-linear example: The mathematical pendulum equation d2θdt2+gLsin⁡(θ)=0\frac{d^2\theta}{dt^2} + \frac{g}{L} \sin(\theta) = 0

  • Order: The order of the highest derivative present in the equation.

  • Normal Form: The highest-order derivative is explicitly expressed by the remaining terms:     y(n)=f(x,y,y′,…,y(n−1))y^{(n)} = f(x, y, y', \dots, y^{(n-1)})

Solutions and the Cauchy Problem

  • Definition of Solution (Integral): A function u:I→Ru: I \rightarrow \mathbb{R} defined on interval I⊂RI \subset \mathbb{R} such that:

    1. u∈Cn(I)u \in C^n(I).

    2. F(x,u(x),u′(x),…,u(n)(x))=0F(x, u(x), u'(x), \dots, u^{(n)}(x)) = 0 for all x∈Ix \in I.

  • General Solution: For a simple equation like dydx=f(x)\frac{dy}{dx} = f(x), the general solution is y(x)=∫f(x)dx+Cy(x) = \int f(x)dx + C. The graph of a solution is called an integral curve.

  • Implicit Solution: A relation Φ(x,y)=0\Phi(x, y) = 0 that defines at least one function y=u(x)y = u(x) solving the ODE.

  • The Cauchy Problem: An ODE coupled with initial conditions (e.g., y(x0)=y0y(x_0) = y_0).

  • Existence and Uniqueness Theorems:

    • Peano Theorem: If f(x,y)f(x, y) is continuous in rectangle Ω\Omega, there exists at least one solution to the Cauchy problem in the interval [x0−h,x0+h][x_0 - h, x_0 + h], where h=min⁡{a,bM}h = \min\{a, \frac{b}{M}\} and M=max⁡∣f(x,y)∣M = \max |f(x, y)|.

    • Picard Theorem: If f(x,y)f(x, y) is continuous and satisfies the Lipschitz condition (∣f(x,y1)−f(x,y2)∣≤L∣y1−y2∣|f(x, y_1) - f(x, y_2)| \le L|y_1 - y_2|) with respect to the second variable, there is a unique solution in [x0−h,x0+h][x_0 - h, x_0 + h].

Direction Fields and Isoclines

  • Direction Field: The set of vectors (1,f(x,y))(1, f(x, y)) placed at every point (x,y)(x, y) in the domain, representing slopes of integral curves.

  • Isocline: A line where the slope of the direction field is constant (level curves of f(x,y)f(x, y)).

First-Order Equations: Separable and Linear

  • Separable Equations: y′=p(x)q(y)y' = p(x)q(y).

    • Method: Divide by q(y)q(y) and integrate: ∫1q(y)dy=∫p(x)dx+C\int \frac{1}{q(y)}dy = \int p(x)dx + C.

    • Stationary Solutions: Constant solutions where q(y)=0q(y) = 0.

  • Linear Equations: y′+a(x)y=b(x)y' + a(x)y = b(x).

    • Homogeneous Case (b(x)≡0b(x) \equiv 0): y(x)=Ce−∫a(x)dxy(x) = Ce^{-\int a(x)dx}.

    • Non-homogeneous Case: General solution y(x)=e−∫a(x)dx(C+∫b(x)e∫a(x)dxdx)y(x) = e^{-\int a(x)dx} \left( C + \int b(x) e^{\int a(x)dx} dx \right), or y=yh+ypy = y_h + y_p.

    • Variation of Constants Method: Replace constant CC with a function C(x)C(x) to find the particular solution.

Exact Equations and Integrating Factors

  • Exact Equation: M(x,y)dx+N(x,y)dy=0M(x, y)dx + N(x, y)dy = 0 is exact if there exists a potential function F(x,y)F(x, y) such that ∂F∂x=M\frac{\partial F}{\partial x} = M and ∂F∂y=N\frac{\partial F}{\partial y} = N.

  • Condition for Exactness: ∂M∂y=∂N∂x\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x} in a simply connected domain.

  • Solution: F(x,y)=CF(x, y) = C. A specific potential formula is:     F(x,y)=∫x0xM(s,y0)ds+∫y0yN(x,t)dtF(x, y) = \int_{x_0}^x M(s, y_0)ds + \int_{y_0}^y N(x, t)dt

  • Integrating Factor: If the equation is not exact, multiply by μ(x,y)\mu(x, y) such that (μM)y=(μN)x(\mu M)_y = (\mu N)_x. The factor must satisfy:     Mμy−Nμx=(Nx−My)μM \mu_y - N \mu_x = (N_x - M_y)\mu

Substitution Methods

  • Homogeneous Equations: M(x,y)dx+N(x,y)dy=0M(x, y)dx + N(x, y)dy = 0 where M,NM, N are homogeneous functions of the same degree. Substitute u=yxu = \frac{y}{x}. The equation becomes xdudx=F(u)−ux \frac{du}{dx} = F(u) - u.

  • Bernoulli Equation: y′+P(x)y=Q(x)yαy' + P(x)y = Q(x)y^\alpha (α≠0,1\alpha \neq 0, 1). Substitute z=y1−αz = y^{1-\alpha} to transform it into a linear equation.

  • Riccati Equation: y′=P(x)+Q(x)y+R(x)y2y' = P(x) + Q(x)y + R(x)y^2. If one particular solution y1(x)y_1(x) is known, substitute y=y1+zy = y_1 + z to get a Bernoulli equation for zz.

Numerical Methods for First-Order ODEs

  • Euler's Method: Approximates the integral curve with a sequence of tangents.

    • Step: h=b−x0nh = \frac{b - x_0}{n}.

    • Iterative formula: yk+1=yk+hf(xk,yk)y_{k+1} = y_k + hf(x_k, y_k).

    • Local Error: O(h2)O(h^2), Global Error: O(h)O(h).

  • Runge-Kutta Method (RK4): Uses a weighted average of four slopes per step.

    • ki1=f(xi,yi)k_{i1} = f(x_i, y_i)

    • ki2=f(xi+h2,yi+h2ki1)k_{i2} = f(x_i + \frac{h}{2}, y_i + \frac{h}{2} k_{i1})

    • ki3=f(xi+h2,yi+h2ki2)k_{i3} = f(x_i + \frac{h}{2}, y_i + \frac{h}{2} k_{i2})

    • ki4=f(xi+h,yi+hki3)k_{i4} = f(x_i + h, y_i + h k_{i3})

    • yi+1=yi+h6(ki1+2ki2+2ki3+ki4)y_{i+1} = y_i + \frac{h}{6} (k_{i1} + 2k_{i2} + 2k_{i3} + k_{i4})

    • Global Error: O(h4)O(h^4).

Second-Order Linear Equations

  • Spring-Mass Motion: Developed from Newton's law and Hooke's Law (F=−k(s+x)F = -k(s+x)). Equation: md2xdt2=−kxm \frac{d^2x}{dt^2} = -kx.

  • General Form: y′′+P(x)y′+Q(x)y=R(x)y'' + P(x)y' + Q(x)y = R(x).

  • Existence/Uniqueness: With two conditions y(x0)=y0y(x_0) = y_0 and y′(x0)=y0′y'(x_0) = y'_0, a unique solution exists if P,Q,RP, Q, R are continuous in (a,b)(a, b).

  • Homogeneous General Solution: y=c1y1+c2y2y = c_1 y_1 + c_2 y_2.

  • Wronskian: W[y1,y2]=y1y2′−y2y1′W[y_1, y_2] = y_1 y_2' - y_2 y_1'. If W≠0W \ne 0, then y1,y2y_1, y_2 are linearly independent.

  • Abel-Liouville Formula: W(x)=W(x0)e−∫x0xP(t)dtW(x) = W(x_0)e^{-\int_{x_0}^x P(t)dt}.

  • Constant Coefficients: ay′′+by′+cy=0ay'' + by' + cy = 0. Solve characteristic equation ar2+br+c=0ar^2 + br + c = 0.

    1. Distinct Real Roots: y(x)=c1er1x+c2er2xy(x) = c_1 e^{r_1 x} + c_2 e^{r_2 x}.

    2. Complex Roots (r=λ±μir = \lambda \pm \mu i): y(x)=eλx(c1cos⁡(μx)+c2sin⁡(μx))y(x) = e^{\lambda x}(c_1 \cos(\mu x) + c_2 \sin(\mu x)).

    3. Repeated Root (r1=r2=rr_1 = r_2 = r): y(x)=(c1+c2x)erxy(x) = (c_1 + c_2 x)e^{rx}.

  • Non-homogeneous General Solution: y=yh+ypy = y_h + y_p. Use Variation of Constants to find ypy_p.

Series Solutions and the Frobenius Method

  • Analytical Function: Function representable by a power series around x0x_0.

  • Ordinary Point: x0x_0 where P(x)P(x) and Q(x)Q(x) are analytical.

  • Series Expansion: ∑n=0∞an(x−x0)n\sum_{n=0}^\infty a_n (x-x_0)^n. Determine coefficients using recurrence relations.

  • Regular Singular Point: x0x_0 where (x−x0)P(x)(x-x_0)P(x) and (x−x0)2Q(x)(x-x_0)^2Q(x) are analytical.

  • Frobenius Method: Solution of form y(x)=xr∑n=0∞anxny(x) = x^r \sum_{n=0}^\infty a_n x^n.

Higher-Order Linear ODEs

  • General Theory: y(n)+p1(x)y(n−1)+⋯+pn(x)y=f(x)y^{(n)} + p_1(x)y^{(n-1)} + \dots + p_n(x)y = f(x).

  • Operator Notation: Ly=[Dn+p1Dn−1+⋯+pnI](y)Ly = [D^n + p_1 D^{n-1} + \dots + p_n I](y). Operator LL is linear.

  • Fundamental System: A set of nn linearly independent solutions y1,…,yny_1, \dots, y_n. Independence verified if the n×nn \times n Wronskian determinant is non-zero.

  • Constant Coefficients: Roots of P(r)=a0rn+a1rn−1+⋯+an=0P(r) = a_0 r^n + a_1 r^{n-1} + \dots + a_n = 0.

    • For an mm-multiplicity root r1r_1, solutions are er1x,xer1x,…,xm−1er1xe^{r_1 x}, x e^{r_1 x}, \dots, x^{m-1} e^{r_1 x}.

Systems of Linear ODEs

  • Normal Form of Systems:     {y1′=A11(x)y1+⋯+A1n(x)yn+f1(x)…yn′=An1(x)y1+⋯+Ann(x)yn+fn(x)\begin{cases} y'_1 = A_{11}(x)y_1 + \dots + A_{1n}(x)y_n + f_1(x) \\ \dots \\ y'_n = A_{n1}(x)y_1 + \dots + A_{nn}(x)y_n + f_n(x) \end{cases}

  • Vector Notation: y′=A(x)y+f(x)\mathbf{y}' = \mathbf{A}(x)\mathbf{y} + \mathbf{f}(x).

  • Fundamental Matrix Ψ(x)\Psi(x): A matrix whose columns are linearly independent vector solutions.

  • Matrix Exponent: For constant A\mathbf{A}, the fundamental matrix is eAx=∑m=0∞(Ax)mm!e^{\mathbf{A}x} = \sum_{m=0}^\infty \frac{(\mathbf{A}x)^m}{m!}.

    • Calculation: Use Jordan Normal Form A=PJP−1A = PJP^{-1}. Then eA=PeJP−1e^A = Pe^JP^{-1}.

Autonomous Systems and Stability

  • Autonomous System: Independent of explicit time tt: y′=F(y)\mathbf{y}' = \mathbf{F}(\mathbf{y}).

  • Equilibrium/Critical Point: Point y∗\mathbf{y}^* such that F(y∗)=0\mathbf{F}(\mathbf{y}^*) = \mathbf{0}.

  • Phase Portrait: Visualization of trajectories in the state space.

  • Classification of 2D Linear Critical Points:

    • Stable Node: Real, distinct, negative eigenvalues.

    • Unstable Node: Real, distinct, positive eigenvalues.

    • Saddle Point: Real eigenvalues of opposite signs.

    • Center: Purely imaginary eigenvalues.

    • Stable/Unstable Focus: Complex eigenvalues with negative/positive real parts.

  • Stability Definitions:

    1. Stable: Solutions starting near y∗\mathbf{y}^* stay near forever.

    2. Asymptotically Stable: Solutions starting near y∗\mathbf{y}^* approach it as t→∞t \rightarrow \infty.

  • Lyapunov Stability for Almost Linear Systems: If the Jacobian J=F′(y∗)J = \mathbf{F}'(\mathbf{y}^*) has eigenvalues with non-zero real parts, the stability of the non-linear system matches the linearized system y′=Jyy' = Jy.