How do you solve #2sin^2a=2+cosa# and find all solutions in the interval #[0,2pi)#?