I found an entry of a matrix from two different methods using mathematica. Which are given as;
g/(Sqrt[2] Sqrt[1 + g^2 - Sqrt[1 + g^2]])
and
1/Sqrt[2 + (2 - 2 Sqrt[1 + g^2])/g^2].
Logically these expression should be same, and they simplify to same result when i do it on paper. But when i plot these expressions for {g,-5,5}, it gives different plots on mathematica. What is happening?
Sqrt[g^2]is not equal tog, whengis negative. – bbgodfrey Jan 18 '15 at 16:44gforg > 0and to-gforg < 0. To go from your first expression to your second involves multiplying the first function bySqrt[g^2]/g, which is not equal to one for negative g. – bbgodfrey Jan 18 '15 at 17:18g>0but not forg<0, as per bbgodfrey's comment. – Stelios Jan 18 '15 at 17:21