ĐKXĐ: \(\left\{{}\begin{matrix}x\ge0\\cos\pi x\ne-1\left(1\right)\end{matrix}\right.\)
\(\left(1\right)\Leftrightarrow\pi x\ne\pi+k2\pi\)
\(\Leftrightarrow x\ne2k+1\)
Vậy \(\left\{{}\begin{matrix}x\ge0\\x\ne2k+1\left(k\in Z\right)\end{matrix}\right.\)