The correct option is B (D)→(P),(S)
(C)
f(x)={0,if x is rational1,if x is irrationalf(−x)={0,if −x is rational1,if −x is irrational⇒f(−x)={0,if x is rational1,if x is irrational=f(x)
Hence, f(x) is an odd function.
(D)
f(x)=max{tanx,cotx}
f(−x)=max{tan(−x),cot(−x)}
=max{−tanx,−cotx}
=−max{tanx,cotx}
=−f(x)
Hence, f(x) is an odd function.
Also, f(x+π)=max{tan(x+π),cot(x+π)}
=max{tanx,cotx}
Hence, f(x) is periodic with fundamental period π.