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