I have got a question on the relation between [LaTeX ERROR: Compile failed] and [LaTeX ERROR: Compile failed]

The question consists of two parts:

The first pary asks me to solve the equation [LaTeX ERROR: Compile failed]

Then I 've got the correct ans, which is

[-1 + (1+a^2)^1/2]

_________________

a

or

[-1 - (1+a^2)^1/2]

_________________

a

Then the second part ask me to express [LaTeX ERROR: Compile failed] in terms of [LaTeX ERROR: Compile failed] and the ans is

[-1 + (1+ (tan 2 theta) ^2 )^1/2]

___________________________________

a

or

[-1 - (1+ (tan 2 theta) ^2 )^1/2]

___________________________________

a