Fiveable

โž—Linear Algebra and Differential Equations Unit 9 Review

QR code for Linear Algebra and Differential Equations practice questions

9.2 Method of Undetermined Coefficients and Variation of Parameters

โž—Linear Algebra and Differential Equations
Unit 9 Review

9.2 Method of Undetermined Coefficients and Variation of Parameters

Written by the Fiveable Content Team โ€ข Last updated September 2025
Written by the Fiveable Content Team โ€ข Last updated September 2025
โž—Linear Algebra and Differential Equations
Unit & Topic Study Guides

Higher-order linear differential equations often require special techniques to solve. The Method of Undetermined Coefficients and Variation of Parameters are two powerful approaches for finding particular solutions to nonhomogeneous equations.

These methods complement each other, with Undetermined Coefficients being simpler for specific forms of nonhomogeneous terms, while Variation of Parameters offers a more general approach. Understanding both expands your toolkit for tackling a wide range of differential equations.

Particular Solution Forms

Polynomial and Exponential Forms

  • Identify appropriate particular solution form based on nonhomogeneous term in linear differential equations
  • For polynomial nonhomogeneous terms use polynomial of same or higher degree (depending on characteristic equation roots)
    • Example: For $x^2 + 3x$, try $Ax^2 + Bx + C$
  • With exponential nonhomogeneous term $e^{ax}$, use form $Ae^{ax}$
    • Example: For $5e^{2x}$, try $Ae^{2x}$
  • Product of functions requires product of individual particular solutions
    • Example: For $xe^x$, try $Axe^x$

Trigonometric and Special Cases

  • Trigonometric nonhomogeneous terms (sin(bx) or cos(bx)) use form $A \sin(bx) + B \cos(bx)$
    • Example: For $3\sin(4x)$, try $A\sin(4x) + B\cos(4x)$
  • When nonhomogeneous term matches homogeneous solution, multiply by $x^k$ (k is root multiplicity)
    • Example: If $e^x$ is both nonhomogeneous term and homogeneous solution, try $Axe^x$
  • Method of undetermined coefficients applies to combinations of polynomials, exponentials, sines, and cosines
    • Example: For $2x + 3e^x + \sin(x)$, try $Ax + B + Ce^x + D\sin(x) + E\cos(x)$

Undetermined Coefficients Method

Procedure and Implementation

  • Assume particular solution based on nonhomogeneous term form
  • Substitute assumed solution into original differential equation
  • Collect like terms and equate coefficients to solve for undetermined constants
  • Solve resulting system of algebraic equations for coefficient values
  • Method most effective for constant coefficient equations with specific nonhomogeneous terms
    • Example: Solve $y'' + 4y = x^2$
      1. Assume $y_p = Ax^2 + Bx + C$
      2. Substitute: $(2A)x^0 + (2B)x^1 + (Ax^2 + Bx + C) = x^2$
      3. Equate coefficients: $A = 1/4$, $B = 0$, $C = -1/8$
      4. Particular solution: $y_p = \frac{1}{4}x^2 - \frac{1}{8}$

Verification and Special Considerations

  • Verify particular solution by substituting back into original equation
  • Take special care when assumed form matches homogeneous solution
    • Multiply by $x^k$ in these cases
    • Example: For $y'' - y = e^x$, try $y_p = Axe^x$ instead of $y_p = Ae^x$
  • Method limitations include complex nonhomogeneous terms and variable coefficient equations
    • Example: $y'' + xy = \ln(x)$ requires different approach (variation of parameters)

General Solution of Nonhomogeneous Equations

Combining Solutions

  • General solution combines complementary (homogeneous) and particular solutions
  • Complementary solution from associated homogeneous equation (using characteristic equations for constant coefficients)
    • Example: For $y'' + 4y = 0$, complementary solution $y_c = c_1\cos(2x) + c_2\sin(2x)$
  • Particular solution found using undetermined coefficients or variation of parameters
  • General solution contains arbitrary constants from complementary solution
    • Example: $y = c_1\cos(2x) + c_2\sin(2x) + \frac{1}{4}x^2 - \frac{1}{8}$ (combining previous examples)

Verification and Applications

  • Verify general solution satisfies original equation through substitution and differentiation
  • Apply principle of superposition for equations with multiple nonhomogeneous terms
    • Example: For $y'' + y = \sin(x) + e^x$, find particular solutions for each term separately and add
  • Use general solution to satisfy initial or boundary conditions
    • Example: Solve $y(0) = 1$, $y'(0) = 0$ using general solution to determine $c_1$ and $c_2$

Variation of Parameters Method

Method Overview and Setup

  • General method for finding particular solutions of nonhomogeneous linear equations
  • Applicable to wider range of nonhomogeneous terms than undetermined coefficients
  • Assumes particular solution form $y_p = u_1y_1 + u_2y_2$
    • $y_1$ and $y_2$ are linearly independent homogeneous solutions
    • $u_1$ and $u_2$ are functions to be determined
  • Requires knowledge of general homogeneous solution
    • Example: For $y'' + y = \sec(x)$, use $y_1 = \cos(x)$ and $y_2 = \sin(x)$

Implementation and Calculations

  • Solve system of first-order differential equations for $u_1'$ and $u_2'$
  • Integrate to find $u_1$ and $u_2$
  • Wronskian of homogeneous solutions crucial in method (denominator of $u_1'$ and $u_2'$ expressions)
    • Example: Wronskian $W = y_1y_2' - y_2y_1'$
  • Extend to higher-order equations with additional terms in particular solution
    • Example: For third-order, use $y_p = u_1y_1 + u_2y_2 + u_3y_3$

Advantages and Limitations

  • More general than undetermined coefficients, applicable to complex nonhomogeneous terms
    • Example: Can solve $y'' + y = \tan(x)$ where undetermined coefficients fails
  • Often leads to more complex integrations
  • May be computationally intensive for certain nonhomogeneous terms
    • Example: $y'' + y = e^{x^2}$ requires challenging integrations
  • Useful when undetermined coefficients is not applicable or efficient
    • Example: Effective for equations with variable coefficients like $xy'' + y = \ln(x)$