When solving for the value of x in the equation
$$\sin^{-1}{(\sqrt{2x})}=\cos^{-1}(\sqrt{x})$$
one would take the sin of both sides of the equation cancelling out the arcsin leaving
$$\sqrt{2x}=\sin(\cos^{-1}(\sqrt{x}))$$
After researching online for relevant trigonometric identities I found that
$$\sin(\cos^{-1}(\sqrt{x}))=\sqrt{1-x}$$
How do the trigonometric functions cancel out?
Would it be the same for $\cos(\sin^{-1}(\sqrt{x}))$?

study $\cos(\arcsin(\sqrt{x}))$:
suppose $\sin(\theta)=\sqrt{x}$, then $\theta=\arcsin(\sqrt{x})$, so $$\cos(\arcsin(\sqrt{x}))=\cos(\theta)=\sqrt{1-\sin(\theta)^2}=\sqrt{1-x}$$ here we consider the case in the first quadrant. the $\sin(\arccos(\sqrt{x}))$ is obtained the same way.