Wize Foundations of Physics Textbook > Differential Equations for Physics

Nonhomogeneous Equations: Undetermined Coefficients and Variation of Parameters

Selecting and Checking Particular Solutions

For a linear equation L[y]=g, separate the tasks. First solve L[y]=0 to obtain the complementary solution yh. Then find one particular solution yp. The general solution is yh+yp; initial or boundary conditions choose the constants in yh, not a second arbitrary particular solution.


Undetermined coefficients applies to linear equations with constant coefficients when g is built from a finite combination of polynomials, exponentials, sines, and cosines, including their products.


The constant-coefficient operator keeps the chosen finite trial family closed under differentiation. Choose a trial with the same functional family, then apply L.


If the trial duplicates a homogeneous term, multiply the trial by enough powers of x to make it linearly independent. That resonance adjustment prevents L from annihilating the trial.


Variation of parameters does not require a special forcing family. It also handles variable coefficients on an interval where the leading coefficient is nonzero and a fundamental pair is known.


After normalizing the equation to y''+p(x)y'+q(x)y=g(x), given independent homogeneous solutions y1, y2 and W=y1y'2-y'1y2, a useful particular solution is -y1 integral y2g/W dx + y2 integral y1g/W dx. Definite integrals make a particular solution without introducing redundant arbitrary constants.


Always check a proposed yp by applying the entire differential operator, not merely by matching its visual form to g. Keep the forcing and the homogeneous characteristic roots conceptually separate: resonance is a statement about their overlap, and variation of parameters is a method choice when a simple finite trial is not available.

For the equation y'' - 4y = e2xsin(3x), which particular-solution trial is appropriate for undetermined coefficients before coefficients are found?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

Solve y'' + y = 5cos(2x) by undetermined coefficients. Give a particular solution and the general solution. Then apply the operator to your particular solution as a check. State why no resonance multiplier is needed.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

Solve y'' - 9y = 6e3x. Explain why Ae3x fails before solving for the corrected particular solution. Give the general solution and verify the forcing term after substitution.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors