For , write the linear ordinary differential equation as
An integrating factor on each interval avoiding is ; multiplication by a nonzero constant, including a sign, is immaterial. Therefore
The partial fraction decomposition is
Integrating gives the general solution
The constant is independent on each connected interval of definition. At the singular points the undivided differential equation forces and . The displayed family tends to these values, but its derivative has a logarithmic divergence there, so no member extends as a differentiable function through either singular point.
For the spatial mode with eigenvalue , the temporal ordinary differential equation is
Its general solution is
The printed reference to “each solution ... in part (b)” refers to (b)(i). The zero spatial mode gives irrespective of and contributes no additional nonzero solution.[ref]
The characteristic equation of a constant-coefficient differential equation here is . Its homogeneous solution is . Because the forcing is already a homogeneous mode, the method of undetermined coefficients requires rather than .
Here and , so . Thus , and the general solution is
Variation of parameters Created 2026-09-24 Updated 2026-10-18
Variation of parameters replaces the constants in a complementary solution by functions to construct a particular solution.
For the inhomogeneous linear differential equation , assume are continuous functions on an interval , and are linearly independent homogeneous solutions there. With and , variation of parameters constructs the particular solution
The Wronskian has no zeros on , so these quotients are defined. For , normalize first: , not .[ref]
To derive the formula, write and impose . This auxiliary choice removes extra terms from the first derivative. Substitution into the inhomogeneous linear differential equation leaves . The two linear equations for have determinant , and Cramer's rule gives
Integrating from makes . Arbitrary integration constants contribute only homogeneous solutions; adding supplies the general solution.
For a worked example, use the same homogeneous solutions and the forcing term in . With and ,
Consequently the particular solution selected by zero initial conditions is
Its value and first derivative vanish at zero. Direct substitution confirms the forcing term: the differential operator annihilates the last two terms and maps to . The two integrals therefore build a response from known homogeneous solutions, even when the forcing term has no convenient elementary guess.