I am reading a calculus book.
This book contains the following problem:
Let $a,b>0$.
Find $$\int \frac{1}{a^2\cos^2{x}+b^2\sin^2{x}} dx.$$
The author's answer is
$$\frac{1}{ab}\arctan{(\frac{b}{a}\tan{x})}.$$
This function is not continuous and is not even defined at $\frac{\pi}{2}+n\pi(n\in\mathbb{Z}).$
$\frac{1}{a^2\cos^2{x}+b^2\sin^2{x}}$ is defined on $\mathbb{R}$.
I think primitive functions are continuous but this function is not continuous.
Why?
