Rationalizing $\frac{\sqrt{1+\cos x}+\sqrt{1-\cos x}}{\sqrt{1+\cos x}-\sqrt{1-\cos x}}$ in two ways gives different answers

algebra-precalculusrationalising-denominatortrigonometry

I have a doubt see when we rationalize denominator of expression $$\frac{\sqrt{1+\cos x}+\sqrt{1-\cos x}}{\sqrt{1+\cos x}- \sqrt{1-\cos x}}$$
we get answer $$\frac{1+\sin x}{\cos x}$$ but when we rationalize numerator we get
$$\frac{\cos x}{1+\sin x}$$
How is this possible, because rationalizing means just multiplying by $1$?

Best Answer

You might have an error, check that at the end you should have that rationalazing the denominator you should have that $$\cfrac{1+\sin{x}}{\cos{x}},$$ and the numerator you should have that $$\cfrac{\cos{x}}{1-\sin{x}},$$ wich it´s always the same by $(\cos{x})^2+(\sin{x})^2=1$