The characteristic equation of the associated homogeneous linear ordinary differential equation is , so the complementary function is . For a particular solution, try . Substitution gives , so , . The unrestricted solution is therefore
Its derivative at zero is . The single prescribed condition imposes and leaves one arbitrary constant. Thus the most general permitted solution is
There is no condition fixing , so the remaining arbitrary constant is essential.
Use . The constant forcing has particular solution , while the term satisfies the resonance condition and needs the trial . Since , the forced term is . Adding the homogeneous solution and imposing the initial conditions gives
The differential operator is , where . Set ; the product rule reduces the equation to . Twice integrating gives . The initial conditions yield , so
This substitution removes the repeated characteristic root before finding a particular solution.
The characteristic equation has roots , giving the homogeneous solution . For the sinusoidal forcing term, is a particular solution, since its second derivative cancels and . The zero initial displacement gives ; zero initial derivative gives . Thus
The transient response decays as , leaving the steady-state response . Near zero, and , so the sketch starts with and a horizontal tangent line.
Figure 1.
The decaying transient brings the initially stationary solution to a sinusoidal response
. Solid: the complete solution. Dashed: the surviving term. The lower panel resolves the exponentially decaying difference. Details.
The complementary characteristic roots are . Substituting into the differential operator gives , so a particular solution is . The initial conditions then require and , giving
The characteristic equation gives complementary terms . A linear particular solution is , since its substitution gives . The initial conditions give and , hence
Use the product substitution for a first-order equation . The product rule gives , turning the equation into . Consequently , so .
At the initial value gives , hence . Recovering gives
This is the maximal real graph interval containing the initial point: the logarithm requires , and the numerator has a nonzero limit at zero, so this particular solution cannot extend through zero. Differentiating verifies .
Homogeneous equation. Its characteristic equation is . The two independent solutions are and , so
Forced equation. A particular solution is , since its second derivative minus its first derivative equals . Thus and . The derivative condition at one gives , so . The value condition then gives , so . Hence
Both initial conditions and the forced equation follow directly on substitution.
The complementary function is . A particular solution is , since applying to either sine or cosine multiplies it by . Thus
At zero, , giving . At , the cosine term vanishes and the particular term is , so . Consequently
The two boundary conditions determine the two constants uniquely because their evaluation matrix on is the identity.
The characteristic equation has the repeated root . Its homogeneous solution is therefore . For a particular solution, try . Substitution gives , so and . Thus the general solution is
The extra factor in the second homogeneous term is required by the repeated root.
The characteristic equation factors as , giving . The superposition principle lets us find particular solutions for the two forcing terms separately. A trial gives and , so it is . A trial gives , so . Therefore
The characteristic equation has roots , and a trial multiple of gives the particular solution . Thus
The first two conditions give and , hence . At , the exponentials equal . Therefore
No solution satisfies all three conditions. The first two initial data already determine a unique solution of the second-order linear differential equation; the extra condition is inconsistent with it.
The homogeneous linear system has solution set , a vector subspace. If it contains only the zero vector, no two different solutions of the full system can exist: their difference would be a nonzero homogeneous solution.
A particular solution to the full system exists exactly when belongs to the image of a linear map . If it exists, every solution is
Indeed, subtracting from gives , and conversely adding a kernel vector preserves the right-hand side. Thus there are no solutions, one solution if the kernel is trivial, or infinitely many solutions if it is nontrivial. The last solution set is an affine subspace of dimension , determined by the rank-nullity theorem. For a square nonsingular matrix there is one solution for every right-hand side.
For a monomial trial , the operator gives
Choosing matches the two powers in the forcing, and matches their coefficients. A particular solution is therefore . Adding the homogeneous solutions gives
The arbitrary function labels the values on the characteristic curves; it must have sufficient regularity for the desired classical solution.
The homogeneous characteristic equation is , giving the complementary solution . For a particular solution, try . Substitution gives , so and . Therefore the general solution is
As a direct check, the polynomial part contributes , while both complementary terms contribute zero.
The characteristic polynomial factors as , so the homogeneous solution is . The forcing already occurs in that solution, so a constant multiple of cannot be a particular solution. Use instead. Its derivatives are and , so substitution gives and fixes . Thus
The extra factor of accounts for the repeated forcing exponent in the method of undetermined coefficients.