BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeCalculus III: Multivariable CalculusNonhomogeneous Linear Second-Order Differential Equations: Study Guide
Study Guide890 words

Nonhomogeneous Linear Second-Order Differential Equations: Study Guide

Nonhomogeneous Linear Equations

Nonhomogeneous Linear Second-Order Differential Equations

This study guide covers the techniques for solving second-order linear differential equations where the right-hand side is non-zero. These equations are fundamental in modeling physical systems with external forces, such as forced harmonic motion or RLC circuits.

Learning Objectives

After studying this material, you should be able to:

  • Distinguish between homogeneous and nonhomogeneous linear differential equations.
  • Construct the general solution to a nonhomogeneous equation using the principle of superposition.
  • Apply the Method of Undetermined Coefficients for polynomial, exponential, and trigonometric forcing functions.
  • Utilize the Method of Variation of Parameters for more complex nonhomogeneous terms.
  • Solve initial-value problems (IVPs) for nonhomogeneous systems.

Key Terms & Glossary

  • Nonhomogeneous Term (g(x)g(x)g(x)): The non-zero function on the right side of the equation ay'' + by' + cy = g(x). Also called the "forcing function."
  • Complementary Solution (ycy_cyc​): The general solution to the associated homogeneous equation (g(x)=0g(x) = 0g(x)=0). It represents the natural response of the system.
  • Particular Solution (ypy_pyp​): Any single solution that satisfies the full nonhomogeneous equation.
  • Superposition Principle: The theorem stating that the general solution is the sum of the complementary and particular solutions: y(x)=yc(x)+yp(x)y(x) = y_c(x) + y_p(x)y(x)=yc​(x)+yp​(x).
  • Wronskian (WWW): A determinant used in the Method of Variation of Parameters to ensure the linear independence of solutions.

The "Big Idea"

In physics and engineering, a nonhomogeneous equation represents a system acted upon by an external force. The complementary solution (ycy_cyc​) tells us how the system behaves on its own (the "transient" behavior), while the particular solution (ypy_pyp​) tells us how the system responds specifically to the external driver (the "steady-state" behavior). To find the complete story of the system's motion, you must combine both.

Formula / Concept Box

ConceptFormula / Rule
Standard Forma y'' + b y' + c y = g(x)
General Solutiony(x)=yc(x)+yp(x)y(x) = y_c(x) + y_p(x)y(x)=yc​(x)+yp​(x)
WronskianW(y1,y2)=∣y1y2y1′y2′∣=y1y2′−y2y1′W(y_1, y_2) = \begin{vmatrix} y_1 & y_2 \\ y_1' & y_2' \end{vmatrix} = y_1 y_2' - y_2 y_1'W(y1​,y2​)=​y1​y1′​​y2​y2′​​​=y1​y2′​−y2​y1′​
Variation of Parametersu1=−∫y2g(x)aWdxu_1 = -\int \frac{y_2 g(x)}{a W} dxu1​=−∫aWy2​g(x)​dx, u2=∫y1g(x)aWdxu_2 = \int \frac{y_1 g(x)}{a W} dxu2​=∫aWy1​g(x)​dx

Hierarchical Outline

  1. Introduction to Nonhomogeneous Equations
    • Definition: L[y]=g(x)L[y] = g(x)L[y]=g(x) where g(x)≠0g(x) \neq 0g(x)=0.
    • The Complementary Equation: L[y]=0L[y] = 0L[y]=0.
  2. Method of Undetermined Coefficients
    • Applicability: Works when g(x)g(x)g(x) is a polynomial, erxe^{rx}erx, sin⁡(kx)\sin(kx)sin(kx), or cos⁡(kx)\cos(kx)cos(kx).
    • The Guess: Assume ypy_pyp​ takes the same form as g(x)g(x)g(x).
    • The Overlap Rule: If g(x)g(x)g(x) is part of ycy_cyc​, multiply the guess by xnx^nxn until no terms overlap.
  3. Method of Variation of Parameters
    • Applicability: More general; works for any continuous g(x)g(x)g(x).
    • Formula: yp=u1y1+u2y2y_p = u_1 y_1 + u_2 y_2yp​=u1​y1​+u2​y2​.
  4. Applications
    • Forced Vibrations: mx′′+cx′+kx=F0cos⁡(ωt)m x'' + c x' + k x = F_0 \cos(\omega t)mx′′+cx′+kx=F0​cos(ωt).
    • RLC Circuits: LQ′′+RQ′+1CQ=E(t)L Q'' + R Q' + \frac{1}{C} Q = E(t)LQ′′+RQ′+C1​Q=E(t).

Visual Anchors

Decision Flow: Choosing a Method

Loading Diagram...
Figure 1 — Mermaid diagram

Physical Intuition: Forced Oscillation

Compiling TikZ diagram…
⏳
Running TeX engine…
This may take a few seconds
Figure 2 — TikZ diagram

Definition-Example Pairs

  • Term: Undetermined Coefficients Guess

  • Definition: Selecting a template for ypy_pyp​ based on the derivatives of g(x)g(x)g(x).

  • Example: If g(x)=3x2g(x) = 3x^2g(x)=3x2, the guess is yp=Ax2+Bx+Cy_p = Ax^2 + Bx + Cyp​=Ax2+Bx+C. If g(x)=5e2xg(x) = 5e^{2x}g(x)=5e2x, the guess is yp=Ae2xy_p = Ae^{2x}yp​=Ae2x.

  • Term: Variation of Parameters

  • Definition: A method that replaces constants c1,c2c_1, c_2c1​,c2​ with functions u1(x),u2(x)u_1(x), u_2(x)u1​(x),u2​(x).

  • Example: Used for g(x)=sec⁡(x)g(x) = \sec(x)g(x)=sec(x) or tan⁡(x)\tan(x)tan(x), which cannot be modeled by simple coefficients.

Worked Examples

Example 1: Undetermined Coefficients

Problem: Solve y′′−3y′+2y=4e3xy'' - 3y' + 2y = 4e^{3x}y′′−3y′+2y=4e3x.

  1. Find ycy_cyc​: Solve r2−3r+2=0  ⟹  (r−1)(r−2)=0r^2 - 3r + 2 = 0 \implies (r-1)(r-2)=0r2−3r+2=0⟹(r−1)(r−2)=0. So yc=c1ex+c2e2xy_c = c_1 e^x + c_2 e^{2x}yc​=c1​ex+c2​e2x.
  2. Guess ypy_pyp​: g(x)=4e3xg(x) = 4e^{3x}g(x)=4e3x. There is no overlap with ycy_cyc​, so let yp=Ae3xy_p = Ae^{3x}yp​=Ae3x.
  3. Differentiate: yp′=3Ae3xy_p' = 3Ae^{3x}yp′​=3Ae3x, yp′′=9Ae3xy_p'' = 9Ae^{3x}yp′′​=9Ae3x.
  4. Substitute: (9Ae3x)−3(3Ae3x)+2(Ae3x)=4e3x(9Ae^{3x}) - 3(3Ae^{3x}) + 2(Ae^{3x}) = 4e^{3x}(9Ae3x)−3(3Ae3x)+2(Ae3x)=4e3x.
  5. Simplify: 9A−9A+2A=4  ⟹  2A=4  ⟹  A=29A - 9A + 2A = 4 \implies 2A = 4 \implies A = 29A−9A+2A=4⟹2A=4⟹A=2.
  6. Final Solution: y=c1ex+c2e2x+2e3xy = c_1 e^x + c_2 e^{2x} + 2e^{3x}y=c1​ex+c2​e2x+2e3x.

Example 2: Variation of Parameters

Problem: Solve y′′+y=tan⁡(x)y'' + y = \tan(x)y′′+y=tan(x).

  1. Find ycy_cyc​: r2+1=0  ⟹  r=±ir^2 + 1 = 0 \implies r = \pm ir2+1=0⟹r=±i. y1=cos⁡(x),y2=sin⁡(x)y_1 = \cos(x), y_2 = \sin(x)y1​=cos(x),y2​=sin(x).
  2. Wronskian: W=(cos⁡x)(cos⁡x)−(sin⁡x)(−sin⁡x)=cos⁡2x+sin⁡2x=1W = (\cos x)(\cos x) - (\sin x)(-\sin x) = \cos^2 x + \sin^2 x = 1W=(cosx)(cosx)−(sinx)(−sinx)=cos2x+sin2x=1.
  3. Find u1,u2u_1, u_2u1​,u2​:
    • u1=−∫sin⁡xtan⁡x1dx=−∫sin⁡2xcos⁡xdx=−∫(sec⁡x−cos⁡x)dx=−ln⁡∣sec⁡x+tan⁡x∣+sin⁡xu_1 = -\int \frac{\sin x \tan x}{1} dx = -\int \frac{\sin^2 x}{\cos x} dx = -\int (\sec x - \cos x) dx = -\ln|\sec x + \tan x| + \sin xu1​=−∫1sinxtanx​dx=−∫cosxsin2x​dx=−∫(secx−cosx)dx=−ln∣secx+tanx∣+sinx.
    • u2=∫cos⁡xtan⁡x1dx=∫sin⁡xdx=−cos⁡xu_2 = \int \frac{\cos x \tan x}{1} dx = \int \sin x dx = -\cos xu2​=∫1cosxtanx​dx=∫sinxdx=−cosx.
  4. ypy_pyp​ Calculation: yp=u1y1+u2y2=[−ln⁡∣sec⁡x+tan⁡x∣+sin⁡x]cos⁡x+[−cos⁡x]sin⁡x=−cos⁡xln⁡∣sec⁡x+tan⁡x∣y_p = u_1 y_1 + u_2 y_2 = [-\ln|\sec x + \tan x| + \sin x]\cos x + [-\cos x]\sin x = -\cos x \ln|\sec x + \tan x|yp​=u1​y1​+u2​y2​=[−ln∣secx+tanx∣+sinx]cosx+[−cosx]sinx=−cosxln∣secx+tanx∣.

Checkpoint Questions

  1. If yc=c1e2x+c2xe2xy_c = c_1 e^{2x} + c_2 x e^{2x}yc​=c1​e2x+c2​xe2x and g(x)=e2xg(x) = e^{2x}g(x)=e2x, what should your guess for ypy_pyp​ be? (Hint: check for overlap).
  2. Why is the Method of Undetermined Coefficients generally preferred over Variation of Parameters when g(x)g(x)g(x) is a polynomial?
  3. True or False: The general solution to y′′+4y=sin⁡(2x)y'' + 4y = \sin(2x)y′′+4y=sin(2x) will contain a term multiplied by xxx because of resonance.

[!TIP] When performing Variation of Parameters, always ensure your differential equation is in standard form (y′′y''y′′ coefficient is 1) before identifying g(x)g(x)g(x).

▶Click to expand answers
  1. yp=Ax2e2xy_p = Ax^2 e^{2x}yp​=Ax2e2x (since e2xe^{2x}e2x and xe2xxe^{2x}xe2x are already in ycy_cyc​).
  2. It avoids complex integration and involves only algebraic manipulation.
  3. True. Since sin⁡(2x)\sin(2x)sin(2x) is a solution to the homogeneous equation y′′+4y=0y'' + 4y = 0y′′+4y=0, you must multiply the guess by xxx.
All Calculus III: Multivariable Calculus Study Resources

Related Notes

  • Applications of Vectors: Force, Volume, and Geometric Analysis842 words
  • Arc Length and Curvature: Multivariable Calculus Study Guide780 words
  • Calculus III: Area and Arc Length in Polar Coordinates Study Guide875 words
  • Calculus of Parametric Curves: Comprehensive Study Guide892 words
  • Calculus of Vector-Valued Functions: A Comprehensive Study Guide825 words
  • Conic Sections: Geometric Foundations and Polar Representations845 words
  • Mastering Conservative Vector Fields: Path Independence and Potential Functions925 words
  • Mastering Cylindrical and Spherical Coordinates925 words
  • Study Guide: Directional Derivatives and the Gradient985 words
  • Divergence and Curl: Vector Calculus Study Guide860 words
  • Double Integrals in Polar Coordinates875 words
  • Study Guide: Double Integrals over General Regions875 words

Ready to study Calculus III: Multivariable Calculus?

Practice tests, flashcards, and all study notes — free, no sign-up.

Start Studying

Ready to study Calculus III: Multivariable Calculus?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free
Calculus III: Multivariable Calculus ResourcesExplore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.

Loading Diagram...
Flowchart, top to bottom. Identify g(x) connects to Is g(x) polynomial, exp, or sin/cos?. B -- Yes connects to Method of Undetermined Coefficients. B -- No connects to Method of Variation of Parameters. C connects to Does g(x) overlap with y_c?. E -- Yes connects to Multiply guess by x^n. E -- No connects to Solve for coefficients. D connects to Calculate Wronskian W. H connects to Integrate for u1 and u2.