- Split input into 2 regimes
if x < -18663.38388120902 or 13107.936148745304 < x
Initial program 59.3
\[\frac{x}{x + 1} - \frac{x + 1}{x - 1}\]
- Using strategy
rm Applied flip3--59.3
\[\leadsto \color{blue}{\frac{{\left(\frac{x}{x + 1}\right)}^{3} - {\left(\frac{x + 1}{x - 1}\right)}^{3}}{\frac{x}{x + 1} \cdot \frac{x}{x + 1} + \left(\frac{x + 1}{x - 1} \cdot \frac{x + 1}{x - 1} + \frac{x}{x + 1} \cdot \frac{x + 1}{x - 1}\right)}}\]
Taylor expanded around -inf 0.3
\[\leadsto \color{blue}{-\left(3 \cdot \frac{1}{{x}^{3}} + \left(\frac{1}{{x}^{2}} + 3 \cdot \frac{1}{x}\right)\right)}\]
Simplified0.0
\[\leadsto \color{blue}{\frac{-3}{x} - \frac{1 + \frac{3}{x}}{x \cdot x}}\]
if -18663.38388120902 < x < 13107.936148745304
Initial program 0.1
\[\frac{x}{x + 1} - \frac{x + 1}{x - 1}\]
- Using strategy
rm Applied flip3--0.1
\[\leadsto \color{blue}{\frac{{\left(\frac{x}{x + 1}\right)}^{3} - {\left(\frac{x + 1}{x - 1}\right)}^{3}}{\frac{x}{x + 1} \cdot \frac{x}{x + 1} + \left(\frac{x + 1}{x - 1} \cdot \frac{x + 1}{x - 1} + \frac{x}{x + 1} \cdot \frac{x + 1}{x - 1}\right)}}\]
- Using strategy
rm Applied add-cbrt-cube0.1
\[\leadsto \frac{{\left(\frac{x}{x + 1}\right)}^{3} - {\left(\frac{x + 1}{\color{blue}{\sqrt[3]{\left(\left(x - 1\right) \cdot \left(x - 1\right)\right) \cdot \left(x - 1\right)}}}\right)}^{3}}{\frac{x}{x + 1} \cdot \frac{x}{x + 1} + \left(\frac{x + 1}{x - 1} \cdot \frac{x + 1}{x - 1} + \frac{x}{x + 1} \cdot \frac{x + 1}{x - 1}\right)}\]
Applied add-cbrt-cube0.2
\[\leadsto \frac{{\left(\frac{x}{x + 1}\right)}^{3} - {\left(\frac{\color{blue}{\sqrt[3]{\left(\left(x + 1\right) \cdot \left(x + 1\right)\right) \cdot \left(x + 1\right)}}}{\sqrt[3]{\left(\left(x - 1\right) \cdot \left(x - 1\right)\right) \cdot \left(x - 1\right)}}\right)}^{3}}{\frac{x}{x + 1} \cdot \frac{x}{x + 1} + \left(\frac{x + 1}{x - 1} \cdot \frac{x + 1}{x - 1} + \frac{x}{x + 1} \cdot \frac{x + 1}{x - 1}\right)}\]
Applied cbrt-undiv0.1
\[\leadsto \frac{{\left(\frac{x}{x + 1}\right)}^{3} - {\color{blue}{\left(\sqrt[3]{\frac{\left(\left(x + 1\right) \cdot \left(x + 1\right)\right) \cdot \left(x + 1\right)}{\left(\left(x - 1\right) \cdot \left(x - 1\right)\right) \cdot \left(x - 1\right)}}\right)}}^{3}}{\frac{x}{x + 1} \cdot \frac{x}{x + 1} + \left(\frac{x + 1}{x - 1} \cdot \frac{x + 1}{x - 1} + \frac{x}{x + 1} \cdot \frac{x + 1}{x - 1}\right)}\]
Applied rem-cube-cbrt0.1
\[\leadsto \frac{{\left(\frac{x}{x + 1}\right)}^{3} - \color{blue}{\frac{\left(\left(x + 1\right) \cdot \left(x + 1\right)\right) \cdot \left(x + 1\right)}{\left(\left(x - 1\right) \cdot \left(x - 1\right)\right) \cdot \left(x - 1\right)}}}{\frac{x}{x + 1} \cdot \frac{x}{x + 1} + \left(\frac{x + 1}{x - 1} \cdot \frac{x + 1}{x - 1} + \frac{x}{x + 1} \cdot \frac{x + 1}{x - 1}\right)}\]
Simplified0.1
\[\leadsto \frac{{\left(\frac{x}{x + 1}\right)}^{3} - \frac{\color{blue}{{\left(1 + x\right)}^{3}}}{\left(\left(x - 1\right) \cdot \left(x - 1\right)\right) \cdot \left(x - 1\right)}}{\frac{x}{x + 1} \cdot \frac{x}{x + 1} + \left(\frac{x + 1}{x - 1} \cdot \frac{x + 1}{x - 1} + \frac{x}{x + 1} \cdot \frac{x + 1}{x - 1}\right)}\]
- Using strategy
rm Applied flip--0.1
\[\leadsto \frac{{\left(\frac{x}{x + 1}\right)}^{3} - \frac{{\left(1 + x\right)}^{3}}{\left(\left(x - 1\right) \cdot \left(x - 1\right)\right) \cdot \color{blue}{\frac{x \cdot x - 1 \cdot 1}{x + 1}}}}{\frac{x}{x + 1} \cdot \frac{x}{x + 1} + \left(\frac{x + 1}{x - 1} \cdot \frac{x + 1}{x - 1} + \frac{x}{x + 1} \cdot \frac{x + 1}{x - 1}\right)}\]
Applied associate-*r/0.1
\[\leadsto \frac{{\left(\frac{x}{x + 1}\right)}^{3} - \frac{{\left(1 + x\right)}^{3}}{\color{blue}{\frac{\left(\left(x - 1\right) \cdot \left(x - 1\right)\right) \cdot \left(x \cdot x - 1 \cdot 1\right)}{x + 1}}}}{\frac{x}{x + 1} \cdot \frac{x}{x + 1} + \left(\frac{x + 1}{x - 1} \cdot \frac{x + 1}{x - 1} + \frac{x}{x + 1} \cdot \frac{x + 1}{x - 1}\right)}\]
Applied associate-/r/0.1
\[\leadsto \frac{{\left(\frac{x}{x + 1}\right)}^{3} - \color{blue}{\frac{{\left(1 + x\right)}^{3}}{\left(\left(x - 1\right) \cdot \left(x - 1\right)\right) \cdot \left(x \cdot x - 1 \cdot 1\right)} \cdot \left(x + 1\right)}}{\frac{x}{x + 1} \cdot \frac{x}{x + 1} + \left(\frac{x + 1}{x - 1} \cdot \frac{x + 1}{x - 1} + \frac{x}{x + 1} \cdot \frac{x + 1}{x - 1}\right)}\]
- Recombined 2 regimes into one program.
Final simplification0.1
\[\leadsto \begin{array}{l}
\mathbf{if}\;x \le -18663.38388120902 \lor \neg \left(x \le 13107.936148745304\right):\\
\;\;\;\;\frac{-3}{x} - \frac{\frac{3}{x} + 1}{x \cdot x}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\frac{x}{x + 1}\right)}^{3} - \frac{{\left(x + 1\right)}^{3}}{\left(x \cdot x - 1\right) \cdot \left(\left(x - 1\right) \cdot \left(x - 1\right)\right)} \cdot \left(x + 1\right)}{\left(\frac{x + 1}{x - 1} \cdot \frac{x + 1}{x - 1} + \frac{x + 1}{x - 1} \cdot \frac{x}{x + 1}\right) + \frac{x}{x + 1} \cdot \frac{x}{x + 1}}\\
\end{array}\]