When I evaluate my Mathematica code I get out a term of the following form: $\sqrt{1+\frac{y^2}{x^2}}$. However, I also have $\sqrt{x^2+y^2}$ terms that I would like it to cancel with.
For example, I would like the following to simplify:
u[x_, y_, z_, t_] := (-2 Sqrt[x^2 + y^2] - ((1 - E^(-x^2 + y^2)) y)/x)/Sqrt[1 + y^2/x^2]
I have tried using FullSimplify
, but that has got me nowhere. I also tried using Replace
but can't get it to work.
Can anybody help me out? Or has anybody had a similar problem?
FullSimplify[(-2 Sqrt[x^2+y^2]-((1-E^(-x^2+y^2)) y)/x)/Sqrt[1+y^2/x^2],Assumptions->_\[Element]Reals]
? $\endgroup$