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.
- Solve the homogeneous equation to find \(y_1\) and \(y_2\)
- Calculate the Wronskian: \(W(y_1, y_2) = y_1y_2' - y_1'y_2\)
- Find the parameter functions: \(u_1' = -\frac{y_2g(x)}{W}\) and \(u_2' = \frac{y_1g(x)}{W}\)
- Integrate to find \(u_1\) and \(u_2\)
- Form the particular solution: \(y_p = u_1y_1 + u_2y_2\)
- General solution: \(y = y_c + y_p\)
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)\)
\(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\)
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\)
\(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\)
\(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)\)
\(y = y_c + y_p = c_1\cos(x) + c_2\sin(x) + \cos(x)\ln|\cos(x)| + x\sin(x)\)
Let's verify by substituting back into the original equation (the calculation is complex but confirms our solution).
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
• 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\)
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.
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}\)
\(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}\)
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}\)
\(u_1 = \int u_1' dx = \int -1 dx = -x\)
\(u_2 = \int u_2' dx = \int e^{-x} dx = -e^{-x}\)
\(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)\)
\(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\)
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\) ✓
The general solution is \(y = C_1e^x + c_2e^{2x} - xe^x\) where \(C_1\) and \(c_2\) are arbitrary constants
• 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}\)
Resonance in variation of parameters: When the forcing frequency matches the natural frequency of the system, the particular solution exhibits growing amplitude with time.
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)\)
\(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\)
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}\)
\(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}\)
\(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}\)
\(y = y_c + y_p = c_1\cos(2x) + c_2\sin(2x) + \frac{x\sin(2x)}{4}\)
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).
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
• 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: 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.
- Solve homogeneous equation: Find \(y_1\) and \(y_2\) such that \(y_c = c_1y_1 + c_2y_2\)
- Calculate Wronskian: \(W = y_1y_2' - y_1'y_2\)
- Find parameter derivatives: \(u_1' = -\frac{y_2g(x)}{W}\), \(u_2' = \frac{y_1g(x)}{W}\)
- Integrate: \(u_1 = \int u_1' dx\), \(u_2 = \int u_2' dx\)
- Form particular solution: \(y_p = u_1y_1 + u_2y_2\)
- General solution: \(y = y_c + y_p\)
• 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
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.
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\)
\(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\)
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)\)
\(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)\)
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\)
\(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}\)
\(y = y_c + y_p = c_1x + c_2x^2 + \frac{1}{2}x^3\ln(x) - \frac{3x^3}{4}\)
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
• 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)\)
Rational forcing: When the forcing function is a rational function, variation of parameters can handle cases that undetermined coefficients cannot.
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)\)
As calculated before: \(W = \cos^2(x) + \sin^2(x) = 1\)
The equation is already in standard form: \(y'' + y = \frac{1}{\cos(x)}\)
So \(g(x) = \frac{1}{\cos(x)} = \sec(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\)
\(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\)
\(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)\)
\(y = y_c + y_p = c_1\cos(x) + c_2\sin(x) + \cos(x)\ln|\cos(x)| + x\sin(x)\)
This is the same as Exercise 1, confirming our method works consistently.
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
• 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)}\)
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.
- Systems approach: Convert to system of first-order equations and apply variation of parameters
- Matrix formulation: Use fundamental matrix to express solutions compactly
- Laplace transform: Alternative method for equations with constant coefficients
- Series solutions: When coefficients are variable and not easily handled by other methods
• 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
\(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