Differential Equations Notes

Copyright Notice

  • Do not copy for others, including friends or family.
  • Do not distribute online in any form, including social media.
  • Do not sell to tutoring companies or other organizations.
  • These files are strictly for personal use only.
  • Agreement to all conditions is required before using the files.
  • If you do not agree, please inform the instructor to be removed from D2L.

Introduction to Differential Equations

Definitions

  • Ordinary Differential Equation (ODE): An equation containing an unknown function of a single variable together with its derivatives with respect to that variable.
  • Partial Differential Equation (PDE): An equation containing an unknown function of two or more variables together with its partial derivatives with respect to these variables.
  • Order of a Differential Equation: The order of an ODE or PDE is the order of the highest derivative present.

Examples

  • ODE Example: d2xdt2=t\frac{d^2x}{dt^2} = t

    • Unknown function: x=x(t)x = x(t) (dependent variable).
    • Independent variable: tt.
    • Order: Two (second-order derivative present).
  • PDE Example: K \frac{\partial^2 u}{\partial x^2} = \frac{\partial u}{\partial t}, K > 0

    • Unknown function: u=u(x,t)u = u(x, t) (dependent variable).
    • Independent variables: xx and tt.
    • Order: Two (second-order PDE).
    • Known as the Heat Conduction Equation.

Mathematical Modeling

  • Differential equations (ordinary or partial) occur in connection with numerous applications in various branches of science and engineering.

  • Examples of Problems:

    1. Conduction of heat in a rod, plate, or slab.
    2. Vibration in a string or a membrane.
    3. Determining gravitational or electrical potential.
    4. Determining the motion of a projectile, planet, or satellite.
    5. Reaction of chemicals.
    6. Growth and decay problems.
    7. Determining curves having specific geometric properties (e.g., in robotics).
    8. Mixture problems.
    9. Hanging cables.
  • These problems involve not only a differential equation but also a set of supplementary conditions, such as:

    • Initial Conditions
    • Boundary Conditions

Solution to an ODE

  • Definition: A solution to an ODE in an interval I is a function having sufficient derivatives in I and which identically satisfies the ODE.

  • Example: Show that x(t)=e5tx(t) = e^{5t} is a solution to the ODE d2xdt2+2dxdt35x=0\frac{d^2x}{dt^2} + 2 \frac{dx}{dt} - 35x = 0 on R=(,)\mathbb{R} = (-\infty, \infty).

  • Solution:

    • Given ODE: x+2x35x=0x'' + 2x' - 35x = 0 (*)
    • x=e5tx = e^{5t} (1)
    • x=5e5tx' = 5e^{5t} (2)
    • x=25e5tx'' = 25e^{5t} (3)
    • x,x,x, x', and xx'' exist on R\mathbb{R}.

    Substitute (1), (2), and (3) into the left-hand side (L.H.S) of (*):

L.H.S=25e5t+2(5e5t)35e5t=25e5t+10e5t35e5t=0=R.H.SL.H.S = 25e^{5t} + 2(5e^{5t}) - 35e^{5t} = 25e^{5t} + 10e^{5t} - 35e^{5t} = 0 = R.H.S

Verified. Therefore, x(t)=e5tx(t) = e^{5t} is a solution to the ODE in R\mathbb{R}.

  • Example: Given the DE t2xtx8x=0t^2 x'' - t x' - 8x = 0, find all values of the constant real number K so that x(t)=tKx(t) = t^K is a solution to the DE on (0,)(0, \infty).

  • Solution:

    • Given DE: t2xtx8x=0t^2 x'' - t x' - 8x = 0 (*.I)
    • x=tKx = t^K (1)
    • x=KtK1x' = K t^{K-1} (2)
    • x=K(K1)tK2x'' = K(K-1) t^{K-2} (3)

Substitute (1), (2), and (3) in DE (*.I):

t2[K(K1)tK2]t[KtK1]8[tK]=0t^2 [K(K-1)t^{K-2}] - t [Kt^{K-1}] - 8[t^K] = 0
K(K1)tKKtK8tK=0K(K-1)t^K - Kt^K - 8t^K = 0
[K(K1)K8]tK=0[K(K-1) - K - 8]t^K = 0

Since tK0t^K \neq 0 (for t(0,)t \in (0, \infty)), then:

K(K1)K8=0K(K-1) - K - 8 = 0
K2KK8=0K^2 - K - K - 8 = 0
K22K8=0K^2 - 2K - 8 = 0
(K4)(K+2)=0(K-4)(K+2) = 0
K=4,2K = 4, -2

There are two solutions: x<em>1(t)=t4x<em>1(t) = t^4 and x</em>2(t)=t2x</em>2(t) = t^{-2}.

Initial Value Problem (IVP) vs Boundary Value Problem (BVP)

  • Initial Value Problem (IVP): An ODE together with the prescribed initial conditions. The conditions are prescribed at exactly one value of t.

    • Example: x(t)+x(t)=0x''(t) + x(t) = 0 with supplementary conditions x(0)=5x(0) = 5 and x(0)=7x'(0) = -7 is an IVP.
  • Boundary Value Problem (BVP): An ODE together with the prescribed boundary conditions. The conditions are prescribed at more than one value of t.

    • Example: x(t)+x(t)=0x''(t) + x(t) = 0 together with the supplementary conditions x(0)=5x(0) = 5 and x(π)=2x'(\pi) = -2 is a BVP.
  • Note: The condition x(t<em>0)=x</em>0x(t<em>0) = x</em>0 means x=x<em>0x = x<em>0 at t=t</em>0t = t</em>0.

General Solution to an ODE

  • Definition: The general solution to an ODE is a formula that describes all possible solutions to the DE.

  • The general solution to an nth-order ODE must contain n arbitrary constants C<em>1,C</em>2,,CnC<em>1, C</em>2, …, C_n. These arbitrary constants may also be referred to as parameters, and accordingly, the general solution may be referred to as an n-parameter family of solutions.

  • Example: Given the DE dxdt=2t\frac{dx}{dt} = 2t
    (a) Find the general solution to the DE.
    (b) Sketch few members of the one-parameter family of solutions.

  • Solution:
    (a) dxdt=2t\frac{dx}{dt} = 2t
    Integrate both sides:
    x=2tdt=t2+Cx = \int 2t dt = t^2 + C, where C is an arbitrary constant.
    Therefore, x=t2+Cx = t^2 + C is the general solution to the DE.
    (b) The general solution is a one-parameter family, namely x=t2+C,CRx = t^2 + C, C \in \mathbb{R}. xC=(t0)2x - C = (t - 0)^2. This is a family of parabolas with a vertex at (0,C)(0, C) and which opens upward.

First-Order Equations

  • Consider first-order equations of the form dydx=f(x,y)\frac{dy}{dx} = f(x, y).

Separable Equations

  • A separable equation is one in which f can be expressed as a function of x times a function of y, i.e., dydx=g(x)h(y)\frac{dy}{dx} = g(x)h(y).

Method of Solution

  • Rewrite h(y)0h(y) \neq 0 as dyh(y)=g(x)dx\frac{dy}{h(y)} = g(x) dx.

  • Integrate both sides: dyh(y)=g(x)dx\int \frac{dy}{h(y)} = \int g(x) dx.

  • The solution is given implicitly by H(y)=G(x)+CH(y) = G(x) + C, where H(y)=1h(y)H'(y) = \frac{1}{h(y)} and G(x)=g(x)G'(x) = g(x).

  • Note: If h(y<em>0)=0h(y<em>0) = 0, then y(x)=y</em>0y(x) = y</em>0 is a solution (called a singular solution).

Example of Separable Equations

  • Example: Solve the differential equation dydx=x21y2\frac{dy}{dx} = \frac{x^2}{1 - y^2}.

  • Solution: Separate variables:
    (1y2)dy=x2dx(1 - y^2) dy = x^2 dx.

Integrate both sides:
(1y2)dy=x2dx\int (1 - y^2) dy = \int x^2 dx
yy33=x33+Cy - \frac{y^3}{3} = \frac{x^3}{3} + C.

So the solutions are given implicitly by yy33=x33+Cy - \frac{y^3}{3} = \frac{x^3}{3} + C.

Homogeneous Equations

  • A homogeneous equation can be written in the form dydx=F(yx)\frac{dy}{dx} = F(\frac{y}{x}).

Method of Solution

  • Let v=yxv = \frac{y}{x}. Then y=vxy = vx. So dydx=v+xdvdx\frac{dy}{dx} = v + x \frac{dv}{dx}.
  • Substitute into the original equation: v+xdvdx=F(v)v + x \frac{dv}{dx} = F(v).
  • Separate variables and integrate: dvF(v)v=dxx\frac{dv}{F(v) - v} = \frac{dx}{x}.

Note that the method for solving homogeneous equation may not work at v=F(v)v = F(v), hence it produces singular solutions.

Exact Differential Equations

  • An exact differential equation is an equation of the form M(x,y)dx+N(x,y)dy=0M(x, y) dx + N(x, y) dy = 0, where My=Nx\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}.

Method of Solution

  • Find a function ψ(x,y)\psi(x, y) such that ψx=M(x,y)\frac{\partial \psi}{\partial x} = M(x, y) and ψy=N(x,y)\frac{\partial \psi}{\partial y} = N(x, y).
  • Then the solution is given implicitly by ψ(x,y)=C\psi(x, y) = C, where C is a constant.

-Note: The reason this approach works is that if ψ(x,y)=C\psi(x, y) = C, then by the chain rule, ψxdx+ψydy=0\frac{\partial \psi}{\partial x} dx + \frac{\partial \psi}{\partial y} dy = 0, which is the original differential equation.

Integrating Factors

  • If the equation M(x,y)dx+N(x,y)dy=0M(x, y) dx + N(x, y) dy = 0 is not exact, it may be possible to find a function μ(x,y)\mu(x, y) such that the equation μ(x,y)M(x,y)dx+μ(x,y)N(x,y)dy=0\mu(x, y) M(x, y) dx + \mu(x, y) N(x, y) dy = 0 is exact. Then μ(x,y)\mu(x, y) is called an integrating factor.

Linear First-Order Equations

  • A linear first-order equation is one that can be written in the form
    dydx+p(x)y=q(x)\frac{dy}{dx} + p(x)y = q(x)

Method of Solution

  1. Calculate the integrating factor: μ(x)=ep(x)dx\mu(x) = e^{\int p(x) dx}
  2. Multiply both sides of the equation by μ(x)\mu(x):
    μ(x)dydx+μ(x)p(x)y=μ(x)q(x)\mu(x) \frac{dy}{dx} + \mu(x) p(x) y = \mu(x) q(x)
  3. Observe that the left-hand side is the derivative of μ(x)y\mu(x) y:
    ddx(μ(x)y)=μ(x)q(x)\frac{d}{dx} (\mu(x) y) = \mu(x) q(x)
  4. Integrate both sides with respect to x:
    μ(x)y=μ(x)q(x)dx+C\mu(x) y = \int \mu(x) q(x) dx + C
  5. Solve for y:
    y=1μ(x)μ(x)q(x)dx+Cμ(x)y = \frac{1}{\mu(x)} \int \mu(x) q(x) dx + \frac{C}{\mu(x)}