sage: y = (sin(x)+2) * sqrt( sin(x) / (sin(x)^2 + 4*sin(x) + 4) )

Why doesn't that turn into sqrt(sin(x))? What do I miss?