Supplementary angles have opposite tangents
tan(π - a) = - tan a
Adding π/2 turns a cosine into a negated sine.
cos(π/2 + a) = - sin a
These are easily shown by the various sum angle formulas; I won't bother here.
![\tan(\pi - a) \cos(\pi/2 + a) = (- \tan a)(- \sin a) = ( \sin a )/( \cos a ) \ \sin a = ( \sin^2 a)/(\cos a)](https://img.qammunity.org/2020/formulas/mathematics/middle-school/8yawapq3evdssxs08inccpglokeyj4e6kb.png)
The numerator is never negative so if the whole thing is positive so is the denominator:
![\cos a > 0](https://img.qammunity.org/2020/formulas/mathematics/middle-school/ppyegqciz63r32z9gre1srlxcs6a7yti2w.png)
That's the opposite conclusion to the question but I think it's right. Let's check a=π/4.
tan(π - π/4) = tan(3π/4) = -1
cos(π/2 + π/4) = cos(3π/4) = -1/√2
The product is positive.
So is cos(π/4).
I'm right.