100%
PAGE 1

Variation of Parameters

undetermined coefficients is a simple (in concept) method to solve

\[ a y'' + b y' + c y = f(t) \]
  • particular solution \( y_p \) matches the form of \( f(t) \) (forcing function)

but it relies on the form of \( y_p \) not changing after differentiation

  • that's why it's good for exponential, polynomial, sine & cosine

But, because of that reason, those are the only functions undetermined coefficients can handle

Concept Explanation: The method of undetermined coefficients requires a finite family of derivatives. For instance, derivatives of polynomials, exponentials, sines, and cosines generate linear combinations of the same types of functions. Functions like \( \ln(t) \), \( \tan(t) \), or \( 1/t \) have derivative families that do not terminate or cycle, rendering undetermined coefficients ineffective.

for example, \[ y'' + y = \ln(t) \quad t > 0 \]

\[ y_c = C_1 \cos(t) + C_2 \sin(t) \]
\[ y_p = A \ln(t) \] (basic idea of undet. coeff.)
\[ y_p' = \frac{A}{t} \] not \( \ln(t) \) anymore

another issue w/ undet. coeff : the problem of duplicating solutions

PAGE 2

Variation of parameters is another method to solve linear nonhomogeneous eqs:

\[ y'' + p(t) y' + q(t) y = f(t) \]

basic idea: complementary solution is \( y_c = C_1 y_1 + C_2 y_2 \)

general solution :
\[ y = u_1(t) y_1 + u_2(t) y_2 \]

where:

  • \( u_1(t), u_2(t) \): constants (parameters) that are varied.
Note on Method Connection: In reduction of order, we substitute a single variable parameter \( y = v(t)y_1 \) to find a second solution. Here, we "vary" both constants \( C_1 \) and \( C_2 \) into functions \( u_1(t) \) and \( u_2(t) \) to find the general nonhomogeneous solution.

(notice its similarity to reduction of order \[ y = v(t) y_1 \quad \text{or} \quad y = v(t) y_2 \text{)} \]

finding \( u_1(t) \) and \( u_2(t) \) will give us the general solution

by substituting \( y = u_1(t) y_1 + u_2(t) y_2 \) into
\[ y'' + p(t) y' + q(t) y = f(t) \]
PAGE 3

Variation of Parameters: Derivation

We assume a particular solution of the form:

\[ y = u_1 y_1 + u_2 y_2 \]

Differentiating with respect to the independent variable:

\[ \begin{aligned} y' &= u_1 y_1' + u_1' y_1 + u_2 y_2' + u_2' y_2 \\[6pt] &= u_1 y_1' + u_2 y_2' \end{aligned} \]

Taking the second derivative:

\[ y'' = u_1 y_1'' + u_1' y_1' + u_2 y_2'' + u_2' y_2' \]

\( y'' + p y' + q y = f \) becomes, after some rearrangements:

\[ u_1 (y_1'' + p y_1' + q y_1) + u_2 (y_2'' + p y_2' + q y_2) + u_1' y_1' + u_2' y_2' = f \]

where:

  • \( y_1'' + p y_1' + q y_1 = 0 \) because \( y_1 \) is a solution to the homogeneous equation \( y'' + p y' + q y = 0 \).
  • \( y_2'' + p y_2' + q y_2 = 0 \) for the same reason (\( y_2 \) is also a solution to the homogeneous equation).
What's left:
\[ u_1' y_1' + u_2' y_2' = f \]
PAGE 4

System of Equations & Example

Solve simultaneously:

\[ \begin{cases} u_1' y_1 + u_2' y_2 = 0 \\[6pt] u_1' y_1' + u_2' y_2' = f \end{cases} \]

Solve simultaneously for \( u_1', u_2' \), then integrate.

Example

\[ y'' + y = \csc(t) \]

Complementary solution: \[ y_c = C_1 \cos(t) + C_2 \sin(t) \]

  • \( y_1 = \cos(t) \)
  • \( y_2 = \sin(t) \)

Variation of parameters: \( y = u_1 y_1 + u_2 y_2 \)

Solve:

\[ \begin{aligned} u_1' \cos(t) + u_2' \sin(t) &= 0 & \quad \text{--- } (1) \\[6pt] -u_1' \sin(t) + u_2' \cos(t) &= \csc(t) & \quad \text{--- } (2) \end{aligned} \]
From \( (1) \): \[ u_1' = -\frac{\sin(t)}{\cos(t)} u_2' \] Sub into \( (2) \)
PAGE 5

Variation of Parameters: Solving for the General Solution

Continuing the solution process:

\[ \frac{\sin^2(t)}{\cos(t)} u_2' + u_2' \cos(t) = \frac{1}{\sin(t)} \]

Factoring out \( u_2' \):

\[ u_2' (\sin^2(t) + \cos^2(t)) = \frac{\cos(t)}{\sin(t)} \]

Since \( \sin^2(t) + \cos^2(t) = 1 \), we integrate to find \( u_2 \):

\[ u_2 = \int \frac{\cos(t)}{\sin(t)} \, dt = \ln |\sin(t)| + C_2 \]

From Earlier

Using the relation established previously for \( u_1' \):

\[ u_1' = -\frac{\sin(t)}{\cos(t)} u_2' = -\frac{\sin(t)}{\cos(t)} \frac{\cos(t)}{\sin(t)} = -1 \]

Integrating \( u_1' \):

\[ u_1 = -t + C_1 \]

General Solution

Combining the solutions into \( y = u_1 y_1 + u_2 y_2 \):

\[ \begin{aligned} y &= u_1 y_1 + u_2 y_2 \\ &= (-t + C_1) \cos(t) + (\ln |\sin(t)| + C_2) \sin(t) \end{aligned} \]
\[ y = C_1 \cos(t) + C_2 \sin(t) - t \cos(t) + \sin(t) \ln |\sin(t)| \]

Complementary solution:

\[ y_c = C_1 \cos(t) + C_2 \sin(t) \]

Particular solution:

\[ y_p = -t \cos(t) + \sin(t) \ln |\sin(t)| \]

due to \( f(t) = \csc(t) \)

Note on Terms: The solution consists of the complementary function \( y_c = C_1 \cos(t) + C_2 \sin(t) \) satisfying the homogeneous equation, plus the particular solution \( y_p = -t \cos(t) + \sin(t) \ln |\sin(t)| \) resulting from the non-homogeneous driving term \( f(t) = \csc(t) \).
PAGE 6

Variation of Parameters and Duplication

Variation of parameters handles the extra “\( t \)” when duplication occurs automatically.

Example

\[ y'' - 3y' + 2y = e^t \]

The complementary solution is:

\[ y_c = C_1 e^t + C_2 e^{2t} \]

If using undetermined coefficients, we need:

\[ y_p = A t e^t \]

due to \( f(t) = e^t \) copying a term in \( y_c \).

With Variation of Parameters

With variation, we just solve the standard system:

\[ \begin{aligned} u_1' y_1 + u_2' y_2 &= 0 \\ u_1' y_1' + u_2' y_2' &= f \end{aligned} \]

The duplication issue resolves itself.

Key Insight: Unlike undetermined coefficients, where resonant or duplicate terms require multiplying candidate solutions by \( t \) (or powers of \( t \)), variation of parameters does not require pre-identifying resonance; the integration automatically yields the required secular term \( t e^t \).
PAGE 7

Variation of Parameters Solution

We begin with the linear system for the derivatives of the parameters:

\[ \begin{aligned} u_1' e^t + u_2' e^{2t} &= 0 \\ u_1' e^t + 2u_2' e^{2t} &= e^t \end{aligned} \]
⋮

Solving the system above gives \( u_1' = -1 \) and \( u_2' = e^{-t} \). Integrating these yields the functions \( u_1 \) and \( u_2 \):

\[ \begin{aligned} u_1 &= -t + c_1 \\ u_2 &= -e^{-t} + c_2 \end{aligned} \]

General solution:

\[ \begin{aligned} y &= (-t + c_1)e^t + (-e^{-t} + c_2)e^{2t} \\ &= c_1 e^t + c_2 e^{2t} - t e^t - e^t \end{aligned} \]

Note: Absorb \(-e^t\) into the first term since \( c_1 - 1 \) is another arbitrary constant.

\[ y = \underbrace{c_1 e^t + c_2 e^{2t}}_{y_c} - \underbrace{t e^t}_{y_p} \]

Annotation: An extra \( t \) automatically appears in the particular solution \( y_p \).

where:

  • \( y_c = c_1 e^t + c_2 e^{2t} \): complementary solution
  • \( y_p = -t e^t \): particular solution