Initial program 9.6
\[\left(\frac{1}{x + 1} - \frac{2}{x}\right) + \frac{1}{x - 1}
\]
Simplified9.6
\[\leadsto \color{blue}{\frac{1}{1 + x} + \left(\frac{1}{x + -1} + \frac{-2}{x}\right)}
\]
Proof
(+.f64 (/.f64 1 (+.f64 1 x)) (+.f64 (/.f64 1 (+.f64 x -1)) (/.f64 -2 x))): 0 points increase in error, 0 points decrease in error
(+.f64 (/.f64 1 (Rewrite<= +-commutative_binary64 (+.f64 x 1))) (+.f64 (/.f64 1 (+.f64 x -1)) (/.f64 -2 x))): 0 points increase in error, 0 points decrease in error
(+.f64 (/.f64 1 (+.f64 x 1)) (+.f64 (/.f64 1 (+.f64 x (Rewrite<= metadata-eval (neg.f64 1)))) (/.f64 -2 x))): 0 points increase in error, 0 points decrease in error
(+.f64 (/.f64 1 (+.f64 x 1)) (+.f64 (/.f64 1 (Rewrite<= sub-neg_binary64 (-.f64 x 1))) (/.f64 -2 x))): 0 points increase in error, 0 points decrease in error
(+.f64 (/.f64 1 (+.f64 x 1)) (+.f64 (/.f64 1 (-.f64 x 1)) (/.f64 (Rewrite<= metadata-eval (neg.f64 2)) x))): 0 points increase in error, 0 points decrease in error
(+.f64 (/.f64 1 (+.f64 x 1)) (+.f64 (/.f64 1 (-.f64 x 1)) (Rewrite<= distribute-neg-frac_binary64 (neg.f64 (/.f64 2 x))))): 0 points increase in error, 0 points decrease in error
(+.f64 (/.f64 1 (+.f64 x 1)) (Rewrite<= +-commutative_binary64 (+.f64 (neg.f64 (/.f64 2 x)) (/.f64 1 (-.f64 x 1))))): 0 points increase in error, 0 points decrease in error
(Rewrite<= associate-+l+_binary64 (+.f64 (+.f64 (/.f64 1 (+.f64 x 1)) (neg.f64 (/.f64 2 x))) (/.f64 1 (-.f64 x 1)))): 0 points increase in error, 0 points decrease in error
(+.f64 (Rewrite<= sub-neg_binary64 (-.f64 (/.f64 1 (+.f64 x 1)) (/.f64 2 x))) (/.f64 1 (-.f64 x 1))): 0 points increase in error, 0 points decrease in error
Applied egg-rr26.0
\[\leadsto \color{blue}{\frac{1}{1 - x \cdot x} \cdot \left(1 - x\right)} + \left(\frac{1}{x + -1} + \frac{-2}{x}\right)
\]
Applied egg-rr30.1
\[\leadsto \color{blue}{\frac{1 - x \cdot x}{\left(1 - x \cdot x\right) \cdot \left(1 + x\right)}} + \left(\frac{1}{x + -1} + \frac{-2}{x}\right)
\]
Applied egg-rr25.1
\[\leadsto \color{blue}{\frac{\left(x \cdot x - x\right) + \left(1 + x\right) \cdot \left(x + \left(x + -1\right) \cdot -2\right)}{\left(1 + x\right) \cdot \left(x \cdot x - x\right)}}
\]
Taylor expanded in x around 0 0.3
\[\leadsto \frac{\color{blue}{2}}{\left(1 + x\right) \cdot \left(x \cdot x - x\right)}
\]
Final simplification0.3
\[\leadsto \frac{2}{\left(1 + x\right) \cdot \left(x \cdot x - x\right)}
\]