Are there any errors in my work? Thanks in advance! (Sorry for the bad format. I'm still new to this)
$\tan2x=1$
$\frac{2\tan x}{1-\tan^2x}=1$
$2\tan x=1-\tan^2x$
$0=1-\tan^2x-2\tan x$
$0 =-\tan^2x-2\tan x +1$
$0=\tan^2x+2\tan x-1$
$\frac{-(2)\sqrt{2^2-4(1)(-1)}}{2(1)}$
$x=0.4142, x=2.4142$
$\tan^{-1}(0.4142)$
$x=22.5, x=202.5$
Your solution is not very rigorous after $0 = tan^2x + 2tanx - 1$. After that line, the equation should be $tanx = \frac{-2 \pm \sqrt{2^2 - 4(1)(-1)}}{2(1)}$.
Also, after that, it's $tanx = \sqrt{2} - 1 \approx 0.4142$ or $tanx = \sqrt{2} + 1 \approx 2.4142$.
Then, $x = tan^{-1}(0.4142) \approx 22.5, 202.5$