a: Đặt f(x)=cosx+cos2x
TXĐ: D=R
Khi x∈D thì -x∈D
\(f\left(-x\right)=cos\left(-x\right)+cos\left\lbrack2\cdot\left(-x\right)\right\rbrack=cosx+cos2x=f\left(x\right)\)
=>f(x) là hàm số chẵn
b: TXĐ: D=R\{\(\frac{\pi}{2}+k\pi;k\pi\) }
Khi x∈D thì -x∈D
\(f\left(-x\right)=\tan\left(-x\right)+\cot\left(-x\right)=-\tan x-\cot x=-\left(\tan x+\cot x\right)\)
=-f(x)
=>f(x) là hàm số lẻ