The teacher will be very surprised to see your correct solution 😉
cos(x)*sin(x) = 0
sin(x)*cos(x) = 0