How to Integrate cos(1/x)
At a glance
- 1. Substitute the reciprocal
Set u = 1/x, so dx = -du/u².
- 2. Integrate by parts
Rewrite the transformed integral using the derivative of cos(u)/u.
- 3. Use the sine integral
Recognize the remaining integral as the special function Si(u).
- 4. Substitute back
Replace u with 1/x and check the result by differentiation.
The integral does not have an elementary antiderivative. It can be written neatly using the sine integral, a standard special function. The result is valid wherever ; because the integrand is undefined at zero, the constant of integration may be chosen independently on the intervals and .
The antiderivative
Define the sine integral by
At , the integrand is understood by its limiting value, which is . Then
The sine integral is not one of the elementary functions such as polynomials, exponentials, logarithms, or trigonometric functions. It is a named function used to represent integrals that cannot be expressed in those elementary terms.
Derivation by substitution
Use the substitution
This transforms the integral into
The derivative of is
Rearranging gives
Therefore,
Since , the term becomes , giving the stated formula.
Check by differentiation
Differentiate the proposed antiderivative. By the chain rule,
Also, , so
The extra terms cancel, leaving , as required.
Worked example: a definite integral
For instance, on the interval , the fundamental theorem of calculus gives
The special-function values can be evaluated numerically, or approximated using the convergent series
For example, the first terms are . This series is useful for moderate values of ; for large arguments, a numerical library may use methods better suited to oscillatory functions.
Common mistakes
- Stopping at the substitution: The transformed integral still needs to be evaluated. Integration by parts exposes the sine integral.
- Dropping the chain-rule factor: Differentiating produces , not just .
- Claiming an elementary antiderivative: The remaining integral is represented by the non-elementary function . A special-function answer is exact, not an approximation.
- Ignoring the domain: The formula is an antiderivative on each interval that avoids zero. It does not make the original integrand defined at .
For a definite integral whose interval crosses zero, the integral must be treated as an improper integral, and convergence should be checked rather than applying the antiderivative across the singular point without comment.
References
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.