In quadrant 4, cos is positive right but you given negative there plzz check it once.

Sunitha Boddu's image