/ 2 \
1 x*\-1 - tan (x) + cos(x)/
--------------- + -------------------------
tan(x) - sin(x) 2
(tan(x) - sin(x))
$$\frac{x \left(\cos{\left(x \right)} - \tan^{2}{\left(x \right)} - 1\right)}{\left(- \sin{\left(x \right)} + \tan{\left(x \right)}\right)^{2}} + \frac{1}{- \sin{\left(x \right)} + \tan{\left(x \right)}}$$
/ / 2 \\
| | / 2 \ ||
| 2 |2*\1 + tan (x) - cos(x)/ / 2 \ ||
-|2 - 2*cos(x) + 2*tan (x) + x*|------------------------- + 2*\1 + tan (x)/*tan(x) + sin(x)||
\ \ -tan(x) + sin(x) //
----------------------------------------------------------------------------------------------
2
(-tan(x) + sin(x))
$$- \frac{x \left(2 \left(\tan^{2}{\left(x \right)} + 1\right) \tan{\left(x \right)} + \sin{\left(x \right)} + \frac{2 \left(- \cos{\left(x \right)} + \tan^{2}{\left(x \right)} + 1\right)^{2}}{\sin{\left(x \right)} - \tan{\left(x \right)}}\right) - 2 \cos{\left(x \right)} + 2 \tan^{2}{\left(x \right)} + 2}{\left(\sin{\left(x \right)} - \tan{\left(x \right)}\right)^{2}}$$
/ / 3 \ 2 \
| | 2 / 2 \ / / 2 \ \ / 2 \ | / 2 \ |
| | / 2 \ 2 / 2 \ 6*\1 + tan (x) - cos(x)/ 6*\2*\1 + tan (x)/*tan(x) + sin(x)/*\1 + tan (x) - cos(x)/ | 6*\1 + tan (x) - cos(x)/ / 2 \ |
-|3*sin(x) + x*|2*\1 + tan (x)/ + 4*tan (x)*\1 + tan (x)/ + ------------------------- + ---------------------------------------------------------- + cos(x)| + ------------------------- + 6*\1 + tan (x)/*tan(x)|
| | 2 -tan(x) + sin(x) | -tan(x) + sin(x) |
\ \ (-tan(x) + sin(x)) / /
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2
(-tan(x) + sin(x))
$$- \frac{x \left(\frac{6 \left(2 \left(\tan^{2}{\left(x \right)} + 1\right) \tan{\left(x \right)} + \sin{\left(x \right)}\right) \left(- \cos{\left(x \right)} + \tan^{2}{\left(x \right)} + 1\right)}{\sin{\left(x \right)} - \tan{\left(x \right)}} + 2 \left(\tan^{2}{\left(x \right)} + 1\right)^{2} + 4 \left(\tan^{2}{\left(x \right)} + 1\right) \tan^{2}{\left(x \right)} + \cos{\left(x \right)} + \frac{6 \left(- \cos{\left(x \right)} + \tan^{2}{\left(x \right)} + 1\right)^{3}}{\left(\sin{\left(x \right)} - \tan{\left(x \right)}\right)^{2}}\right) + 6 \left(\tan^{2}{\left(x \right)} + 1\right) \tan{\left(x \right)} + 3 \sin{\left(x \right)} + \frac{6 \left(- \cos{\left(x \right)} + \tan^{2}{\left(x \right)} + 1\right)^{2}}{\sin{\left(x \right)} - \tan{\left(x \right)}}}{\left(\sin{\left(x \right)} - \tan{\left(x \right)}\right)^{2}}$$