Initial program 14.5
\[\frac{1}{x + 1} - \frac{1}{x - 1}
\]
Applied egg-rr13.8
\[\leadsto \color{blue}{\frac{\frac{x + \left(-1 - \left(1 + x\right)\right)}{1 + x}}{x + -1}}
\]
Taylor expanded in x around 0 0.1
\[\leadsto \frac{\frac{\color{blue}{-2}}{1 + x}}{x + -1}
\]
Applied egg-rr0.1
\[\leadsto \color{blue}{\frac{-2}{1 + x} \cdot \frac{-1}{1 - x}}
\]
Simplified0.1
\[\leadsto \color{blue}{\frac{-2 \cdot \frac{-1}{1 - x}}{x + 1}}
\]
Proof
(/.f64 (*.f64 -2 (/.f64 -1 (-.f64 1 x))) (+.f64 x 1)): 0 points increase in error, 0 points decrease in error
(/.f64 (*.f64 -2 (/.f64 -1 (-.f64 1 x))) (Rewrite<= +-commutative_binary64 (+.f64 1 x))): 0 points increase in error, 0 points decrease in error
(Rewrite<= associate-*l/_binary64 (*.f64 (/.f64 -2 (+.f64 1 x)) (/.f64 -1 (-.f64 1 x)))): 9 points increase in error, 1 points decrease in error
Final simplification0.1
\[\leadsto \frac{-2 \cdot \frac{-1}{1 - x}}{1 + x}
\]