Solve d²y/dx² + a²y = sec ax by the method of variation of parameters.
15 marks · directive: Solve
The core of a good answer
With y₁ = cos ax, y₂ = sin ax and Wronskian a, variation of parameters gives y = c₁ cos ax + c₂ sin ax + (1/a²) cos ax log|cos ax| + (x/a) sin ax.
An outline written by upsc.help, not an official UPSC answer; every fact checked by a separate review. How we work
What the question asks
The question fixes the method: write the complementary function, compute the Wronskian, and find the varying coefficients by the standard integrals. The right side sec ax is one for which undetermined coefficients does not work, which is why variation of parameters is needed.
Answer outline
Introduction
Equation y″ + a²y = sec ax (a ≠ 0). Auxiliary equation m² + a² = 0, m = ±ia.
Step 1: Complementary function and Wronskian
- C.F. = c₁ cos ax + c₂ sin ax; y₁ = cos ax, y₂ = sin ax
- W = y₁y₂′ − y₂y₁′ = a cos²ax + a sin²ax = a
Step 2: Form of the particular integral
- y_p = A(x) cos ax + B(x) sin ax
- A′ = −y₂R/W = −sin ax sec ax/a = −tan ax/a
- B′ = y₁R/W = cos ax sec ax/a = 1/a
Step 3: Integrate
- A = −(1/a)∫tan ax dx = (1/a²) log|cos ax|
- B = x/a
Step 4: Particular integral
- y_p = (1/a²) cos ax log|cos ax| + (x/a) sin ax
Conclusion
y = c₁ cos ax + c₂ sin ax + (1/a²) cos ax log|cos ax| + (x/a) sin ax. Check: substituting y_p into y″ + a²y gives sec ax exactly (verified symbolically).
Examples and data to cite
- The same method solves y″ + a²y = tan ax, giving the particular integral −(1/a²) cos ax log|sec ax + tan ax|.
- Variation of parameters was first sketched by Euler and later completed by Lagrange; it works for any continuous right side once the complementary function is known.
Facts to remember
- Variation of parameters: y_p = −y₁∫(y₂R/W) dx + y₂∫(y₁R/W) dx.
- Wronskian W = y₁y₂′ − y₂y₁′.
- ∫tan ax dx = −(1/a) log|cos ax| + C.
- C.F. of y″ + a²y = 0 is c₁ cos ax + c₂ sin ax.