Solve the second-degree homogeneous equation:
3sin2x−(1+3)sinxcosx+cos2x=0
Solution
Case cosx=0: substituting x=π/2 gives 3⋅1−0+0=3=0. Not a solution.
Divide by cos2x:3tan2x−(1+3)tanx+1=0.
With t=tanx we solve 3t2−(1+3)t+1=0. The discriminant is
Δ=(1+3)2−43=4−23=(3−1)2,
so
t=23(1+3)±(3−1)⇒t=1∨t=31.