I have the following literal equation that needs to be solved for h:
$$S= \pi r \sqrt{r^2+h^2} $$
I isolated the square root and got this:
$$\frac{S}{ \pi r} = \sqrt{r^2+h^2}$$
Then I squared both sides to eliminate the square root on the right:
$$\frac{S^2}{ \pi^2 r^2} =r^2+h^2$$
Then I isolated the h term:
$$\frac{S^2}{ \pi^2 r^2} - r^2 =h^2$$
Now I am not quite sure what to do. I assume that it is more complex than just square rooting everything to get:
$$\frac{S}{ \pi r} -r=h$$
An algebraic calculator says the solution is:
$$h= \frac{ \sqrt{- \pi^2r^4+S^2} }{ \pi r} and \; h= -\frac{ \sqrt{- \pi^2r^4+S^2} }{ \pi r}$$
But I don't understand how it computed that solution. Could anyone give me a step-by-step explanation of your solution?