The essence of mathematics is not to make simple things complicated, but to make complicated things simple, S. Gudder
I’d far rather be happy than right any day, Douglas Adams, The Hitchhiker’s Guide to the Galaxy.
Definition. A differential equation is an equation that involves one or more dependent variables, their derivatives with respect to one or more independent variables, and the independent variables themselves, e.g., $\frac{dy}{dx} = 3x +5y, y’ + y = 4xcos(2x), \frac{dy}{dx} = x^2y+y, etc.$
It involves (e.g., $\frac{dy}{dx} = 3x +5y$):
Definition. A first-order linear ordinary differential equation is an ordinary differential equation (ODE) involving an unknown function y(x), its first derivative y′, and functions of the independent variable x, which can be written in the general form:: a(x)y' + b(x)y = c(x) where:
These equations are termed “linear” because the unknown function y and its derivative y’ appear to the first power and are not multiplied together or composed in any nonlinear way.
If the function c(x)=0 for all x in the interval of interest, the equation simplifies to: a(x)y’ + b(x)y = 0. Such an equation is called a homogeneous linear differential equation.
The Existence and Uniqueness Theorem provides crucial insight into the behavior of solutions to first-order differential equations ODEs. It states that if:
Then, the differential equation y' = f(x, y) has a unique solution to the initial value problem through the point (x0, y0), meaning that it satisfies the initial condition y(x0) = y0.
This theorem ensures that under these conditions, the solution exists and is unique near x = x0.
A second-order linear homogeneous differential equation ODE with constant coefficients is a differential equation of the form: y'' + Ay' + By = 0, where A and B are constants.
To solve this ODE, we seek two linearly independent solutions y1(t) and y2(t). The general solution is then a linear combination of these solutions: $c_1y_1 + c_2y_2$ where c1 and c2 are two arbitrary constants determined by initial conditions. The key to solving the ODE is the characteristic equation, whose roots determine the behavior of the solutions.
Second-order linear homogeneous ordinary differential equations (ODEs) are fundamental tools in mathematical modeling and appear frequently in physics, engineering, and other sciences. They describe a wide range of phenomena, such as mechanical vibrations, electrical circuits, and fluid dynamics where the rate of change of a quantity depends linearly on the quantity and its derivatives.
Definition. A second-order linear homogeneous ODE is a differential equation of the form: y'' + p(x)y' + q(x)y = 0 where:
The term linear refers to the fact that the unknown y and its derivatives y’ and y′′ appear to the first power only and are not multiplied together. That is, there are no squares (y2), cubes (y’(3)) terms, or other nonlinear expression.
The term homogeneous means the right-hand side of the equation is zero. In other words, the equation is set equal to zero, indicating that there are no external forcing functions. This contrasts with nonhomogeneous (or inhomogeneous) equations, where the right-hand side is a non-zero function f(x), leading to an equation of the form: y’’ + p(x)y’ + q(x)y = f(x).
The goal when solving such ODEs is to find the general solution, which represents all possible solutions that satisfy the differential equation.
The general solution to a second-order linear homogeneous ODEs is: y = c1y1 + c2y2 where:
An inhomogeneous second-order linear differential equation is a differential equation of the form: y'' + p(x)y' + q(x)y = f(x) where:
The goal is to find y(x), known as the response or output, that satisfies this equation.
To solve the inhomogeneous equation, we proceed in three main steps:
Solve the Associated Homogeneous Equation. Before addressing the inhomogeneous equation, we first solve the corresponding homogeneous equation: y’’ + p(x)y’ + q(x)y = 0.
This is called the associated or reduced homogeneous equation. Its solutions are denoted as yc(x) = c1y1(x) + c2y2(x), where: y1 and y2 are linearly independent solutions of the homogeneous equation. These solutions are known as the complementary solutions. c1 and c2 are arbitrary constants determined by initial or boundary conditions.
Linear independence means that one solution cannot be expressed as a scalar multiple of the other. The Wronskian W(y1, y2)(x) is non-zero if y1 and y2 are linearly independent on the interval of interest.
Find a Particular Solution. Next, we find a particular solution yp(x) to the inhomogeneous equation: y’’ + p(x)y’ + q(x)y = f(x). The particular solution yp(x) satisfies the inhomogeneous equation and accounts for the presence of the forcing term f(x).
The general solution to the inhomogeneous equation is the sum of the complementary solution yc and a particular solution yp: y(x) = yp(x) + yc(x) = yp(x) + c1y1(x) + c2y2(x).
In this section, we explore real-world systems that can be modeled using inhomogeneous second-order linear differential equations. Specifically, we will discuss:
m: Mass of the object (in kilograms).
b: Damping coefficient (in kilograms per second), related to the dashpot’s resistance.
k: Spring constant (in newtons per meter), representing the stiffness of the spring.
x(t): Displacement of the mass from its equilibrium position at time t.
f(t): External force applied to the system (in newtons). The system is said to be forced or influenced by an external force when f(t) ≠ 0, and passive or free when f(t) = 0, meaning that the system evolves solely based on its initial conditions and inherent properties.
mx’’ (inertia term) represents the mass’s resistance to acceleration (Newton’s second law); bx’ (damping term) accounts for the energy loss due to friction or resistance in the dashpot; kx (spring term) represents the restoring force exerted by the spring, proportional to the displacement x; f(t) (external force) is an input function that drives the system, such as an applied push or pull.
Applications: Mechanical engineering (design of suspension system in vehicles), civil engineering (analysis of building responses to earthquakes), and physics (study of oscillatory motion and vibrations).
A Resistor (R) provides resistance to the flow of current.
An Inductor (L) opposes changes in current due to its magnetic field.
A Capacitor (C) stores electrical energy in an electric field.
A Voltage source ε(t) supplies electromotive force (EMF), which can be constant or time-varying.
According to Kirchhoff’s Voltage Law (KVL), the sum of voltage drops around a closed loop equals the applied voltage: $L\frac{di}{dt}+Ri+\frac{q}{C} = ε(t)$ where:
i(t) is the current flowing through the circuit (the rate of flow of electric charge)
q(t) is the amount of electric charge stored in the capacitor. Relationship: $\frac{dq}{dt} = i(t)$, meaning the rate of flow of electric charge (dq/dt) with respect to time is equal to the current (i).
Voltage Drops Across Circuit Components:
Therefore, $\frac{dq}{dt} = i$ and applying KVL to the RLC circuit gives us the equation: $V_L + V_R + V_C = ε(t) ↭ L\frac{di}{dt}+Ri+\frac{q}{C} = ε(t)$. Differentiating this equation gives: $L\frac{d^2i}{dt^2}+R\frac{di}{dt} + \frac{i}{C} = ε’(t)$ ↭[Notation] Li’’ + Ri’ + i⁄C = ε’(t). This equation governs the flow of current in the circuit in response to an applied voltage ε(t).
An inhomogeneous second-order linear differential equation is an equation of the form: y′′ +p(x)y′ +q(x)y = f(x).
We can express this equation more concisely using a linear differential operator L. Let L = D2 +pD + q =[Notation] $\frac{d^2}{dx^2}+p(x)\frac{d}{dx} + q(x)$ be the differential operator, so our inhomogeneous second-order linear differential equation becomes: Ly = f(x) and the associated homogeneous equation is: Ly = 0.
The general solution to the inhomogeneous equation Ly = f(x) is: y(x) = yp + yc = yp + c1y1 + c2y2 where:
The reason for adding the complementary solution is that the inhomogeneous equation consists of two parts:
The complementary solution yc accounts for the behavior of the system without the forcing term (system's natural behaviour), while the particular solution yc responds directly to the input or external forcing term f(x).
Proof.
Let’s prove why the general solution is of the form y(x) = yp + c1y1 + c2y2
Step 1: Proving the form is a solution
We need to prove that y = yp + yc = yp + c1y1 + c2y2 is a solution to the original equation y’’ + p(x)y’ + q(x)y = f(x) ↭ Ly = f(x)
L(y) = L(yp + c1y1 + c2y2) =[L is a linear operator] L(yp) + L(c1y1 + c2y2) =[yc = c1y1 + c2y2 is a solution to the associated homogeneous equation, i.e., L(yc) = L(c1y1 + c2y2) = 0. We knot that L(yp) = f(x) because yp is a particular solution ] f(x) + 0 = f(x)
Step 2: Proving no other solutions exist
Second, we need to show that there are no other solutions. Now, assume that u(x) is another solution to the inhomogeneous equation ⇒[By definition, u is a solution and yp is a particular solution] L(u) = f(x), L(yp) = f(x).
Subtract these two equations: L(u)-L(yp) = f(x) -f(x) = 0.
Since L is a linear operator, this simplifies to: L(u-yp) = 0. This means that u-yp is a solution to the associated homogeneous solution Ly = 0.
Therefore, u-yp must be a linear combination of y1 and y2: $∃\tilde{c_1},\tilde{c_2}: u-y_p = \tilde{c_1}y_1 + \tilde{c_2}y_2 ⇒u = y_p + \tilde{c_1}y_1 + \tilde{c_2}y_2$, which is exactly of the form yp + c1y1 + c2y2.
This proves that the general solution y = yp + c1y1 + c2y2 includes all possible solutions to the inhomogeneous equation ∎
Solve the Homogeneous Equation. The associated homogeneous equation is obtained by setting f(x) = 0: y’’ -3y’ + 2y = 0. To solve this linear differential equation, we assume a solution of the form y = erx, leading to the characteristic equation r2 -3r + 2 = 0⇒[Solving the quadratic equation.] Roots: r1 = 1 and r2 = 2. Since we have two distinct and real roots, the general solution to the homogeneous equation is (complementary Solution): $y_c(x) = c_1e^x + c_2e^{2x}$ where c1 and c2 are arbitrary constants.
Find a Particular Solution. Since the right-hand side is f(x) = e2x, which is similar to one term in yc(x) (y2), we cannot use yp(x) = Ae2x as our particular solution because it would be linearly dependent on the complementary solution, we modify our trial solution to account for this.
Assumed Form: yp(x) = $xe^{2x}$. Compute Derivatives: yp’(x) = $e^{2x} + 2xe^{2x}$, yp’’(x) = $2e^{2x} + 2e^{2x} + 2xe^{2x}·2 = 4e^{2x}+4xe^{2x}$
Substitute into the Inhomogeneous Equation: $[4e^{2x}+4xe^{2x}] -3[e^{2x} + 2xe^{2x}] +2xe^{2x} = e^{2x} ↭ (4-3)e^{2x} + (4-6+2)xe^{2x} = e^{2x}↭ e^{2x} = e^{2x}$, confirming that $y_p(x) = xe^{2x}$ is a valid particular solution.
General Solution: The general solution is the sum of the complementary and particular solutions: $y(x) = y_c(x) + y_p(x) = c_1e^x + c_2e^{2x} + xe^{2x}$
Solve the Homogeneous Equation. The associated homogeneous equation is: y’’ -2y’ -3y = 0. Find the characteristic equation r2 -2r -3 = 0⇒[Solve for r] Roots (two real distinct roots): r = 3 and r = -1. Complementary Solution: $y_c(t) = c_1e^{3t} + c_2e^{-t}$.
Find a Particular Solution. We observe that e2t is not a solution to the homogeneous equation (since r = 2 is not a root of the characteristic equation). Therefore, we can assume: $y_p = Ae^{2t}$.
Compute derivatives: $y_p’(t) = 2Ae^{2t}, y_p’’(t) = 4Ae^{2t}$.
Substitute into the Inhomogeneous Equation: $4Ae^{2t} -4Ae^{2t} -3Ae^{2t} = 3e^{2t} ↭[\text{Simplify}] -Ae^{2t} = e^{2t}⇒[\text{Divide both sides by }e^{2t}] A = -1$. Therefore, the particular solution is $y_p = -e^{2t}$.
Write the General solution. The general solution is $y(x) = y_c(x) + y_p(x) = c_1e^{3t} + c_2e^{-t} -e^{2t}$
When selecting the form of the particular solution yp(x), consider the nature of the non-homogeneous term f(x).
Table of Common Non-Homogeneous Terms and Corresponding Particular Solution Forms
Non-homogeneous term | Assumed particular solution |
---|---|
$e^{rt}$ | $Ae^{rt}$ |
sin(rt) or cos(rt) | Asin(rt) + Bcos(rt) |
$x^n$ Degree n polynomial | A0 + A1t + ··· + Antn |
$x^ne^{rx}$ | $x^s(Ae^{rx})$ |
Multiply the assumed form by xs as needed to avoid duplication with terms in the complementary solution.
Solve the Homogeneous Equation. The associated homogeneous equation is: y’’ + 5y’ + 6y = 0. Find the characteristic equation r2 +5r + 6 = 0 ↭ (r + 2)(r + 3) = 0 ⇒ Roots (two real distinct roots) r1 = -2, r2 = -3. Complementary Solution: $y_c(x) = c_1e^{-2x} + c_2e^{-3x}$.
Find a particular Solution. Since the right hand is x2, a polynomial of degree two, we assume the particular solution yp(x) is a polynomial of the same degree. yp(x) = Ax2 + Bx + C.
Compute derivatives: yp’(x) = 2Ax + B, yp’’(x) = 2A.
Substitute into the Inhomogeneous Equation: 2A + 5(2Ax + B) + 6(Ax2 + Bx + C) = x2 ↭ 2A + 10Ax + 5B + 6Ax2 + 6Bx + 6C = x2 ↭[Group like terms:] (6A)x2 + (10A +6B)x + (2A + 5B + 6C) = x2
Set up a system of equations by equating coefficients:
$\begin{cases} 6A = 1~ (i) \\ 10A +6B = 0 ~ (ii)\\ 2A + 5B + 6C~ (iii)\end{cases}$
Solve for A, B, and C:
(i) ⇒ A = 1⁄6. (ii) $10·\frac{1}{6} + 6B = 0↭[\text{Multiply by 6}] 10 + 36B = 0 ⇒ B = \frac{-10}{36} = \frac{-5}{18}$. (iii) $2·\frac{1}{6}+5\frac{-5}{18} +6C = 0 ↭[\text{Multiply by 18}] 6 -25 + 108C = 0↭ -19 +108C = 0 ⇒ C = \frac{19}{108}$. Therefore, the particular solution is $y_p = Ax^2+Bx+C = \frac{1}{6}x^2+\frac{-5}{18}x+\frac{19}{108}$.
Write the general solution: $y(x) = y_c(x) + y_p(x) = c_1e^{-2x} + c_2e^{-3x} + \frac{1}{6}x^2+\frac{-5}{18}x+\frac{19}{108}$.