-sin(x) + cos(x) (-cos(x) - sin(x))*atan(sin(x) + cos(x))
------------------------------------------ + ----------------------------------------
/ 2\ 2
\1 + (sin(x) + cos(x)) /*(sin(x) - cos(x)) (sin(x) - cos(x))
$$\frac{\left(- \sin{\left(x \right)} - \cos{\left(x \right)}\right) \operatorname{atan}{\left(\sin{\left(x \right)} + \cos{\left(x \right)} \right)}}{\left(\sin{\left(x \right)} - \cos{\left(x \right)}\right)^{2}} + \frac{- \sin{\left(x \right)} + \cos{\left(x \right)}}{\left(\left(\sin{\left(x \right)} + \cos{\left(x \right)}\right)^{2} + 1\right) \left(\sin{\left(x \right)} - \cos{\left(x \right)}\right)}$$
/ 2 \
| 2*(-cos(x) + sin(x)) |
|1 + ----------------------|*(cos(x) + sin(x))
/ 2\ | 2|
| 2*(cos(x) + sin(x)) | 2*(cos(x) + sin(x)) \ 1 + (cos(x) + sin(x)) /
|1 + --------------------|*atan(cos(x) + sin(x)) + ---------------------- - ----------------------------------------------
| 2 | 2 2
\ (-cos(x) + sin(x)) / 1 + (cos(x) + sin(x)) 1 + (cos(x) + sin(x))
--------------------------------------------------------------------------------------------------------------------------
-cos(x) + sin(x)
$$\frac{- \frac{\left(1 + \frac{2 \left(\sin{\left(x \right)} - \cos{\left(x \right)}\right)^{2}}{\left(\sin{\left(x \right)} + \cos{\left(x \right)}\right)^{2} + 1}\right) \left(\sin{\left(x \right)} + \cos{\left(x \right)}\right)}{\left(\sin{\left(x \right)} + \cos{\left(x \right)}\right)^{2} + 1} + \left(1 + \frac{2 \left(\sin{\left(x \right)} + \cos{\left(x \right)}\right)^{2}}{\left(\sin{\left(x \right)} - \cos{\left(x \right)}\right)^{2}}\right) \operatorname{atan}{\left(\sin{\left(x \right)} + \cos{\left(x \right)} \right)} + \frac{2 \left(\sin{\left(x \right)} + \cos{\left(x \right)}\right)}{\left(\sin{\left(x \right)} + \cos{\left(x \right)}\right)^{2} + 1}}{\sin{\left(x \right)} - \cos{\left(x \right)}}$$
2 2 2 2
6*(cos(x) + sin(x)) 2*(-cos(x) + sin(x)) 8*(-cos(x) + sin(x)) *(cos(x) + sin(x)) / 2\ / 2\ / 2 \
1 - ---------------------- + ---------------------- - ---------------------------------------- | 2*(cos(x) + sin(x)) | | 6*(cos(x) + sin(x)) | 2 | 2*(-cos(x) + sin(x)) |
2 2 2 3*|1 + --------------------| |5 + --------------------|*(cos(x) + sin(x))*atan(cos(x) + sin(x)) 3*(cos(x) + sin(x)) *|1 + ----------------------|
1 + (cos(x) + sin(x)) 1 + (cos(x) + sin(x)) / 2\ | 2 | | 2 | | 2|
\1 + (cos(x) + sin(x)) / \ (-cos(x) + sin(x)) / \ (-cos(x) + sin(x)) / \ 1 + (cos(x) + sin(x)) /
---------------------------------------------------------------------------------------------- - ---------------------------- - ------------------------------------------------------------------ + -------------------------------------------------
2 2 2 / 2\ 2
1 + (cos(x) + sin(x)) 1 + (cos(x) + sin(x)) (-cos(x) + sin(x)) \1 + (cos(x) + sin(x)) /*(-cos(x) + sin(x))
$$\frac{3 \left(1 + \frac{2 \left(\sin{\left(x \right)} - \cos{\left(x \right)}\right)^{2}}{\left(\sin{\left(x \right)} + \cos{\left(x \right)}\right)^{2} + 1}\right) \left(\sin{\left(x \right)} + \cos{\left(x \right)}\right)^{2}}{\left(\left(\sin{\left(x \right)} + \cos{\left(x \right)}\right)^{2} + 1\right) \left(\sin{\left(x \right)} - \cos{\left(x \right)}\right)^{2}} - \frac{3 \left(1 + \frac{2 \left(\sin{\left(x \right)} + \cos{\left(x \right)}\right)^{2}}{\left(\sin{\left(x \right)} - \cos{\left(x \right)}\right)^{2}}\right)}{\left(\sin{\left(x \right)} + \cos{\left(x \right)}\right)^{2} + 1} - \frac{\left(5 + \frac{6 \left(\sin{\left(x \right)} + \cos{\left(x \right)}\right)^{2}}{\left(\sin{\left(x \right)} - \cos{\left(x \right)}\right)^{2}}\right) \left(\sin{\left(x \right)} + \cos{\left(x \right)}\right) \operatorname{atan}{\left(\sin{\left(x \right)} + \cos{\left(x \right)} \right)}}{\left(\sin{\left(x \right)} - \cos{\left(x \right)}\right)^{2}} + \frac{1 + \frac{2 \left(\sin{\left(x \right)} - \cos{\left(x \right)}\right)^{2}}{\left(\sin{\left(x \right)} + \cos{\left(x \right)}\right)^{2} + 1} - \frac{6 \left(\sin{\left(x \right)} + \cos{\left(x \right)}\right)^{2}}{\left(\sin{\left(x \right)} + \cos{\left(x \right)}\right)^{2} + 1} - \frac{8 \left(\sin{\left(x \right)} - \cos{\left(x \right)}\right)^{2} \left(\sin{\left(x \right)} + \cos{\left(x \right)}\right)^{2}}{\left(\left(\sin{\left(x \right)} + \cos{\left(x \right)}\right)^{2} + 1\right)^{2}}}{\left(\sin{\left(x \right)} + \cos{\left(x \right)}\right)^{2} + 1}$$