Use integration by substitution with , so and . The indefinite integral becomes
Thus, with an arbitrary constant of integration,
This real antiderivative applies for and extends continuously to the stated endpoint. Its left derivative there agrees with the limiting integrand, zero.
Use integration by substitution with , so . Then
Differentiating the answer by the chain rule gives , confirming the antiderivative. The real constant of integration is arbitrary.
Write . Apply integration by parts with and :
Using on the right gives . Rearranging proves
For , the analogous integration by parts uses and , giving . Hence
An arbitrary constant of integration absorbs the choices in the lower-order antiderivatives.
Starting from , successive use of gives
These expressions follow directly from the requested recurrence, rather than requiring a separate trigonometric expansion.
At , the initial conditions imply
Differentiate the first relation and solve for the two derivatives:
Fix a reference point and set . Taking antiderivatives gives
The constants must be opposite to preserve the first initial condition; the arbitrary constant of integration does not change . Substitution yields D'Alembert's formula:
The fundamental theorem of calculus verifies that its time derivative at zero is , and its value at zero is . The oriented integral also makes the formula valid for negative .
For a partial fraction decomposition, write
Multiplying by gives . Setting gives , and comparing the coefficient of gives . Thus
Integrating each term gives the antiderivative
The constant of integration can be chosen independently on each interval separated by and .