Can anyone help me figure out what is wrong in the following step:
$$\begin{align}\int \tan x\ dx &= \int (\sec x \sin x)\ dx\\ &= -\sec x \cos x + \int \sec x\tan x\cos x\ dx\\ &= -1 + \int \tan x dx\end{align}$$
So I got $\displaystyle\int \tan x\ dx = -1 + \int \tan x\ dx$ that is $0 = -1$ ?
Any help will be really appreciated!
Now I understand. So an indefinite integral can be defined only upto a constant. Thanks a lot!