Differential Equations Overview
Differential Equations Course Review — Part 1
Basics of Differential Equations
A differential equation is an equation that contains at least one derivative. The independent variable is the variable with respect to which differentiation occurs; the dependent variable is the one being differentiated.
Ordinary differential equation (ODE): Only one independent variable. Example: dxdy+x=y (here x is independent, y is dependent).
Partial differential equation (PDE): More than one independent variable. Example: ∂x2∂2u+∂t∂u=0.
Initial Value Problem (IVP)
An IVP consists of a differential equation plus initial condition(s) given at a single point (usually t=0). The number of initial conditions needed equals the order of the equation.
First order: one initial condition, e.g., y(0)=y0.
Second order: two initial conditions, e.g., y(0)=y0, y′(0)=y1.
Boundary Value Problem (BVP)
A BVP gives conditions at two different points, e.g., y(a)=c, y(b)=d. The number of conditions still matches the order.
Verifying Solutions
To verify that a given function is a solution to a differential equation, substitute the function and its derivatives into the equation and simplify to see if it satisfies the equation identically.
Example: Verify that x(t)=c1e−3t+c2e2t is a solution of x′′+x′−6x=0.
Compute derivatives: x′=−3c1e−3t+2c2e2t, x′′=9c1e−3t+4c2e2t.
Substitute: (9c1e−3t+4c2e2t)+(−3c1e−3t+2c2e2t)−6(c1e−3t+c2e2t)=0.
Simplify: All terms cancel, yielding 0=0, so it is a solution.
If initial conditions are given, the constants c1,c2 can be determined by solving a system of equations.
Example: For the same equation with x(0)=0, x′(0)=−10, solve:
c1+c2=0, −3c1+2c2=−10.
Using elimination: multiply first eq by 3 and add to second: 5c2=−10⇒c2=−2, then c1=2. So x(t)=2e−3t−2e2t.
Four Fundamental Models
1. Exponential Growth
DE: dtdy=ky with k>0.
Solution: y(t)=aekt.
Graph: starts at a, increases without bound.
2. Exponential Decay
DE: dtdy=−ky with k>0.
Solution: y(t)=ae−kt.
Graph: starts at a, decays to zero.
3. Simple Harmonic Motion (SHM)
DE: dt2d2y=−k2y (or y′′+k2y=0).
Solution: y(t)=Acos(kt)+Bsin(kt).
Graph: periodic oscillation.
4. Hybrid Model (Exponential Growth + Decay)
DE: dt2d2y=k2y (or y′′−k2y=0).
Solutions: either y=Acosh(kt)+Bsinh(kt) or y=Cekt+De−kt.
Graph: combines exponential growth and decay (e.g., hanging cable).
Application: Recognizing these forms allows direct writing of general solutions.
Classification of Differential Equations
Ordinary vs. Partial
ODE: one independent variable.
PDE: more than one independent variable.
Order
The order is the highest derivative appearing. Example: y′′+xy′=3 is second order.
Linear vs. Nonlinear
Linear: no powers other than 1 of the dependent variable or its derivatives, and no products of them. Example: dtdx+t3x=t is linear.
Nonlinear: violates linearity, e.g., xdtdx+t3x=t is nonlinear.
Constant Coefficient
All coefficients are constants. Example: 5x′′−3x′+x=0 has constant coefficients; solved via characteristic equation in λ.
Homogeneous vs. Nonhomogeneous
Homogeneous: the equation equals zero (or has no term depending solely on the independent variable). Example: y′′+y=0.
Nonhomogeneous: there is a nonzero function of the independent variable alone. Example: y′′+y=t.
Autonomous
The differential equation does not depend explicitly on the independent variable. Example: dtdx+x2=3 is autonomous.
System of ODEs
Multiple equations involving more than one dependent variable. Example: x′=2y+et, y′=3x+ysint.
Basic Integration
Type 1: Derivative is a function of the independent variable only
Example: dxdy=3cos2x−8e−4x+5, with y(0)=−3.
Integrate: y=23sin2x+2e−4x+5x+C. Using y(0)=−3 gives C=−5, so y=23sin2x+2e−4x+5x−5.
Type 2: Derivative is a function of the dependent variable only
Method: Flip the equation: dydx=g(y)1, then integrate with respect to y: x=∫g(y)1dy.
Example: dxdy=y+3, with y(1)=−2.
Flip to dydx=y+31, integrate: x=ln∣y+3∣+C. Solve for y: y=Ce−x−3. Use initial condition: −2=Ce−1−3⇒C=e, so y=e1−x−3.
Separable Differential Equations
A separable equation can be written as dxdy=f(x)g(y). Separate variables and integrate:
Example 1: dxdy=y(1−4x), y(0)=e.
Separate: ydy=(1−4x)dx. Integrate: ln∣y∣=x−2x2+C ⇒ y=Aex−2x2. Using y(0)=e gives A=e, so y=ex−2x2+1.
Example 2: xdtdx=3et−x (implicit solution).
Rewrite as xexdx=3etdt. Integrate left by parts: ∫xexdx=xex−ex. So xex−ex=3et+C. Cannot solve for x explicitly; this is an implicit solution.
First-Order Linear Differential Equations (Integrating Factor)
Standard form: dxdy+P(x)y=Q(x).
Method:
Find integrating factor I(x)=e∫P(x)dx.
Multiply the whole equation by I: dxdyI+PIy=QI.
The left side becomes dxd(yI).
Integrate: yI=∫QIdx+C.
Solve for y: y=I1(∫QIdx+C).
Example 1: dxdy−3y=e3xsin4x, y(0)=−41.
P=−3, I=e∫−3dx=e−3x.
Multiply: e−3xdxdy−3e−3xy=sin4x ⇒ dxd(ye−3x)=sin4x.
Integrate: ye−3x=−41cos4x+C.
Multiply by e3x: y=−41e3xcos4x+Ce3x.
Use y(0)=−41: −41=−41⋅1+C⇒C=0, so y=−41e3xcos4x.
Example 2: tdtdy−2y=t3e−2t (not in standard form).
Divide by t: dtdy−t2y=t2e−2t.
P(t)=−t2, I=e∫−t2dt=e−2lnt=t−2.
Multiply: t−2dtdy−t32y=e−2t ⇒ dtd(yt−2)=e−2t.
Integrate: yt−2=−21e−2t+C ⇒ y=−21t2e−2t+Ct2.
Substitution Methods
1. Direct Substitution
Used when the DE contains a "inside" function. Let u equal that inside function, rewrite the DE in terms of u, solve, then back‑substitute.
Example: dxdy=(y+4x−3)2, y(0)=4.
Let u=y+4x−3 ⇒ dxdu=dxdy+4.
Then dxdy=dxdu−4. Substituting: dxdu−4=u2 ⇒ dxdu=u2+4.
Separate: u2+4du=dx. Integrate: 21tan−1(2u)=x+C.
So u=2tan(2x+2C). Back‑substitute: y=2tan(2x+2C)−4x+3. Use y(0)=4 to find C: 4=2tan(2C)+3 ⇒ tan(2C)=21 ⇒ 2C=tan−1(21)+kπ. So y=2tan(2x+tan−121+kπ)−4x+3.
2. Homogeneous Equations (second meaning)
An equation is homogeneous if it can be written as dxdy=F(xy). Substitute v=xy, so y=vx and dxdy=v+xdxdv. The DE becomes separable in v and x.
Example: xydxdy=x2+y2, y(1)=2.
Rewrite: dxdy=xyx2+y2=yx+xy=v1+v where v=y/x.
Substitute: v+xdxdv=v1+v ⇒ xdxdv=v1.
Separate: vdv=x1dx ⇒ 2v2=ln∣x∣+C.
Back‑substitute v=y/x: 2x2y2=ln∣x∣+C ⇒ y2=2x2ln∣x∣+2Cx2.
Use y(1)=2: 2=0+2C ⇒ C=1, so y2=2x2(ln∣x∣+1). Take positive root: y=x2(lnx+1) (since x>0 and y(1)>0).
3. Bernoulli Equation
Bernoulli equation: dxdy+P(x)y=Q(x)yn, where n=0,1.
Method:
Divide by yn: y−ndxdy+Py1−n=Q.
Let v=y1−n ⇒ dxdv=(1−n)y−ndxdy.
Substituting yields a linear first‑order DE in v: dxdv+(1−n)Pv=(1−n)Q.
Solve for v using integrating factor, then y=v1/(1−n).
Example: 2xdxdy−y=6x2y3 (Bernoulli with n=3).
Divide by 2x: dxdy−2x1y=3xy3. Here P=−2x1, Q=3x, n=3.
Divide by y3: y−3dxdy−2x1y−2=3x.
Set v=y−2 ⇒ dxdv=−2y−3dxdy. Substituting: −21dxdv−2x1v=3x ⇒ dxdv+x1v=−6x.
Linear in v: I=e∫x1dx=x. Multiply: xdxdv+v=−6x2 ⇒ dxd(xv)=−6x2.
Integrate: xv=−2x3+C ⇒ v=−2x2+xC.
Since v=y−2, y−2=−2x2+xC ⇒ y2=C−2x3x ⇒ y=±C−2x3x.
Exact Differential Equations
A first‑order DE in the form M(x,y)dx+N(x,y)dy=0 is exact if ∂y∂M=∂x∂N. If exact, there exists a function F(x,y) such that dF=Mdx+Ndy, and the general solution is F(x,y)=C.
Method:
Check exactness.
Find F by integrating M with respect to x: F=∫Mdx+g(y).
Differentiate F with respect to y and set equal to N to solve for g′(y); integrate to get g(y).
(Shortcut) Alternatively, integrate M w.r.t x and N w.r.t y separately, then combine: write common terms once and uncommon terms from each.
Example: (3ex−y2)dx+(3−2xy+siny)dy=0.
M=3ex−y2, N=3−2xy+siny.
∂y∂M=−2y, ∂x∂N=−2y → exact.
Integrate M w.r.t x: F=3ex−xy2+g(y).
∂y∂F=−2xy+g′(y). Set equal to N: −2xy+g′(y)=3−2xy+siny ⇒ g′(y)=3+siny.
Integrate: g(y)=3y−cosy.
Thus F(x,y)=3ex−xy2+3y−cosy=C. Implicit solution.
Almost Exact Equations (Integrating Factor)
If ∂y∂M=∂x∂N, the equation may be made exact by multiplying by an integrating factor μ.
Two common cases:
Case 1: If NMy−Nx is a function of x only, then μ(x)=e∫NMy−Nxdx.
Case 2: If MNx−My is a function of y only, then μ(y)=e∫MNx−Mydy.
After multiplying by μ, the equation becomes exact and can be solved as above.
Example: xydx+(2x2+3y2−1)dy=0.
M=xy, N=2x2+3y2−1.
My=x, Nx=4x, not equal.
NMy−Nx=2x2+3y2−1x−4x not function of x alone.
Try case 2: MNx−My=xy4x−x=y3, function of y only.
μ(y)=e∫y3dy=y3. Multiply the DE by y3: xy4dx+(2x2y3+3y5−y3)dy=0. Now exact.
Use shortcut: Integrate M w.r.t x: F=21x2y4+g(y). Integrate N w.r.t y: F=21x2y4+21y6−41y4.
Common term: 21x2y4. Uncommon: 21y6−41y4. So F=21x2y4+21y6−41y4=C. Implicit solution.
Numerical Methods
When analytic solutions are not possible, approximate solutions using numerical methods.
Euler's Method
Given dxdy=f(x,y) and initial condition (x0,y0), with step size h:
Example: Approximate y(2) for dxdy=3y−x, y(0)=−1, h=0.5.
f(x,y)=3y−x.
x0=0,y0=−1.
x1=0.5, y1=−1+0.5(3⋅(−1)−0)=−2.5.
x2=1.0, y2=−2.5+0.5(3⋅(−2.5)−0.5)=−6.5.
x3=1.5, y3=−6.5+0.5(3⋅(−6.5)−1.0)=−16.75.
x4=2.0, y4=−16.75+0.5(3⋅(−16.75)−1.5)=−42.625 ≈ −42.6.
Runge‑Kutta Method (Fourth Order)
More accurate. For dxdy=f(x,y):
This method is very accurate and is the basis for many ODE solvers (e.g., ode45 in MATLAB).
Direction Fields (Slope Fields)
A direction field is a plot of small line segments at grid points showing the slope dxdy=f(x,y). It gives a visual idea of the behavior of solutions without solving.
Example: dxdy=2x−y.
At each point (x,y), draw a short segment with slope 2x−y.
On the line y=2x, slope is zero.
For y<2x, slope positive; for y>2x, slope negative.
Solutions follow the arrows; one can sketch approximate integral curves.
Existence and Uniqueness Theorem
For the IVP dxdy=f(x,y), y(x0)=y0, if f and ∂y∂f are continuous near (x0,y0), then there exists a unique solution in some interval around x0.
Example: dxdy=yx, y(1)=2.
f(x,y)=x/y, ∂y∂f=−x/y2 are continuous near (1,2) (since y=0). Thus a unique solution exists near x=1.
Autonomous Differential Equations
An autonomous equation does not depend explicitly on the independent variable: dtdx=f(x).
Critical points occur when f(x)=0. The behavior near a critical point determines stability:
Stable (sink): solutions approach it as t→∞.
Unstable (source): solutions move away.
Half‑stable: attract on one side, repel on the other.
Example: dtdx=−x2(x+1)(x−2).
Critical points: x=0,−1,2.
Testing sign of f(x) between critical points gives:
x<−1: negative → decreasing → arrow down.
−1<x<0: positive → increasing → arrow up.
0<x<2: positive → increasing → arrow up.
x>2: negative → decreasing → arrow down.
So x=−1 is stable, x=0 is half‑stable, x=2 is unstable.
Important: Solutions never cross a critical point.
Second-Order Linear ODEs — Introduction
Standard Form
If f(x)=0, the equation is homogeneous; otherwise nonhomogeneous.
Superposition Principle
If y1 and y2 are solutions of the homogeneous equation, then y=c1y1+c2y2 is also a solution for any constants c1,c2. (Proof uses linearity of the differential operator L=dx2d2+pdxd+q.)
Linear Independence and the Wronskian
Two functions y1,y2 are linearly independent if c1y1+c2y2=0 for all x implies c1=c2=0.
The Wronskian is:
If W=0 for some x, then y1,y2 are linearly independent.
Example: y1=sin3x, y2=cos3x.
W=sin3x⋅(−3sin3x)−cos3x⋅(3cos3x)=−3(sin23x+cos23x)=−3=0 → linearly independent.
General Solution of Homogeneous Equation
If y1,y2 are two linearly independent solutions, the general solution is y=c1y1+c2y2.
Nonhomogeneous Equation
For y′′+py′+qy=f(x), the general solution is
where yc is the general solution of the homogeneous equation (complementary solution) and yp is any particular solution of the nonhomogeneous equation. Two methods to find yp: undetermined coefficients and variation of parameters.
Existence and Uniqueness for Second Order
If p,q,f are continuous on an interval I containing a, then the IVP y′′+py′+qy=f, y(a)=b, y′(a)=b1 has a unique solution on I.
Reduction of Order
If one solution y1 (nonzero) of the homogeneous linear second‑order ODE is known, a second linearly independent solution can be found by assuming y2=y1u, substituting into the ODE, and solving a first‑order equation for u.
Reduction of Order Formula (if the ODE is in standard form y′′+p(x)y′+q(x)y=0):
Example: Given y1=x is a solution of x2y′′−xy′+y=0.
First write in standard form: y′′−x1y′+x21y=0, so p(x)=−x1.
e−∫pdx=e∫x1dx=elnx=x.
y2=x∫x2xdx=x∫x1dx=xlnx.
General solution: y=c1x+c2xlnx.
Constant Coefficient Second-Order ODEs
For ay′′+by′+cy=0 with a,b,c constants, assume y=eλt. The characteristic equation is aλ2+bλ+c=0.
Three cases:
Distinct real roots λ1,λ2: y=c1eλ1t+c2eλ2t.
Repeated real root λ: y=(c1+c2t)eλt.
Complex conjugate roots α±iβ: y=eαt(c1cosβt+c2sinβt).
Example: x′′+x′+3x=0, x(0)=0, x′(0)=22.
Characteristic: λ2+λ+3=0 → λ=−21±211i.
General solution: x(t)=e−t/2(c1cos211t+c2sin211t).
x(0)=0 ⇒ c1=0. x′(t)=e−t/2(c2211cos211t−21c2sin211t).
x′(0)=22 ⇒ c2211=22 ⇒ c2=1144=411.
So x(t)=411e−t/2sin211t (damped oscillation).
Cauchy-Euler Equation
Form: ax2y′′+bxy′+cy=0 (for x>0).
Assume y=xr. Substitute to get the characteristic equation:
Alternative method: Let x=et, transforming the DE into a constant‑coefficient ODE in t.
Three cases (for x>0):
Distinct real roots r1,r2: y=c1xr1+c2xr2.
Repeated real root r: y=(c1+c2lnx)xr.
Complex conjugate roots α±iβ: y=xα(c1cos(βlnx)+c2sin(βlnx)).
Example: x2y′′−3xy′−5y=0, x>0.
Characteristic: r2+(−3−1)r−5=0 → r2−4r−5=0 → (r−5)(r+1)=0.
Roots: r=5,−1.
General solution: y=c1x−1+c2x5=xc1+c2x5.
Higher Order Constant Coefficient ODEs
For ay(n)+by(n−1)+⋯+dy=0, the characteristic equation is aλn+bλn−1+⋯+d=0.
General solution uses the same pattern as second order:
Each distinct real root λ gives term ceλx.
Each repeated root λ of multiplicity m gives (c1+c2x+⋯+cmxm−1)eλx.
Each complex conjugate pair α±iβ of multiplicity m gives eαx[(A1+A2x+⋯+Amxm−1)cosβx+(B1+⋯+Bmxm−1)sinβx].
Example: 2y′′′+y′′+y=0.
Characteristic: 2λ3+λ2+1=0. Use factor theorem: λ=−1 is a root (since 2(−1)+1+1=0).
Synthetic division gives (λ+1)(2λ2−λ+1)=0.
Quadratic gives λ=41±47i.
General solution: y=c1e−t+et/4(c2cos47t+c3sin47t).
Nonhomogeneous Equations — Undetermined Coefficients
Used for constant‑coefficient linear ODEs ay′′+by′+cy=f(x) when f(x) is of a limited type: exponentials, sines/cosines, polynomials, or combinations/products thereof.
Method:
Find the complementary solution yc (solve homogeneous).
Guess a form for yp based on f(x):
For eβx: guess Aeβx.
For sinβx or cosβx: guess Acosβx+Bsinβx.
For polynomial of degree n: guess Anxn+An−1xn−1+⋯+A0.
If the guess is already a solution of the homogeneous equation, multiply by x (or x2 if repeated root).
For products/combinations, include all needed terms.
Compute derivatives of yp, substitute into the ODE, and equate coefficients of like terms to solve for the undetermined coefficients.
General solution: y=yc+yp.
Apply initial conditions at the end (if given).
Example: y′′−y′−2y=6+8e−2t−4cos2t, y(0)=0, y′(0)=2.
Homogeneous: λ2−λ−2=0 → λ=−1,2 → yc=c1e−t+c2e2t.
For constant 6: guess A.
For 8e−2t: guess Be−2t (since −2 not a root).
For −4cos2t: guess Ccos2t+Dsin2t.
yp=A+Be−2t+Ccos2t+Dsin2t.
Compute yp′ and yp′′, substitute, equate coefficients:
Constant: −2A=6 → A=−3.
e−2t: 4B+2B−2B=8 → 4B=8 → B=2.
cos2t: −4C−(−2D)−2C=−4 → −6C+2D=−4 → divide 2: −3C+D=−2 (1)
sin2t: −4D−(2C)−2D=0 → −6D+2C=0 → C=3D (2)
Solve: from (1): −3(3D)+D=−9D+D=−8D=−2 → D=1/5, C=3/5.
So yp=−3+2e−2t+53cos2t+51sin2t.
General: y=c1e−t+c2e2t−3+2e−2t+53cos2t+51sin2t.
Use initial conditions to find c1,c2: y(0)=0 gives c1+c2−3+2+53=0 → c1+c2=52 (eq1).
y′(t)=−c1e−t+2c2e2t−4e−2t−56sin2t+52cos2t.
y′(0)=2 gives −c1+2c2−4+52=2 → −c1+2c2=528 (eq2).
Solve: add eq1 and eq2: 3c2=530=6 → c2=2. Then c1=52−2=−58.Final solution: y=−58e−t+2e2t−3+2e−2t+53cos2t+51sin2t.
Variation of Parameters
More general method for finding yp for y′′+p(x)y′+q(x)y=f(x) (standard form). Works for any continuous f(x).
Formula: Given two linearly independent solutions y1,y2 of the homogeneous equation, a particular solution is
where W=y1y2′−y2y1′ is the Wronskian.
Alternative approach: Solve the system
for u1′,u2′, then integrate to get u1,u2, and yp=u1y1+u2y2.
Example: y′′+y=tanx.
Homogeneous: y′′+y=0 → yc=c1cosx+c2sinx. Choose y1=cosx, y2=sinx.
Wronskian: W=cosx⋅cosx−sinx⋅(−sinx)=cos2x+sin2x=1.
Using formula:
yp=−cosx∫1sinx⋅tanxdx+sinx∫1cosx⋅tanxdx=−cosx∫cosxsin2xdx+sinx∫sinxdx.∫sinxdx=−cosx.
∫cosxsin2xdx=∫cosx1−cos2xdx=∫(secx−cosx)dx=ln∣secx+tanx∣−sinx.
So yp=−cosx(ln∣secx+tanx∣−sinx)+sinx(−cosx)=−cosxln∣secx+tanx∣+cosxsinx−sinxcosx=−cosxln∣secx+tanx∣.General solution: y=c1cosx+c2sinx−cosxln∣secx+tanx∣.

Ask anything
We've read this whole study set, so questions about it get the best answers.