Consider the following trigonometric equation, which needs to be solved for $\theta$:
$\tan{(\pi\cot{\theta})}=\cot{(\pi\tan{\theta})}$
The solution given is: $\tan{\theta}=\dfrac{2n+1\pm\sqrt{4n^2+4n-15}}{4}$ for integral values of $n$, AND $n>1$ or $n<-2$.
The method I adopted to arrive at this solutions was to first write $\cot{(\pi\tan{\theta})}$ as $\tan{(\pi/2-\pi\tan{\theta})}$. Then I wrote the general expression for all angles whose tangent is same as $\tan{(\pi/2-\pi\tan{\theta})}$ and equated it to $\pi\cot{\theta}$ and then solved the resulting equation for $\tan{\theta}$. I was able to arrive at the above expression (including the crucial step of excluding those values of $n$ which made the answer imaginary). But my worry is that there is still a lot to be done!
We need to consider the following 4 steps of excluding those values of integral $n$ for which:
(i) $\tan{\theta}=0$ (as this leaves the RHS of the equation undefined)
(ii) $\tan{\theta}$ is undefined (as this leaves the argument in the RHS as undefined)
(iii) $\tan{\theta}$ is an integer (as this leaves the RHS of the equation undefined)
(iv) $\cot{\theta}$ or reciprocal of $\tan{\theta}$ is of the form $k+\frac{1}{2}$, where $k$ is an integer (as this leaves the LHS of the equation undefined)
Now case (i) and (ii) need not be considered, as they are never satisfied for any of the values of $n$ provided in the answer. But cases (iii) and (iv) need some attention. For example, if I put $n=2$, then the answer says $\tan{\theta}=2$ or $\tan{\theta}=\frac{1}{2}$. The former answer leaves the RHS (as well as the LHS in this case) undefined.
My question is What are other similar erroneous values of 'n' which do not conform with the 4 cases considered and as a result, invalidate the given solution? Or is there any other method by which I can arrive at a better answer?