{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}”No results found for “{{searchWords}}”× back to contents
$\tan3x$ has asymptotes at $\frac\pi6,\frac\pi2,\frac{5\pi}6,\frac{7\pi}6,\frac{3\pi}2,\frac{11\pi}6$, giving seven branches; $\cos x$ is between $-1$ and $1$.
On every branch, $\tan3x-\cos x$ is strictly increasing, since its derivative is $3\sec^23x+\sin x\ge3-1>0$. On each of the five middle branches it runs from $-\infty$ to $\infty$, so each has exactly one solution.
On $[0,\frac\pi6)$, $\tan3x$ rises from $0$ to $\infty$ while $\cos x\ge\frac{\sqrt3}2>0$: one solution.
On $(\frac{11\pi}6,2\pi]$, $\tan3x<0$ while $\cos x>0$: no solution. The total is $\boxed{6}$.