Nguyên hàm của hàm số y = tan3x là
A. $\displaystyle {{\tan }^{2}}x+C.$
B. $\displaystyle \frac{{{{{\tan }}^{4}}x}}{4}+C.$
C. $\displaystyle \frac{{{{{\tan }}^{2}}x}}{2}+\ln \left| {\cos x} \right|+C.$
D. $\displaystyle \frac{{{{{\tan }}^{2}}x}}{2}-\ln \left| {\cos x} \right|+C.$