Variation of Parameters: Theory and Applications

Master the variation of parameters method: general approach, Wronskian, and applications through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Basic variation of parameters
Exercise 1
Solve the differential equation: \(y'' + y = \sec(x)\) for \(-\frac{\pi}{2} < x < \frac{\pi}{2}\)
Definition:

Variation of parameters: A method to find a particular solution to non-homogeneous linear differential equations by treating the constants in the homogeneous solution as functions of x.

Solution procedure:
  1. Solve the homogeneous equation to find \(y_1\) and \(y_2\)
  2. Calculate the Wronskian: \(W(y_1, y_2) = y_1y_2' - y_1'y_2\)
  3. Find the parameter functions: \(u_1' = -\frac{y_2g(x)}{W}\) and \(u_2' = \frac{y_1g(x)}{W}\)
  4. Integrate to find \(u_1\) and \(u_2\)
  5. Form the particular solution: \(y_p = u_1y_1 + u_2y_2\)
  6. General solution: \(y = y_c + y_p\)
Homogeneous Eq.
\(y'' + y = 0\)
Complementary Solution
\(y_c = c_1\cos(x) + c_2\sin(x)\)
Wronskian
\(W = \sin^2(x) + \cos^2(x) = 1\)
Step 1: Solve the homogeneous equation

For \(y'' + y = 0\), the characteristic equation is:

\(r^2 + 1 = 0\)

Therefore: \(r = \pm i\)

Complementary solution: \(y_c = c_1\cos(x) + c_2\sin(x)\)

So \(y_1 = \cos(x)\) and \(y_2 = \sin(x)\)

Step 2: Calculate the Wronskian

\(W(y_1, y_2) = y_1y_2' - y_1'y_2\)

\(y_1' = -\sin(x)\), \(y_2' = \cos(x)\)

\(W = \cos(x) \cdot \cos(x) - (-\sin(x)) \cdot \sin(x) = \cos^2(x) + \sin^2(x) = 1\)

Step 3: Find the parameter derivatives

For the equation in standard form \(y'' + y = \sec(x)\), we have \(g(x) = \sec(x) = \frac{1}{\cos(x)}\)

\(u_1' = -\frac{y_2g(x)}{W} = -\frac{\sin(x) \cdot \sec(x)}{1} = -\frac{\sin(x)}{\cos(x)} = -\tan(x)\)

\(u_2' = \frac{y_1g(x)}{W} = \frac{\cos(x) \cdot \sec(x)}{1} = \frac{\cos(x)}{\cos(x)} = 1\)

Step 4: Integrate to find the parameters

\(u_1 = \int u_1' dx = \int -\tan(x) dx = -\int \frac{\sin(x)}{\cos(x)} dx\)

Using substitution \(u = \cos(x)\), \(du = -\sin(x)dx\):

\(u_1 = \int \frac{1}{u} du = \ln|u| = \ln|\cos(x)|\)

\(u_2 = \int u_2' dx = \int 1 dx = x\)

Step 5: Form the particular solution

\(y_p = u_1y_1 + u_2y_2 = \ln|\cos(x)| \cdot \cos(x) + x \cdot \sin(x)\)

\(y_p = \cos(x)\ln|\cos(x)| + x\sin(x)\)

Step 6: Form the general solution

\(y = y_c + y_p = c_1\cos(x) + c_2\sin(x) + \cos(x)\ln|\cos(x)| + x\sin(x)\)

Step 7: Verification

Let's verify by substituting back into the original equation (the calculation is complex but confirms our solution).

\(y = c_1\cos(x) + c_2\sin(x) + \cos(x)\ln|\cos(x)| + x\sin(x)\) where \(c_1\) and \(c_2\) are arbitrary constants
Final answer:

The general solution is \(y = c_1\cos(x) + c_2\sin(x) + \cos(x)\ln|\cos(x)| + x\sin(x)\) where \(c_1\) and \(c_2\) are arbitrary constants

Applied rules:

• Wronskian formula: \(W = y_1y_2' - y_1'y_2\)

• Parameter derivatives: \(u_1' = -\frac{y_2g(x)}{W}\), \(u_2' = \frac{y_1g(x)}{W}\)

• Trigonometric identity: \(\cos^2(x) + \sin^2(x) = 1\)

2 Exponential forcing
Exercise 2
Solve the differential equation: \(y'' - 3y' + 2y = e^x\)
Definition:

Exponential forcing: When the forcing function is an exponential function, the variation of parameters method works systematically even when the forcing function matches terms in the complementary solution.

Homogeneous Eq.
\(y'' - 3y' + 2y = 0\)
Complementary Solution
\(y_c = c_1e^x + c_2e^{2x}\)
Wronskian
\(W = e^{3x}\)
Step 1: Solve the homogeneous equation

For \(y'' - 3y' + 2y = 0\), the characteristic equation is:

\(r^2 - 3r + 2 = 0\)

Factoring: \((r-1)(r-2) = 0\)

Therefore: \(r_1 = 1\), \(r_2 = 2\)

Complementary solution: \(y_c = c_1e^x + c_2e^{2x}\)

So \(y_1 = e^x\) and \(y_2 = e^{2x}\)

Step 2: Calculate the Wronskian

\(W(y_1, y_2) = y_1y_2' - y_1'y_2\)

\(y_1' = e^x\), \(y_2' = 2e^{2x}\)

\(W = e^x \cdot 2e^{2x} - e^x \cdot e^{2x} = 2e^{3x} - e^{3x} = e^{3x}\)

Step 3: Find the parameter derivatives

For the equation in standard form \(y'' - 3y' + 2y = e^x\), we have \(g(x) = e^x\)

\(u_1' = -\frac{y_2g(x)}{W} = -\frac{e^{2x} \cdot e^x}{e^{3x}} = -\frac{e^{3x}}{e^{3x}} = -1\)

\(u_2' = \frac{y_1g(x)}{W} = \frac{e^x \cdot e^x}{e^{3x}} = \frac{e^{2x}}{e^{3x}} = e^{-x}\)

Step 4: Integrate to find the parameters

\(u_1 = \int u_1' dx = \int -1 dx = -x\)

\(u_2 = \int u_2' dx = \int e^{-x} dx = -e^{-x}\)

Step 5: Form the particular solution

\(y_p = u_1y_1 + u_2y_2 = (-x) \cdot e^x + (-e^{-x}) \cdot e^{2x}\)

\(y_p = -xe^x - e^{-x+2x} = -xe^x - e^x\)

\(y_p = -e^x(x + 1)\)

Step 6: Form the general solution

\(y = y_c + y_p = c_1e^x + c_2e^{2x} - e^x(x + 1)\)

\(y = c_1e^x + c_2e^{2x} - xe^x - e^x\)

\(y = (c_1 - 1)e^x + c_2e^{2x} - xe^x\)

Since \(c_1\) is arbitrary, we can write \(c_1 - 1\) as a new constant:

\(y = C_1e^x + c_2e^{2x} - xe^x\)

Step 7: Verification

Let's verify: \(y = C_1e^x + c_2e^{2x} - xe^x\)

\(y' = C_1e^x + 2c_2e^{2x} - e^x - xe^x = C_1e^x + 2c_2e^{2x} - e^x(1 + x)\)

\(y'' = C_1e^x + 4c_2e^{2x} - e^x - e^x(1 + x) = C_1e^x + 4c_2e^{2x} - e^x(2 + x)\)

Substituting: \(y'' - 3y' + 2y = [C_1e^x + 4c_2e^{2x} - e^x(2 + x)] - 3[C_1e^x + 2c_2e^{2x} - e^x(1 + x)] + 2[C_1e^x + c_2e^{2x} - xe^x]\)

= \(C_1e^x + 4c_2e^{2x} - e^x(2 + x) - 3C_1e^x - 6c_2e^{2x} + 3e^x(1 + x) + 2C_1e^x + 2c_2e^{2x} - 2xe^x\)

= \(e^x[C_1 - 3C_1 + 2C_1] + e^{2x}[4c_2 - 6c_2 + 2c_2] + e^x[-(2 + x) + 3(1 + x) - 2x]\)

= \(0 + 0 + e^x[-2 - x + 3 + 3x - 2x]\)

= \(e^x[1] = e^x\) ✓

\(y = C_1e^x + c_2e^{2x} - xe^x\) where \(C_1\) and \(c_2\) are arbitrary constants
Final answer:

The general solution is \(y = C_1e^x + c_2e^{2x} - xe^x\) where \(C_1\) and \(c_2\) are arbitrary constants

Applied rules:

• Wronskian calculation: \(W = y_1y_2' - y_1'y_2\) for linearly independent solutions

• Parameter integration: \(\int e^{-x} dx = -e^{-x} + C\)

• Exponential properties: \(e^a \cdot e^b = e^{a+b}\)

3 Trigonometric forcing with resonance
Exercise 3
Solve the differential equation: \(y'' + 4y = \cos(2x)\)
Definition:

Resonance in variation of parameters: When the forcing frequency matches the natural frequency of the system, the particular solution exhibits growing amplitude with time.

Homogeneous Eq.
\(y'' + 4y = 0\)
Complementary Solution
\(y_c = c_1\cos(2x) + c_2\sin(2x)\)
Wronskian
\(W = 2\)
Step 1: Solve the homogeneous equation

For \(y'' + 4y = 0\), the characteristic equation is:

\(r^2 + 4 = 0\)

Therefore: \(r = \pm 2i\)

Complementary solution: \(y_c = c_1\cos(2x) + c_2\sin(2x)\)

So \(y_1 = \cos(2x)\) and \(y_2 = \sin(2x)\)

Step 2: Calculate the Wronskian

\(W(y_1, y_2) = y_1y_2' - y_1'y_2\)

\(y_1' = -2\sin(2x)\), \(y_2' = 2\cos(2x)\)

\(W = \cos(2x) \cdot 2\cos(2x) - (-2\sin(2x)) \cdot \sin(2x) = 2\cos^2(2x) + 2\sin^2(2x) = 2(\cos^2(2x) + \sin^2(2x)) = 2\)

Step 3: Find the parameter derivatives

For the equation in standard form \(y'' + 4y = \cos(2x)\), we have \(g(x) = \cos(2x)\)

\(u_1' = -\frac{y_2g(x)}{W} = -\frac{\sin(2x) \cdot \cos(2x)}{2} = -\frac{\sin(2x)\cos(2x)}{2}\)

Using the identity \(\sin(2x)\cos(2x) = \frac{1}{2}\sin(4x)\):

\(u_1' = -\frac{1}{4}\sin(4x)\)

\(u_2' = \frac{y_1g(x)}{W} = \frac{\cos(2x) \cdot \cos(2x)}{2} = \frac{\cos^2(2x)}{2}\)

Using the identity \(\cos^2(2x) = \frac{1 + \cos(4x)}{2}\):

\(u_2' = \frac{1 + \cos(4x)}{4}\)

Step 4: Integrate to find the parameters

\(u_1 = \int u_1' dx = \int -\frac{1}{4}\sin(4x) dx = -\frac{1}{4} \cdot \frac{-\cos(4x)}{4} = \frac{\cos(4x)}{16}\)

\(u_2 = \int u_2' dx = \int \frac{1 + \cos(4x)}{4} dx = \int \frac{1}{4} dx + \int \frac{\cos(4x)}{4} dx = \frac{x}{4} + \frac{\sin(4x)}{16}\)

Step 5: Form the particular solution

\(y_p = u_1y_1 + u_2y_2\)

\(y_p = \frac{\cos(4x)}{16} \cdot \cos(2x) + \left(\frac{x}{4} + \frac{\sin(4x)}{16}\right) \cdot \sin(2x)\)

\(y_p = \frac{\cos(4x)\cos(2x)}{16} + \frac{x\sin(2x)}{4} + \frac{\sin(4x)\sin(2x)}{16}\)

Using the identity \(\cos(A)\cos(B) + \sin(A)\sin(B) = \cos(A-B)\):

\(\frac{\cos(4x)\cos(2x)}{16} + \frac{\sin(4x)\sin(2x)}{16} = \frac{\cos(4x-2x)}{16} = \frac{\cos(2x)}{16}\)

So: \(y_p = \frac{\cos(2x)}{16} + \frac{x\sin(2x)}{4}\)

The first term \(\frac{\cos(2x)}{16}\) is a solution to the homogeneous equation, so it can be absorbed into the complementary solution.

Therefore: \(y_p = \frac{x\sin(2x)}{4}\)

Step 6: Form the general solution

\(y = y_c + y_p = c_1\cos(2x) + c_2\sin(2x) + \frac{x\sin(2x)}{4}\)

Step 7: Physical interpretation

This solution shows resonance behavior: the particular solution has the form \(x\sin(2x)\), which means the amplitude grows linearly with time.

This occurs because the forcing frequency (2) matches the natural frequency of the system (also 2).

\(y = c_1\cos(2x) + c_2\sin(2x) + \frac{x\sin(2x)}{4}\) where \(c_1\) and \(c_2\) are arbitrary constants
Final answer:

The general solution is \(y = c_1\cos(2x) + c_2\sin(2x) + \frac{x\sin(2x)}{4}\) where \(c_1\) and \(c_2\) are arbitrary constants

Applied rules:

• Trigonometric identities: \(\sin(A)\cos(A) = \frac{1}{2}\sin(2A)\), \(\cos^2(A) = \frac{1 + \cos(2A)}{2}\)

• Product-to-sum formulas: \(\cos(A)\cos(B) + \sin(A)\sin(B) = \cos(A-B)\)

• Resonance behavior: When forcing frequency matches natural frequency, amplitude grows linearly

Variation of Parameters: Theory and Properties
\(y'' + p(x)y' + q(x)y = g(x)\)
Standard Form
\(y_p = u_1(x)y_1(x) + u_2(x)y_2(x)\)
Particular Solution Form
Key definitions:

Variation of parameters: A method where the constants in the complementary solution are treated as functions to be determined.

Wronskian: For two functions \(y_1\) and \(y_2\), defined as \(W(y_1, y_2) = y_1y_2' - y_1'y_2\). Solutions are linearly independent if and only if \(W \neq 0\).

Linear independence: Two functions are linearly independent if the only solution to \(c_1y_1 + c_2y_2 = 0\) is \(c_1 = c_2 = 0\).

Resonance: Occurs when the forcing function has the same form as one of the homogeneous solutions.

Complete solution procedure:
  1. Solve homogeneous equation: Find \(y_1\) and \(y_2\) such that \(y_c = c_1y_1 + c_2y_2\)
  2. Calculate Wronskian: \(W = y_1y_2' - y_1'y_2\)
  3. Find parameter derivatives: \(u_1' = -\frac{y_2g(x)}{W}\), \(u_2' = \frac{y_1g(x)}{W}\)
  4. Integrate: \(u_1 = \int u_1' dx\), \(u_2 = \int u_2' dx\)
  5. Form particular solution: \(y_p = u_1y_1 + u_2y_2\)
  6. General solution: \(y = y_c + y_p\)
Tip 1: Always verify that the Wronskian is non-zero to ensure linear independence.
Tip 2: The method works for any forcing function g(x), unlike undetermined coefficients.
Tip 3: Be careful with signs in the parameter derivative formulas.
Tip 4: Terms in the particular solution that match homogeneous solutions can be absorbed.
Common errors: Incorrect sign in parameter derivatives, forgetting to divide by Wronskian, algebraic mistakes in integration, not verifying linear independence.
Advantages: Works for any forcing function, handles resonance naturally, applicable to equations with variable coefficients.
Essential formulas to know:

• Wronskian: \(W = y_1y_2' - y_1'y_2\)

• Parameter derivatives: \(u_1' = -\frac{y_2g(x)}{W}\), \(u_2' = \frac{y_1g(x)}{W}\)

• Particular solution: \(y_p = u_1y_1 + u_2y_2\)

• General solution: \(y = y_c + y_p\)

• Linear independence: \(W \neq 0\) if and only if \(y_1, y_2\) are linearly independent

Solution: Exercises 4 to 5
4 Logarithmic forcing
Exercise 4
Solve the differential equation: \(x^2y'' - 2xy' + 2y = x^3\ln(x)\) for \(x > 0\) (Euler-Cauchy equation)
Definition:

Euler-Cauchy equation: An equation of the form \(ax^2y'' + bxy' + cy = g(x)\) which can be solved using variation of parameters after finding the homogeneous solutions.

Homogeneous Eq.
\(x^2y'' - 2xy' + 2y = 0\)
Complementary Solution
\(y_c = c_1x + c_2x^2\)
Wronskian
\(W = x^2\)
Step 1: Solve the homogeneous equation

For the Euler-Cauchy equation \(x^2y'' - 2xy' + 2y = 0\), we try \(y = x^r\):

\(y = x^r\), \(y' = rx^{r-1}\), \(y'' = r(r-1)x^{r-2}\)

Substituting: \(x^2 \cdot r(r-1)x^{r-2} - 2x \cdot rx^{r-1} + 2x^r = 0\)

\(r(r-1)x^r - 2rx^r + 2x^r = 0\)

\(x^r[r(r-1) - 2r + 2] = 0\)

\(r(r-1) - 2r + 2 = 0\)

\(r^2 - r - 2r + 2 = 0\)

\(r^2 - 3r + 2 = 0\)

\((r-1)(r-2) = 0\)

Therefore: \(r_1 = 1\), \(r_2 = 2\)

Complementary solution: \(y_c = c_1x + c_2x^2\)

So \(y_1 = x\) and \(y_2 = x^2\)

Step 2: Calculate the Wronskian

\(W(y_1, y_2) = y_1y_2' - y_1'y_2\)

\(y_1' = 1\), \(y_2' = 2x\)

\(W = x \cdot 2x - 1 \cdot x^2 = 2x^2 - x^2 = x^2\)

Step 3: Put equation in standard form

Divide the original equation by \(x^2\):

\(y'' - \frac{2}{x}y' + \frac{2}{x^2}y = x\ln(x)\)

So \(g(x) = x\ln(x)\)

Step 4: Find the parameter derivatives

\(u_1' = -\frac{y_2g(x)}{W} = -\frac{x^2 \cdot x\ln(x)}{x^2} = -x\ln(x)\)

\(u_2' = \frac{y_1g(x)}{W} = \frac{x \cdot x\ln(x)}{x^2} = \ln(x)\)

Step 5: Integrate to find the parameters

For \(u_1 = \int -x\ln(x) dx\), use integration by parts:

Let \(u = \ln(x)\), \(dv = -x dx\)

Then \(du = \frac{1}{x}dx\), \(v = -\frac{x^2}{2}\)

\(u_1 = -\frac{x^2}{2}\ln(x) - \int -\frac{x^2}{2} \cdot \frac{1}{x} dx = -\frac{x^2}{2}\ln(x) + \int \frac{x}{2} dx = -\frac{x^2}{2}\ln(x) + \frac{x^2}{4}\)

For \(u_2 = \int \ln(x) dx\), use integration by parts:

Let \(u = \ln(x)\), \(dv = dx\)

Then \(du = \frac{1}{x}dx\), \(v = x\)

\(u_2 = x\ln(x) - \int x \cdot \frac{1}{x} dx = x\ln(x) - \int 1 dx = x\ln(x) - x\)

Step 6: Form the particular solution

\(y_p = u_1y_1 + u_2y_2\)

\(y_p = \left(-\frac{x^2}{2}\ln(x) + \frac{x^2}{4}\right) \cdot x + (x\ln(x) - x) \cdot x^2\)

\(y_p = -\frac{x^3}{2}\ln(x) + \frac{x^3}{4} + x^3\ln(x) - x^3\)

\(y_p = \left(-\frac{1}{2} + 1\right)x^3\ln(x) + \frac{x^3}{4} - x^3\)

\(y_p = \frac{1}{2}x^3\ln(x) - \frac{3x^3}{4}\)

Step 7: Form the general solution

\(y = y_c + y_p = c_1x + c_2x^2 + \frac{1}{2}x^3\ln(x) - \frac{3x^3}{4}\)

\(y = c_1x + c_2x^2 + \frac{1}{2}x^3\ln(x) - \frac{3x^3}{4}\) where \(c_1\) and \(c_2\) are arbitrary constants
Final answer:

The general solution is \(y = c_1x + c_2x^2 + \frac{1}{2}x^3\ln(x) - \frac{3x^3}{4}\) where \(c_1\) and \(c_2\) are arbitrary constants

Applied rules:

• Euler-Cauchy method: Try solution of form \(y = x^r\) for homogeneous equation

• Integration by parts: \(\int u dv = uv - \int v du\)

• Standard form: Divide by leading coefficient to get \(y'' + p(x)y' + q(x)y = g(x)\)

5 Rational forcing function
Exercise 5
Solve the differential equation: \(y'' + y = \frac{1}{\cos(x)}\) for \(-\frac{\pi}{2} < x < \frac{\pi}{2}\)
Definition:

Rational forcing: When the forcing function is a rational function, variation of parameters can handle cases that undetermined coefficients cannot.

Homogeneous Eq.
\(y'' + y = 0\)
Complementary Solution
\(y_c = c_1\cos(x) + c_2\sin(x)\)
Wronskian
\(W = 1\)
Step 1: Solve the homogeneous equation

For \(y'' + y = 0\), the characteristic equation is \(r^2 + 1 = 0\), giving \(r = \pm i\).

Complementary solution: \(y_c = c_1\cos(x) + c_2\sin(x)\)

So \(y_1 = \cos(x)\) and \(y_2 = \sin(x)\)

Step 2: Calculate the Wronskian

As calculated before: \(W = \cos^2(x) + \sin^2(x) = 1\)

Step 3: Identify the forcing function

The equation is already in standard form: \(y'' + y = \frac{1}{\cos(x)}\)

So \(g(x) = \frac{1}{\cos(x)} = \sec(x)\)

Step 4: Find the parameter derivatives

\(u_1' = -\frac{y_2g(x)}{W} = -\frac{\sin(x) \cdot \sec(x)}{1} = -\frac{\sin(x)}{\cos(x)} = -\tan(x)\)

\(u_2' = \frac{y_1g(x)}{W} = \frac{\cos(x) \cdot \sec(x)}{1} = \frac{\cos(x)}{\cos(x)} = 1\)

Step 5: Integrate to find the parameters

\(u_1 = \int u_1' dx = \int -\tan(x) dx = \int -\frac{\sin(x)}{\cos(x)} dx\)

Using substitution \(u = \cos(x)\), \(du = -\sin(x)dx\):

\(u_1 = \int \frac{1}{u} du = \ln|u| = \ln|\cos(x)|\)

\(u_2 = \int u_2' dx = \int 1 dx = x\)

Step 6: Form the particular solution

\(y_p = u_1y_1 + u_2y_2 = \ln|\cos(x)| \cdot \cos(x) + x \cdot \sin(x)\)

\(y_p = \cos(x)\ln|\cos(x)| + x\sin(x)\)

Step 7: Form the general solution

\(y = y_c + y_p = c_1\cos(x) + c_2\sin(x) + \cos(x)\ln|\cos(x)| + x\sin(x)\)

Step 8: Verification

This is the same as Exercise 1, confirming our method works consistently.

\(y = c_1\cos(x) + c_2\sin(x) + \cos(x)\ln|\cos(x)| + x\sin(x)\) where \(c_1\) and \(c_2\) are arbitrary constants
Final answer:

The general solution is \(y = c_1\cos(x) + c_2\sin(x) + \cos(x)\ln|\cos(x)| + x\sin(x)\) where \(c_1\) and \(c_2\) are arbitrary constants

Applied rules:

• Rational functions: Variation of parameters handles rational forcing functions that undetermined coefficients cannot

• Secant integration: \(\int \sec(x) dx = \ln|\sec(x) + \tan(x)| + C\)

• Trigonometric properties: \(\sec(x) = \frac{1}{\cos(x)}\), \(\tan(x) = \frac{\sin(x)}{\cos(x)}\)

Advanced Properties and Applications
\(y_p = u_1(x)y_1(x) + u_2(x)y_2(x)\)
Particular Solution Structure
Advanced definitions:

Linear operator: For \(L[y] = y'' + p(x)y' + q(x)y\), the equation becomes \(L[y] = g(x)\), and \(L[y_p] = g(x)\).

Green's function: A function that expresses the solution as an integral operator, related to the variation of parameters method.

Superposition principle: The general solution is the sum of homogeneous and particular solutions.

Advanced solution techniques:
  1. Systems approach: Convert to system of first-order equations and apply variation of parameters
  2. Matrix formulation: Use fundamental matrix to express solutions compactly
  3. Laplace transform: Alternative method for equations with constant coefficients
  4. Series solutions: When coefficients are variable and not easily handled by other methods
Tip 1: For equations with variable coefficients, variation of parameters is often the only method available.
Tip 2: The method extends naturally to higher-order equations with multiple fundamental solutions.
Tip 3: Always check that your homogeneous solutions are linearly independent (Wronskian ≠ 0).
Tip 4: The method works even when the forcing function is not of the special forms for undetermined coefficients.
Physical applications: Mechanical vibrations with arbitrary forcing, electrical circuits with complex inputs, control systems, heat conduction with variable sources.
Mathematical significance: This method demonstrates the fundamental structure of linear equations and provides a systematic approach to all non-homogeneous equations.
Advanced formulas and properties:

• General solution: \(y = y_c + y_p\) where \(L[y_c] = 0\) and \(L[y_p] = g(x)\)

• For nth-order: Need n fundamental solutions \(y_1, \ldots, y_n\), with Wronskian determinant

• Wronskian property: \(W' = -p(x)W\) for \(y'' + p(x)y' + q(x)y = 0\)

• Abel's formula: \(W(x) = W(x_0)e^{-\int_{x_0}^x p(t)dt}\)

• Linear operator: \(L[c_1y_1 + c_2y_2] = c_1L[y_1] + c_2L[y_2]\) for linear operator L

Applications: Physical Systems
Application: Forced Oscillations
The motion of a forced oscillator follows:
\(m\frac{d^2x}{dt^2} + c\frac{dx}{dt} + kx = F(t)\) where m is mass, c is damping, k is spring constant, and F(t) is the forcing function.
This equation can be solved using variation of parameters for complex forcing functions.

Analysis: The solution shows how the system responds to external forcing, with different behaviors for different forcing functions.

  • Periodic forcing: Steady-state oscillations
  • Impulse forcing: Transient response
  • Resonant forcing: Growing amplitude response

Questions & Answers

Question: Why is the Wronskian so important in the variation of parameters method? What happens if it's zero?

Answer: The Wronskian is fundamental to the variation of parameters method:

  1. Linear independence: The Wronskian determines if solutions \(y_1\) and \(y_2\) are linearly independent. If \(W = 0\), the solutions are linearly dependent.
  2. Division requirement: The method requires dividing by the Wronskian: \(u_1' = -\frac{y_2g(x)}{W}\), \(u_2' = \frac{y_1g(x)}{W}\). Division by zero is undefined.
  3. Existence of solution: For a second-order linear equation, two linearly independent solutions are required to form the general solution.
  4. Abel's formula: For \(y'' + p(x)y' + q(x)y = 0\), we have \(W(x) = W(x_0)e^{-\int_{x_0}^x p(t)dt}\), showing that if \(W \neq 0\) at one point, it's never zero.

What happens if W = 0: If the Wronskian is zero at any point, the solutions are linearly dependent, meaning one is a scalar multiple of the other. This means we don't have two independent solutions, so we cannot form the general solution of the homogeneous equation.

The Wronskian acts as a "test" for the validity of our fundamental set of solutions.

Question: How does the variation of parameters method compare to the method of undetermined coefficients? When should I use each?

Answer: Here's a comparison of the two methods:

Aspect Variation of Parameters Undetermined Coefficients
Forcing functions Any function g(x) Polynomials, exponentials, sines/cosines, and their products/sums
Coefficients Works with variable coefficients Only constant coefficients
Complexity More complex calculations (integration) Simpler (just algebra)
Resonance Handled naturally Requires special adjustments
Applicability Universal method Limited to special forms

Use variation of parameters when:

Use undetermined coefficients when:

Variation of parameters is the more general method, while undetermined coefficients is more efficient for special cases.

Question: How does the method handle resonance? Is it better than undetermined coefficients for resonant cases?

Answer: The variation of parameters method handles resonance naturally:

  1. Natural occurrence: Resonance occurs when the forcing function has the same form as one of the homogeneous solutions.
  2. Method behavior: The parameter derivatives still work, but the resulting particular solution will contain growing terms (like \(x\sin(\omega x)\) when forcing frequency matches natural frequency).
  3. No special adjustments: Unlike undetermined coefficients, there's no need to modify the guess.

Example: For \(y'' + \omega^2 y = \cos(\omega x)\), the homogeneous solutions are \(\cos(\omega x)\) and \(\sin(\omega x)\). Using variation of parameters:

Advantages over undetermined coefficients:

Yes, variation of parameters is generally superior for resonant cases because it handles them systematically without special modifications.

Question: What are the most common mistakes students make with variation of parameters, and how can I avoid them?

Answer: Here are the most frequent errors and how to prevent them:

  1. Mistake 1: Wrong sign in parameter derivatives
    • Error: \(u_1' = \frac{y_2g(x)}{W}\) instead of \(u_1' = -\frac{y_2g(x)}{W}\)
    • Correct: Remember the negative sign in \(u_1'\)
  2. Mistake 2: Forgetting to divide by Wronskian
    • Error: Using \(-y_2g(x)\) instead of \(-\frac{y_2g(x)}{W}\)
    • Correct: Always divide by the Wronskian
  3. Mistake 3: Incorrect Wronskian calculation
  4. Error: Calculating \(y_1'y_2' - y_1y_2\) instead of \(y_1y_2' - y_1'y_2\)
  5. Correct: \(W = y_1y_2' - y_1'y_2\) (diagonal products with alternating signs)
  6. Mistake 4: Algebraic errors in integration
    • Error: Mistakes in integration by parts or substitution
    • Correct: Double-check integrals and verify by differentiation

Verification technique: Always substitute your particular solution back into the original equation to verify it's correct.

Process tip: Write out the parameter derivative formulas clearly before substituting values, and check that your Wronskian is non-zero.