tan2A = (2tanA)/(1-tan^2A)
So, set A = 22.5, then tan45 = (2tan22.5)/(1-tan^222.5)
=> (1-tan^2(22.5))/2 = tan22.5 (Rearranging)
=>(1 - (sec^2(22.5) - 1)/2 = tan22.5 (Using trig identity for tan^2x)
=>(2 - sec^2(22.5))/2 = tan22.5 (*)
Now use cos2x = 2cos^2x - 1
=> sec^2x = 2/(cos2x + 1)
Substitute into (*), giving
(2 - 2/(cos45 + 1))/2 = (2 - 2/(sqrt(2)/2 + 1))/2
Go from there and the answer should come out.