1. \(D=R\)
2. \(sinx\ne0\Leftrightarrow x\ne k\pi\Rightarrow D=R\backslash\left\{k\pi|k\in R\right\}\)
3. \(cos2x\ne0\Leftrightarrow2x\ne\dfrac{\pi}{2}+k\pi\Leftrightarrow x\ne\dfrac{\pi}{4}+\dfrac{k\pi}{2}\Rightarrow D=R\backslash\left\{\dfrac{\pi}{4}+\dfrac{k\pi}{2}|k\in R\right\}\)
4. \(cos\left(x+\dfrac{\pi}{4}\right)\ne0\Leftrightarrow x+\dfrac{\pi}{4}\ne\dfrac{\pi}{2}+k\pi\Leftrightarrow x\ne\dfrac{\pi}{4}+k\pi\Rightarrow D=R\backslash\left\{\dfrac{\pi}{4}+k\pi|k\in R\right\}\)