solve for variable h

s equals 2 pie rh +2 pie r squared

Looks like the surface area of a cylinder.

S = 2 pi r*h + 2 pi r^2

h = {S - 2*pi*r^2)/(2*pi*r)
= S/(2*pi*r) - r