Let $$ f(x) = \begin{cases} \sin(x)&\text{if $x$ is rational}\\ 1-2\cos(x)&\text{otherwise} \end{cases} $$
We have to comment on the continuity of the function. Whether it is continuous at infinite points, one point or nowhere
My approach: I solved $\sin x=1-2\cos x$ and found that there were infinitely many solutions. But in this case where the function is defined differently for rational and irrational x does equality imply continuity?