I have a quick question regarding a little issue.
So I'm given a problem that says "$\tan \left(\frac{9\pi}{8}\right)$" and I'm supposed to find the exact value using half angle identities. I know what these identities are $\sin, \cos, \tan$. So, I use the tangent half-angle identity and plug-in $\theta = \frac{9\pi}{8}$ into $\frac{\theta}{2}$. I got $\frac{9\pi}{4}$ and plugged in values into the formula based on this answer. However, I checked my work with slader.com and it said I was wrong. It said I should take the value I found, $\frac{9\pi}{4}$, and plug it back into $\frac{\theta}{2}$. Wouldn't that be re-plugging in the value for no reason? Very confused.
Let $\tan \frac {9\pi}{8}= \tan \frac {\theta }{2}=a$
By half angle formulas $$\tan \theta=\frac {2\tan \frac {\theta }{2}}{1-\tan ^2\frac {\theta }{2}}$$ Hence we get $$1=\frac {2a}{1-a^2}$$ Hence we get $a^2+2a-1=0$
Solve the quadratic to get the answer.
Note : By using quadratic formula we get $\tan \frac {9\pi}{8}= \sqrt 2 -1$
The other solution i.e. $-\sqrt 2-1$ gets rejected because $\frac {9\pi}{8}$ lies in third quadrant where $\tan $ must be positive.