$$- \tanh^{2}{\left (x \right )} + 1$$
/ 2 \
2*\-1 + tanh (x)/*tanh(x)
$$2 \left(\tanh^{2}{\left (x \right )} - 1\right) \tanh{\left (x \right )}$$
/ 2 \ / 2 \
-2*\-1 + tanh (x)/*\-1 + 3*tanh (x)/
$$- 2 \left(\tanh^{2}{\left (x \right )} - 1\right) \left(3 \tanh^{2}{\left (x \right )} - 1\right)$$