Let $$z=\frac{3+2i\cos\theta}{1-3i\cos\theta},$$ such that $z$ is purely imaginary and $\theta \in\left(0, \frac{\pi}2\right) $, then find $$\sin^2(3\theta)+\cos^2{\theta}.$$
Let $z=ni$, where $n$ is any real number so
$ni=\frac{3+2i\cos\theta}{1-3i\cos\theta}$
then $ni+3n\cos\theta=3+2i\cos\theta$
on comparing both sides we get $n\cos\theta=1 \text{and } n= 2\cos\theta$
we get $\theta =\frac{π}{4}$ and thus the answer is $1.$
However, I was wondering if there’s an alternate way of solving this problem.