An Ordinary Differential Equation (ODE) is a mathematical equation establishing an algebraic relationship between an independent variable, a single dependent variable, and one or more ordinary derivatives of the dependent variable with respect to the independent variable.
Φ(x,y,dxdy,dx2d2y,…,dxndny)=0
Where:
- x∈R is the independent variable.
- y=y(x) is the unknown dependent function.
- dxkdky denotes the k-th order ordinary derivative of y with respect to x.
Differential Equations
|
+--------------------+--------------------+
| |
Ordinary Differential Equations Partial Differential Equations
(ODEs) (PDEs)
(Single independent variable) (Two or more independent variables)
- Order: The order of a differential equation is the order of the highest derivative appearing in the equation.
- Degree: The degree of a differential equation is the power (positive integer exponent) of the highest derivative, after the equation has been expressed in a form free of fractional exponents and radicals involving derivatives.
- (dx2d2y)3+(dxdy)5+y=sinx
- Highest derivative is dx2d2y⟹Order=2.
- Power of highest derivative is 3⟹Degree=3.
- [1+(dxdy)2]3/2=kdx2d2y
- Squaring both sides to eliminate the fractional exponent:
[1+(dxdy)2]3=k2(dx2d2y)2
- Highest derivative is dx2d2y⟹Order=2.
- Power of highest derivative is 2⟹Degree=2.
- dxdy=edy/dx or sin(dxdy)+y=0
- Order=1; however, the equation cannot be expanded as a polynomial in dxdy⟹Degree is undefined.
A differential equation is defined as linear if it satisfies two strict criteria:
- The dependent variable y and all its derivatives dxdy,…,dxndny occur strictly to the first power (1).
- There are no product terms involving the dependent variable and any of its derivatives (e.g., no ydxdy or (dxdy)2) and no transcendental functions of y (e.g., siny,ey,lny).
A first-order linear differential equation always conforms to the standard canonical structure:
dxdy+P(x)y=Q(x)
- General Solution (Complete Integral): A solution containing a number of arbitrary, independent constants equal to the order of the differential equation. For a first-order ODE, the general solution contains exactly one arbitrary constant C:
F(x,y,C)=0
- Particular Solution: A solution obtained from the general solution by assigning specific numerical values to the arbitrary constants, typically dictated by initial conditions (e.g., y(x0)=y0) or boundary conditions.
- Singular Solution: A solution that satisfies the differential equation but cannot be obtained from the general solution for any choice of the arbitrary constant. Geometrically, a singular solution represents the envelope of the one-parameter family of curves described by the general solution.
Consider the first-order Initial Value Problem (IVP):
dxdy=f(x,y),y(x0)=y0
Let R={(x,y)∈R2:∣x−x0∣≤a,∣y−y0∣≤b} be a closed rectangle centered at (x0,y0).
- Existence Condition: If f(x,y) is continuous on R, then there exists at least one solution y(x) in an interval ∣x−x0∣≤h.
- Uniqueness Condition: If, in addition, the partial derivative ∂y∂f is continuous on R (satisfying the Lipschitz condition ∣f(x,y1)−f(x,y2)∣≤L∣y1−y2∣), then the solution y(x) is unique.
An equation of the form:
M(x)dx+N(y)dy=0ordxdy=g(x)h(y)
is solved by isolating terms containing x with dx and terms containing y with dy:
h(y)1dy=g(x)dx⟹∫h(y)1dy=∫g(x)dx+C
Equations of the form dxdy=f(ax+by+c) are made separable by the linear transformation:
u=ax+by+c⟹dxdu=a+bdxdy⟹dxdy=b1(dxdu−a)
Substituting into the ODE yields:
dxdu=a+bf(u)⟹a+bf(u)du=dx
A function f(x,y) is homogeneous of degree n if f(λx,λy)=λnf(x,y). A first-order ODE:
dxdy=f2(x,y)f1(x,y)
is homogeneous if f1 and f2 are homogeneous functions of the exact same degree. In this case, the equation can be expressed as:
dxdy=ϕ(xy)
- Substitute y=vx, which implies dxdy=v+xdxdv.
- Substitute into the differential equation:
v+xdxdv=ϕ(v)⟹xdxdv=ϕ(v)−v
- Separate variables:
ϕ(v)−vdv=xdx
- Integrate both sides and substitute back v=xy.
Equations having linear fractional arguments:
dxdy=a2x+b2y+c2a1x+b1y+c1
-
Case 1: a2a1=b2b1 (Intersecting Lines):
Shift the origin to the intersection point (h,k) by setting x=X+h and y=Y+k, where (h,k) satisfies:
a1h+b1k+c1=0anda2h+b2k+c2=0
Since dx=dX and dy=dY, the equation transforms into the homogeneous form:
dXdY=a2X+b2Ya1X+b1Y
Now solve by setting Y=vX.
-
Case 2: a2a1=b2b1=m (Parallel Lines):
Here a2x+b2y=m(a1x+b1y). Substitute u=a1x+b1y, reducing the equation directly to variable separable form.
A first-order differential equation expressed in Pfaffian differential form:
M(x,y)dx+N(x,y)dy=0
is called Exact if there exists a scalar potential function u(x,y) such that its total differential equals the left-hand side:
du=∂x∂udx+∂y∂udy=M(x,y)dx+N(x,y)dy=0
Since du=0, the general solution is simply:
u(x,y)=C
The necessary and sufficient condition for M(x,y)dx+N(x,y)dy=0 to be an exact differential equation (assuming M,N and their first partials are continuous on a simply connected domain) is:
∂y∂M=∂x∂N
Proof Outline: Since M=∂x∂u and N=∂y∂u, Clairaut's theorem on the equality of mixed second partial derivatives guarantees:
∂y∂M=∂y∂x∂2u=∂x∂y∂2u=∂x∂N
Once exactness is verified (∂y∂M=∂x∂N), the general solution is evaluated directly using the standard formula:
∫y=constantM(x,y)dx+∫(terms of N free from x)dy=C
If M(x,y)dx+N(x,y)dy=0 is not exact (∂y∂M=∂x∂N), it can often be made exact by multiplying the entire equation by a non-zero integrating factor μ(x,y):
μ(x,y)M(x,y)dx+μ(x,y)N(x,y)dy=0
The condition for exactness of the new equation requires:
∂y∂(μM)=∂x∂(μN)⟹μ∂y∂M+M∂y∂μ=μ∂x∂N+N∂x∂μ
From this governing PDE, five standardized rules for finding Integrating Factors (IF) are derived:
Rules for Integrating Factors (IF)
|
+-------------+-------------+-----+-------------+-------------+
| | | | |
Rule 1 Rule 2 Rule 3 Rule 4 Rule 5
Inspection Homogeneous f₁(xy)y dx + Function of Function of
Equations f₂(xy)x dy = 0 x alone y alone
Recognize standard exact total differential pairs:
- xdy+ydx=d(xy)
- x2xdy−ydx=d(xy)
- y2ydx−xdy=d(yx)
- xyxdy−ydx=d(lnxy)
- x2+y2xdy−ydx=d(arctanxy)
- x2+y2xdx+ydy=d(21ln(x2+y2))
If M(x,y)dx+N(x,y)dy=0 is a homogeneous equation of degree n and Mx+Ny=0:
IF=Mx+Ny1
If the equation can be written as f1(xy)ydx+f2(xy)xdy=0 and Mx−Ny=0:
IF=Mx−Ny1
If the quantity:
N1(∂y∂M−∂x∂N)=f(x)
is a function of x only (or constant), then:
IF=e∫f(x)dx
If the quantity:
M1(∂x∂N−∂y∂M)=g(y)
is a function of y only (or constant), then:
IF=e∫g(y)dy
The canonical form of a first-order linear differential equation is:
dxdy+P(x)y=Q(x)
Where P(x) and Q(x) are continuous functions of x alone.
Multiplying by an integrating factor μ(x):
μ(x)dxdy+μ(x)P(x)y=μ(x)Q(x)
The left-hand side is identical to the product rule expansion dxd(μy)=μdxdy+dxdμy if:
dxdμ=μP(x)⟹μdμ=P(x)dx⟹lnμ=∫P(x)dx⟹μ(x)=e∫P(x)dx
Hence, the Integrating Factor is:
IF=e∫P(x)dx
Integrating both sides yields the general solution:
y⋅e∫P(x)dx=∫Q(x)e∫P(x)dxdx+C⟹y⋅(IF)=∫Q(x)⋅(IF)dx+C
When an equation cannot be expressed linearly in y, it may be linear when viewed with x as the dependent variable:
dydx+P(y)x=Q(y)
- IF=e∫P(y)dy
- General solution: x⋅(IF)=∫Q(y)⋅(IF)dy+C
A first-order non-linear differential equation of the form:
dxdy+P(x)y=Q(x)yn(n=0,n=1)
is known as Bernoulli's Equation.
- Divide both sides by yn:
y−ndxdy+P(x)y1−n=Q(x)
- Introduce the substitution:
v=y1−n⟹dxdv=(1−n)y−ndxdy⟹y−ndxdy=1−n1dxdv
- Substitute into the equation:
1−n1dxdv+P(x)v=Q(x)⟹dxdv+(1−n)P(x)v=(1−n)Q(x)
This is a standard first-order linear ODE in v, solvable via integrating factor:
IF=e(1−n)∫P(x)dx
An equation of the form:
y=px+f(p)where p=dxdy
Differentiating both sides with respect to x:
dxdy=p=p+xdxdp+f′(p)dxdp⟹dxdp[x+f′(p)]=0
This yields two distinct branches of solutions:
- General Solution: dxdp=0⟹p=C. Substituting into the original equation gives:
y=Cx+f(C)
(A one-parameter family of straight lines)
- Singular Solution: x+f′(p)=0. Eliminating p between y=px+f(p) and x+f′(p)=0 yields the singular solution, which forms the envelope of the general solution lines.
First-order ordinary differential equations serve as mathematical models for a wide variety of dynamic engineering phenomena.
First-Order ODE Applications
|
+--------------------+-------+--------------------+
| | |
Thermal Modeling RL / RC Circuits Kinematics & Geometry
(Newton's Law of (Kirchhoff's Laws: (Orthogonal Trajectories,
Cooling) L di/dt + Ri = E(t)) Pursuit curves, Decay)
Given a one-parameter family of plane curves F(x,y,C)=0, an Orthogonal Trajectory is a curve that intersects every member of the family at right angles (90∘).
- Differentiate F(x,y,C)=0 with respect to x to obtain an expression involving dxdy.
- Eliminate the parameter C between the original equation and the derivative to find the governing ODE:
f(x,y,dxdy)=0
- Replace dxdy with −dydx (since the product of orthogonal slopes m1m2=−1).
- Solve the resulting differential equation:
f(x,y,−dydx)=0
- Form the differential equation by eliminating C, yielding f(r,θ,dθdr)=0.
- Replace dθdr with −r2drdθ.
- Solve the resulting orthogonal trajectory ODE.
The rate of change of temperature T(t) of a body is directly proportional to the difference between its temperature and the ambient medium temperature Tm:
dtdT=−k(T−Tm),k>0
Separating variables:
T−TmdT=−kdt⟹ln∣T−Tm∣=−kt+C1⟹T(t)=Tm+(T0−Tm)e−kt
Where T0=T(0) is the initial temperature at t=0.
Applying Kirchhoff's Voltage Law (KVL) to a resistor R and inductor L connected to voltage source E(t):
Ldtdi+Ri=E(t)⟹dtdi+LRi=LE(t)
- This is a linear first-order ODE with IF=e(R/L)t.
- If E(t)=E0 (constant DC voltage) and i(0)=0:
i(t)=RE0(1−e−(R/L)t)
- The time constant of the circuit is τ=RL.
Applying KVL to a resistor R and capacitor C with charge q(t) (where current i=dtdq):
Rdtdq+Cq=E(t)⟹dtdq+RC1q=RE(t)
- This is a linear first-order ODE with IF=et/(RC).
- For constant voltage E0 and uncharged capacitor q(0)=0:
q(t)=CE0(1−e−t/(RC))
- The capacitive time constant is τ=RC.
- Radioactive Decay: The rate of disintegration is proportional to the active mass present:
dtdN=−λN⟹N(t)=N0e−λt
The half-life t1/2 is the time when N=N0/2:
t1/2=λln2≈λ0.693
- Malthusian Population Growth:
dtdP=kP⟹P(t)=P0ekt
Before selecting an integration strategy for a given first-order ODE, follow this diagnostic checklist:
- Can variables be separated directly? Check if dxdy=g(x)h(y) or if it can be transformed via u=ax+by+c.
- Is it homogeneous? Check if replacing (x,y) with (λx,λy) leaves the equation invariant; if so, substitute y=vx.
- Is it exact? Test Euler's condition: ∂y∂M=∂x∂N. If exact, integrate using ∫y=constMdx+∫(terms of N free from x)dy=C.
- If not exact, does it admit an Integrating Factor?
- Check if N1(∂y∂M−∂x∂N)=f(x)⟹IF=e∫f(x)dx.
- Check if M1(∂x∂N−∂y∂M)=g(y)⟹IF=e∫g(y)dy.
- Check if homogeneous with Mx+Ny=0⟹IF=Mx+Ny1.
- Is it linear in y? If dxdy+P(x)y=Q(x), use IF=e∫Pdx.
- Is it linear in x? If dydx+P(y)x=Q(y), use IF=e∫Pdy.
- Is it a Bernoulli equation? If dxdy+Py=Qyn, substitute v=y1−n.
- Is it Clairaut's form? If y=px+f(p), the general solution is y=cx+f(c).