3 sin^2x= 1 + cosx