y=sin^2x+4cosx
=1-cos^2x+4cosx
设t=cosx ==>t属于[-1,1]
y=-t^2+4t+1
对称轴t=2不属于[-1,1]
所以当t=-1时,ymin=-1-4+1=-4