/ 2 2 \
x |/ 3*x*sin(3*x)\ 6*sin(3*x) 9*x*sin (3*x)|
cos (3*x)*||-log(cos(3*x)) + ------------| - 9*x - ---------- - -------------|
|\ cos(3*x) / cos(3*x) 2 |
\ cos (3*x) /
$$\left(- \frac{9 x \sin^{2}{\left(3 x \right)}}{\cos^{2}{\left(3 x \right)}} - 9 x + \left(\frac{3 x \sin{\left(3 x \right)}}{\cos{\left(3 x \right)}} - \log{\left(\cos{\left(3 x \right)} \right)}\right)^{2} - \frac{6 \sin{\left(3 x \right)}}{\cos{\left(3 x \right)}}\right) \cos^{x}{\left(3 x \right)}$$
/ 3 2 / 2 \ 3 \
x | / 3*x*sin(3*x)\ 27*sin (3*x) / 3*x*sin(3*x)\ | 2*sin(3*x) 3*x*sin (3*x)| 54*x*sin(3*x) 54*x*sin (3*x)|
cos (3*x)*|-27 - |-log(cos(3*x)) + ------------| - ------------ + 9*|-log(cos(3*x)) + ------------|*|3*x + ---------- + -------------| - ------------- - --------------|
| \ cos(3*x) / 2 \ cos(3*x) / | cos(3*x) 2 | cos(3*x) 3 |
\ cos (3*x) \ cos (3*x) / cos (3*x) /
$$\left(- \frac{54 x \sin^{3}{\left(3 x \right)}}{\cos^{3}{\left(3 x \right)}} - \frac{54 x \sin{\left(3 x \right)}}{\cos{\left(3 x \right)}} - \left(\frac{3 x \sin{\left(3 x \right)}}{\cos{\left(3 x \right)}} - \log{\left(\cos{\left(3 x \right)} \right)}\right)^{3} + 9 \left(\frac{3 x \sin{\left(3 x \right)}}{\cos{\left(3 x \right)}} - \log{\left(\cos{\left(3 x \right)} \right)}\right) \left(\frac{3 x \sin^{2}{\left(3 x \right)}}{\cos^{2}{\left(3 x \right)}} + 3 x + \frac{2 \sin{\left(3 x \right)}}{\cos{\left(3 x \right)}}\right) - \frac{27 \sin^{2}{\left(3 x \right)}}{\cos^{2}{\left(3 x \right)}} - 27\right) \cos^{x}{\left(3 x \right)}$$