Solve the equation #3sin^2x+cos^2x-1=0# for #x in [0, 2pi]# ?