Evaluate the following limits:
limx→π1+cosxtan2x
=limx→π[(1+cosx)sin2x×cos2x]
=limx→π[1+cosx1−cos2x×cos2x]
=limx→π[1+cosx(1−cosx)(1+cosx)×cos2x]
=limx→π[cos2 x(1−cos x)]
=limx→π[cos2 π1−cos π]
=(−1)21−(−1)=12