Differential Equations Overview


Differential Equations Overview

Corey
Alright Maria, let's kick off this review of differential equations. We're starting with the basics: what exactly is a differential equation?

Maria
Right, a differential equation is simply an equation that contains at least one derivative. For example, dy/dx + x = y is a differential equation. The variable x is independent, and y is dependent.

Corey
Exactly. And if there's only one independent variable, it's an ordinary differential equation, or ODE. If there are more than one, we call it a partial differential equation, or PDE, but that's not our focus here.

Maria
Good. Now, when we add initial conditions to a differential equation, we get an initial value problem, or IVP. For a first-order equation, we need one initial condition; for second-order, we need two. And if the conditions are given at different points, it's a boundary value problem.

Corey
Let's look at an example. Suppose we want to verify that x = c1 e^{-3t} + c2 e^{2t} is a solution of x'' + x' - 6x = 0. We don't solve it; we just check by plugging in the derivatives.

Maria
Right, we compute x' and x'', substitute them, and simplify. If we get zero, it's a solution. In this case, it works. Then we can use initial conditions, like x(0)=0 and x'(0)=-10, to find c1 and c2.

Corey
And we solve those two equations to get c1=2 and c2=-2, so the solution to the IVP is x = 2 e^{-3t} - 2 e^{2t}.

Maria
Now, there are four fundamental model equations that show up everywhere. The first is exponential growth: dy/dt = k y, with solution y = A e^{kt}.

Corey
Then exponential decay: dy/dt = -k y, solution y = A e^{-kt}. These model things like population growth and radioactive decay.

Maria
Next is simple harmonic motion: y'' = -k^2 y. The solution involves sines and cosines, like y = A cos(kt) + B sin(kt). Think of a mass on a spring.

Corey
And the hybrid model: y'' = k^2 y. Its solution uses hyperbolic functions or exponentials: y = A e^{kt} + B e^{-kt}. It's a combination of growth and decay.

Maria
Great. Now we classify ODEs by order, linearity, and homogeneity. The order is the highest derivative. A linear equation has no powers or products of the dependent variable or its derivatives.

Corey
Constant coefficient means the coefficients are constants, like in ay'' + by' + cy = 0. Homogeneous means the equation equals zero; otherwise it's nonhomogeneous.

Maria
And autonomous means the equation doesn't depend explicitly on the independent variable. For example, dx/dt = x^2 - 3 is autonomous because there's no t on the right.

Corey
Now let's talk about basic integration. If dy/dx = f(x), we just integrate both sides to get y = ∫ f(x) dx. If dy/dx = g(y), we flip it to dx/dy = 1/g(y) and integrate with respect to y.

Maria
For example, dy/dx = 3 cos(2x) - 8 e^{-4x} + 5. Integrating gives y = (3/2) sin(2x) + 2 e^{-4x} + 5x + C. Use initial condition to find C.

Corey
Then separable equations: dy/dx = f(x)g(y). We separate variables: dy/g(y) = f(x) dx, then integrate both sides.

Maria
Like dy/dx = x e^{-y}. That becomes e^y dy = x dx, integrate to get e^y = x^2/2 + C, so y = ln(x^2/2 + C).

Corey
First-order linear equations have the standard form y' + P(x)y = Q(x). We use an integrating factor μ = e^{∫ P dx}, multiply through, and the left side becomes (μ y)'.

Maria
Then we integrate both sides: μ y = ∫ μ Q dx + C, so y = (1/μ) [∫ μ Q dx + C]. That's the method.

Corey
There are also substitution methods. For direct substitution, we let u be an inside function. For example, if the equation is dy/dx = (y+4x-3)^2, set u = y+4x-3.

Maria
Then du/dx = dy/dx + 4, so the equation becomes du/dx = u^2 + 4, which is separable. Solve for u, then back-substitute to find y.

Corey
Another type is homogeneous equations, which can be written as dy/dx = F(y/x). We let v = y/x, so y = vx, and y' = v + x v'. Substitute to get a separable equation in v.

Maria
For example, x y dy/dx = x^2 + y^2. Divide by x y to get dy/dx = x/y + y/x = 1/v + v with v = y/x. Then solve for v.

Corey
Bernoulli equations are of the form y' + P(x)y = Q(x) y^n. For n ≠ 0,1, we divide by y^n, then substitute v = y^{1-n}. This reduces to a linear equation in v.

Maria
Like 2x y' - y = 6 x^2 y^3. Divide by x y^3, get 2 y^{-3} y' - (1/x) y^{-2} = 6x. Substitute v = y^{-2}, then solve the resulting linear equation for v.

Corey
Exact equations are of the form M(x,y) dx + N(x,y) dy = 0, where ∂M/∂y = ∂N/∂x. If exact, there exists a function F such that F_x = M and F_y = N, and the solution is F(x,y)=C.

Maria
We find F by integrating M with respect to x, adding a function of y, then differentiating with respect to y and comparing to N to find that function.

Corey
If the equation is not exact, we can sometimes find an integrating factor to make it exact. For example, if (M_y - N_x)/N is a function of x only, the integrating factor is μ(x)=e^{∫ (M_y - N_x)/N dx}.

Maria
Similarly, if (N_x - M_y)/M is a function of y only, we use μ(y)=e^{∫ (N_x - M_y)/M dy}.

Corey
Now, for numerical methods, we have Euler's method: y_{n+1} = y_n + h f(x_n, y_n). It's simple but not very accurate.

Maria
Improved Euler and Runge-Kutta methods are more accurate. Runge-Kutta fourth-order uses four slopes per step and is very reliable.

Corey
Directional fields, or slope fields, give a geometric view. At each point, we draw a small line with slope given by the ODE. Solutions follow these arrows.

Maria
Existence and uniqueness: for y' = f(x,y) with y(x0)=y0, if f and ∂f/∂y are continuous near (x0,y0), there is a unique solution near that point.

Corey
Autonomous equations have constant solutions called critical points where the derivative is zero. We classify them as stable, unstable, or semi-stable by analyzing sign of the derivative nearby.

Maria
Moving on to second-order linear ODEs. The general form is y'' + p(x)y' + q(x)y = f(x). For homogeneous (f=0), the superposition principle holds: if y1 and y2 are solutions, then any linear combination is also a solution.

Corey
Two solutions are linearly independent if their Wronskian is not zero. If they are independent, the general solution is y = c1 y1 + c2 y2.

Maria
For nonhomogeneous equations, the general solution is y = y_c + y_p, where y_c is the complementary solution (homogeneous) and y_p is a particular solution.

Corey
Reduction of order: if we know one solution y1, we assume y2 = y1 u, substitute, and get a first-order equation for u'. Then integrate to find u.

Maria
Constant coefficient equations: ay'' + by' + cy = 0. Assume y = e^{λt}, leading to characteristic equation a λ^2 + b λ + c = 0. Solutions depend on the roots: real distinct, repeated, or complex.

Corey
For real distinct roots λ1 and λ2, the solution is y = c1 e^{λ1 t} + c2 e^{λ2 t}. For repeated roots, y = (c1 + c2 t) e^{λ t}. For complex roots λ = α ± iβ, y = e^{α t}(c1 cos βt + c2 sin βt).

Maria
Cauchy-Euler equations: a x^2 y'' + b x y' + c y = 0. Assume y = x^λ, leading to a characteristic equation in λ. The solution forms are similar: powers of x, times ln x for repeated roots, etc.

Corey
Higher-order constant coefficient ODEs: same idea, but the characteristic equation is a polynomial. The solution is built from exponentials, sines, cosines, and polynomials times them, depending on the roots.

Maria
For nonhomogeneous equations, undetermined coefficients works when f(x) is a combination of exponentials, sines/cosines, or polynomials. We guess a form for y_p with unknown coefficients, plug in, and solve.

Corey
But if f(x) is something like sec x or ln x, we use variation of parameters. For a second-order ODE in standard form y'' + p(x)y' + q(x)y = f(x), we find y_p = -y1 ∫ (y2 f / W) dx + y2 ∫ (y1 f / W) dx, where W is the Wronskian.

Maria
Series solutions are used when no closed-form solution exists. We assume y = Σ c_n x^n, substitute into the ODE, and find a recurrence relation for the coefficients. Sometimes we can sum the series to a known function.

Corey
Laplace transforms are powerful for solving ODEs with initial conditions. The transform converts derivatives into algebraic equations in s. We solve for Y(s), then take the inverse transform.

Maria
Common transforms: L{1}=1/s, L{t}=1/s^2, L{e^{at}}=1/(s-a), L{sin ωt}=ω/(s^2+ω^2), L{cos ωt}=s/(s^2+ω^2). And the shifting theorems: L{e^{at} f(t)} = F(s-a), and L{u(t-a) f(t-a)} = e^{-as} F(s).

Corey
Convolution: L{f * g} = F(s) G(s), where (f*g)(t) = ∫_0^t f(τ) g(t-τ) dτ. This is useful for finding inverse transforms of products.

Maria
The Dirac delta function δ(t-a) models an impulse. Its Laplace transform is L{δ(t-a)} = e^{-as}. We can use it to solve ODEs with impulsive forcing.

Corey
Finally, systems of ODEs can be solved by elimination, Laplace transforms, or eigenvalue methods. For linear systems x' = A x, we find eigenvalues and eigenvectors of A. The general solution is x = c1 v1 e^{λ1 t} + ... + cn vn e^{λn t}.

Maria
If eigenvalues are repeated but there are enough linearly independent eigenvectors, the same form works. Otherwise, we may need generalized eigenvectors, but that's for another time.

Corey
That covers a lot of ground! We've gone from the very definition of a differential equation to systems and advanced methods. I hope this review helps solidify the key concepts.

Maria
Absolutely, Corey. Now go ace that final exam!

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