Variation of Parameters

Construct a particular solution for forcing outside the usual trial families.

Builds on Damping and Mechanical Transients

The bigger question: How do free motion and forcing combine?

On this page

The idea

Variation of parameters replaces the constants in a homogeneous solution by functions. Unlike undetermined coefficients, it handles general forcing and variable coefficients, provided a fundamental homogeneous pair is known.

Visual guide

VISUAL GUIDEA particular solution leaves homogeneous freedom
For y″ = 1/t on t > 0, yₚ = t ln t − t is one particular solution. Adding 1 or adding t changes the initial data without changing the second derivative, because both additions solve y″ = 0.0.1-20.825-0.251.551.52.273.2535ty
  • yₚ
  • yₚ + 1
  • yₚ + t
For y″ = 1/t on t > 0, yₚ = t ln t − t is one particular solution. Adding 1 or adding t changes the initial data without changing the second derivative, because both additions solve y″ = 0.

Method and assumptions

Normalize to y′′+py′+qy=gy''+p y'+q y=g. With independent y1,y2y_1,y_2 and W=y1y2′−y1′y2W=y_1y_2'-y_1' y_2, impose u1′y1+u2′y2=0u_1' y_1+u_2' y_2=0. The remaining equation gives u1′=−y2g/Wu_1'=-y_2g/W and u2′=y1g/Wu_2'=y_1g/W. Integrate and set yp=u1y1+u2y2y_p=u_1y_1+u_2y_2.

Worked example: an elementary check

For y′′+y=1y''+y=1, use y1=cos⁡t,y2=sin⁡t,W=1y_1=\cos t,y_2=\sin t,W=1. Then u1=cos⁡t,u2=sin⁡tu_1=\cos t,u_2=\sin t are convenient antiderivatives. Therefore yp=cos⁡2t+sin⁡2t=1y_p=\cos^2t+\sin^2t=1.

PAUSE & THINKA quick check, not a grade

Try it yourself.

Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.

Why must the fundamental pair’s Wronskian be nonzero in variation of parameters?

Hint 1 · Find a starting point

The coefficient derivatives satisfy a 2×2 linear system.

Hint 2 · Take the next step

The Wronskian is that system’s determinant.

Show the reasoning

Answer: It makes the equations for the varying coefficients solvable.

A nonzero determinant permits solving for the two coefficient derivatives; it encodes independence.

Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.

Worked example: non-polynomial forcing

For y′′=1/ty''=1/t on t>0t>0, choose y1=1,y2=t,W=1y_1=1,y_2=t,W=1. Then u1′=−1,u2′=1/tu_1'=-1,u_2'=1/t, giving yp=−t+tln⁡ty_p=-t+t\ln t. Differentiating twice returns 1/t1/t.

Interpreting the result

Changing integration constants only adds homogeneous terms, so one convenient set is enough for a particular solution. Definite integrals from an initial time are useful for enforcing zero initial response and for numerical evaluation.

Practice

  1. Why must WW be nonzero?
  2. What must be done to 2y′′+2y=f(t)2y''+2y=f(t) first?
  3. Find a particular solution of y′′=ety''=e^t.
Show worked solutions
  1. The coefficient system for u1′,u2′u_1',u_2' must be invertible.
  2. Divide by 22, so the normalized forcing is g=f/2g=f/2.
  3. yp=ety_p=e^t; differentiating twice verifies it. The general solution adds c1+c2tc_1+c_2t.

Further study

MIT OpenCourseWare: Differential Equations provides a full university course with additional lectures and exercises.

MAKE IT YOURS

Pause before the next idea.

Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.

Optional marks, not a grade. Saved in this browser only. Open notebook →