Maths WorkshopMaths problems with full solutions
Exercise 736Calculus › Single-variable calculus › Continuity › Intermediate Value TheoremL1Added 2 Nov 2026

cos x = 1/x has infinitely many solutions

#intermediate value theorem#infinitely many solutions

Statement

Show that the equation cos⁡x=1x\cos x=\dfrac1x has infinitely many solutions in (0,+∞)(0,+\infty).

Hint

Turn it into xcos⁡x−1=0x\cos x-1=0 and find a sign change in (2kπ,(2k+1)π)(2k\pi,(2k+1)\pi) for each k≥1k\ge1.

Show solutionHide solution

Solution

Idea. One sign change gives one root. To get infinitely many roots, find one in each of infinitely many disjoint intervals.

Setup. For x>0x>0 the equation is equivalent to φ(x)=xcos⁡x−1=0\varphi(x)=x\cos x-1=0. The function φ\varphi is continuous.

Sign change. For an integer k≥1k\ge1:
- φ(2kπ)=2kπ−1>0\varphi(2k\pi)=2k\pi-1>0,
- φ((2k+1)π)=−(2k+1)π−1<0\varphi((2k+1)\pi)=-(2k+1)\pi-1<0.

By the intermediate value theorem there is xk∈(2kπ,(2k+1)π)x_k\in(2k\pi,(2k+1)\pi) with φ(xk)=0\varphi(x_k)=0.

Conclusion. The intervals (2kπ,(2k+1)π)(2k\pi,(2k+1)\pi) are pairwise disjoint, so the xkx_k are pairwise distinct. The equation has infinitely many solutions.

Picture. The curve y=cos⁡xy=\cos x keeps crossing the decreasing curve y=1xy=\frac1x, which becomes flat near 00 while the cosine goes on oscillating between −1-1 and 11.