Initial program 20.5
\[\frac{x \cdot x - \left(y \cdot 4\right) \cdot y}{x \cdot x + \left(y \cdot 4\right) \cdot y}\]
- Using strategy
rm Applied add-sqr-sqrt20.5
\[\leadsto \frac{x \cdot x - \left(y \cdot 4\right) \cdot y}{\color{blue}{\sqrt{x \cdot x + \left(y \cdot 4\right) \cdot y} \cdot \sqrt{x \cdot x + \left(y \cdot 4\right) \cdot y}}}\]
Simplified20.5
\[\leadsto \frac{x \cdot x - \left(y \cdot 4\right) \cdot y}{\color{blue}{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)} \cdot \sqrt{x \cdot x + \left(y \cdot 4\right) \cdot y}}\]
Simplified20.5
\[\leadsto \frac{x \cdot x - \left(y \cdot 4\right) \cdot y}{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right) \cdot \color{blue}{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}}\]
- Using strategy
rm Applied add-cube-cbrt21.4
\[\leadsto \frac{x \cdot x - \left(y \cdot 4\right) \cdot y}{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right) \cdot \color{blue}{\left(\left(\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right) \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right)}}\]
Applied add-cube-cbrt21.8
\[\leadsto \frac{x \cdot x - \left(y \cdot 4\right) \cdot y}{\color{blue}{\left(\left(\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right) \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right)} \cdot \left(\left(\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right) \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right)}\]
Applied swap-sqr21.8
\[\leadsto \frac{x \cdot x - \left(y \cdot 4\right) \cdot y}{\color{blue}{\left(\left(\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right) \cdot \left(\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right)\right) \cdot \left(\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right)}}\]
Applied add-sqr-sqrt21.8
\[\leadsto \frac{x \cdot x - \color{blue}{\sqrt{\left(y \cdot 4\right) \cdot y} \cdot \sqrt{\left(y \cdot 4\right) \cdot y}}}{\left(\left(\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right) \cdot \left(\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right)\right) \cdot \left(\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right)}\]
Applied difference-of-squares21.8
\[\leadsto \frac{\color{blue}{\left(x + \sqrt{\left(y \cdot 4\right) \cdot y}\right) \cdot \left(x - \sqrt{\left(y \cdot 4\right) \cdot y}\right)}}{\left(\left(\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right) \cdot \left(\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right)\right) \cdot \left(\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right)}\]
Applied times-frac11.8
\[\leadsto \color{blue}{\frac{x + \sqrt{\left(y \cdot 4\right) \cdot y}}{\left(\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right) \cdot \left(\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right)} \cdot \frac{x - \sqrt{\left(y \cdot 4\right) \cdot y}}{\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}}}\]
Simplified4.5
\[\leadsto \color{blue}{\frac{\frac{\sqrt{\left(y \cdot 4\right) \cdot y} + x}{{\left(\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right)}^{3}}}{\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}}} \cdot \frac{x - \sqrt{\left(y \cdot 4\right) \cdot y}}{\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}}\]
- Using strategy
rm Applied add-cube-cbrt4.5
\[\leadsto \frac{\frac{\sqrt{\left(y \cdot 4\right) \cdot y} + x}{{\left(\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right)}^{3}}}{\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\color{blue}{\left(\left(\sqrt[3]{y \cdot 4} \cdot \sqrt[3]{y \cdot 4}\right) \cdot \sqrt[3]{y \cdot 4}\right)} \cdot y}\right)}} \cdot \frac{x - \sqrt{\left(y \cdot 4\right) \cdot y}}{\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}}\]
Applied associate-*l*4.5
\[\leadsto \frac{\frac{\sqrt{\left(y \cdot 4\right) \cdot y} + x}{{\left(\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right)}^{3}}}{\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\color{blue}{\left(\sqrt[3]{y \cdot 4} \cdot \sqrt[3]{y \cdot 4}\right) \cdot \left(\sqrt[3]{y \cdot 4} \cdot y\right)}}\right)}} \cdot \frac{x - \sqrt{\left(y \cdot 4\right) \cdot y}}{\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}}\]
Applied sqrt-prod4.6
\[\leadsto \frac{\frac{\sqrt{\left(y \cdot 4\right) \cdot y} + x}{{\left(\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right)}^{3}}}{\sqrt[3]{\mathsf{hypot}\left(x, \color{blue}{\sqrt{\sqrt[3]{y \cdot 4} \cdot \sqrt[3]{y \cdot 4}} \cdot \sqrt{\sqrt[3]{y \cdot 4} \cdot y}}\right)}} \cdot \frac{x - \sqrt{\left(y \cdot 4\right) \cdot y}}{\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}}\]
Simplified4.6
\[\leadsto \frac{\frac{\sqrt{\left(y \cdot 4\right) \cdot y} + x}{{\left(\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}\right)}^{3}}}{\sqrt[3]{\mathsf{hypot}\left(x, \color{blue}{\left|\sqrt[3]{y \cdot 4}\right|} \cdot \sqrt{\sqrt[3]{y \cdot 4} \cdot y}\right)}} \cdot \frac{x - \sqrt{\left(y \cdot 4\right) \cdot y}}{\sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(x, \sqrt{\left(y \cdot 4\right) \cdot y}\right)}}\]