Initial program 95.3%
\[x \cdot x - y \cdot y
\]
- Add Preprocessing
Step-by-step derivation
difference-of-squares100.0%
\[\leadsto \color{blue}{\left(x + y\right) \cdot \left(x - y\right)}
\]
add-sqr-sqrt49.5%
\[\leadsto \left(x + \color{blue}{\sqrt{y} \cdot \sqrt{y}}\right) \cdot \left(x - y\right)
\]
sqrt-prod79.0%
\[\leadsto \left(x + \color{blue}{\sqrt{y \cdot y}}\right) \cdot \left(x - y\right)
\]
sqr-neg79.0%
\[\leadsto \left(x + \sqrt{\color{blue}{\left(-y\right) \cdot \left(-y\right)}}\right) \cdot \left(x - y\right)
\]
sqrt-unprod29.8%
\[\leadsto \left(x + \color{blue}{\sqrt{-y} \cdot \sqrt{-y}}\right) \cdot \left(x - y\right)
\]
add-sqr-sqrt49.6%
\[\leadsto \left(x + \color{blue}{\left(-y\right)}\right) \cdot \left(x - y\right)
\]
sub-neg49.6%
\[\leadsto \color{blue}{\left(x - y\right)} \cdot \left(x - y\right)
\]
pow149.6%
\[\leadsto \color{blue}{{\left(x - y\right)}^{1}} \cdot \left(x - y\right)
\]
pow149.6%
\[\leadsto {\left(x - y\right)}^{1} \cdot \color{blue}{{\left(x - y\right)}^{1}}
\]
pow-prod-up49.6%
\[\leadsto \color{blue}{{\left(x - y\right)}^{\left(1 + 1\right)}}
\]
add-sqr-sqrt26.4%
\[\leadsto {\left(\color{blue}{\sqrt{x} \cdot \sqrt{x}} - y\right)}^{\left(1 + 1\right)}
\]
add-sqr-sqrt10.2%
\[\leadsto {\left(\sqrt{x} \cdot \sqrt{x} - \color{blue}{\sqrt{y} \cdot \sqrt{y}}\right)}^{\left(1 + 1\right)}
\]
difference-of-squares10.2%
\[\leadsto {\color{blue}{\left(\left(\sqrt{x} + \sqrt{y}\right) \cdot \left(\sqrt{x} - \sqrt{y}\right)\right)}}^{\left(1 + 1\right)}
\]
metadata-eval10.2%
\[\leadsto {\left(\left(\sqrt{x} + \sqrt{y}\right) \cdot \left(\sqrt{x} - \sqrt{y}\right)\right)}^{\color{blue}{2}}
\]
unpow-prod-down10.2%
\[\leadsto \color{blue}{{\left(\sqrt{x} + \sqrt{y}\right)}^{2} \cdot {\left(\sqrt{x} - \sqrt{y}\right)}^{2}}
\]
Applied egg-rr10.2%
\[\leadsto \color{blue}{{\left(\sqrt{x} + \sqrt{y}\right)}^{2} \cdot {\left(\sqrt{x} - \sqrt{y}\right)}^{2}}
\]
Step-by-step derivation
unpow210.2%
\[\leadsto \color{blue}{\left(\left(\sqrt{x} + \sqrt{y}\right) \cdot \left(\sqrt{x} + \sqrt{y}\right)\right)} \cdot {\left(\sqrt{x} - \sqrt{y}\right)}^{2}
\]
unpow210.2%
\[\leadsto \left(\left(\sqrt{x} + \sqrt{y}\right) \cdot \left(\sqrt{x} + \sqrt{y}\right)\right) \cdot \color{blue}{\left(\left(\sqrt{x} - \sqrt{y}\right) \cdot \left(\sqrt{x} - \sqrt{y}\right)\right)}
\]
unswap-sqr10.2%
\[\leadsto \color{blue}{\left(\left(\sqrt{x} + \sqrt{y}\right) \cdot \left(\sqrt{x} - \sqrt{y}\right)\right) \cdot \left(\left(\sqrt{x} + \sqrt{y}\right) \cdot \left(\sqrt{x} - \sqrt{y}\right)\right)}
\]
difference-of-squares10.2%
\[\leadsto \color{blue}{\left(\sqrt{x} \cdot \sqrt{x} - \sqrt{y} \cdot \sqrt{y}\right)} \cdot \left(\left(\sqrt{x} + \sqrt{y}\right) \cdot \left(\sqrt{x} - \sqrt{y}\right)\right)
\]
unpow1/210.2%
\[\leadsto \left(\color{blue}{{x}^{0.5}} \cdot \sqrt{x} - \sqrt{y} \cdot \sqrt{y}\right) \cdot \left(\left(\sqrt{x} + \sqrt{y}\right) \cdot \left(\sqrt{x} - \sqrt{y}\right)\right)
\]
unpow1/210.2%
\[\leadsto \left({x}^{0.5} \cdot \color{blue}{{x}^{0.5}} - \sqrt{y} \cdot \sqrt{y}\right) \cdot \left(\left(\sqrt{x} + \sqrt{y}\right) \cdot \left(\sqrt{x} - \sqrt{y}\right)\right)
\]
pow-sqr10.2%
\[\leadsto \left(\color{blue}{{x}^{\left(2 \cdot 0.5\right)}} - \sqrt{y} \cdot \sqrt{y}\right) \cdot \left(\left(\sqrt{x} + \sqrt{y}\right) \cdot \left(\sqrt{x} - \sqrt{y}\right)\right)
\]
metadata-eval10.2%
\[\leadsto \left({x}^{\color{blue}{1}} - \sqrt{y} \cdot \sqrt{y}\right) \cdot \left(\left(\sqrt{x} + \sqrt{y}\right) \cdot \left(\sqrt{x} - \sqrt{y}\right)\right)
\]
unpow110.2%
\[\leadsto \left(\color{blue}{x} - \sqrt{y} \cdot \sqrt{y}\right) \cdot \left(\left(\sqrt{x} + \sqrt{y}\right) \cdot \left(\sqrt{x} - \sqrt{y}\right)\right)
\]
unpow1/210.2%
\[\leadsto \left(x - \color{blue}{{y}^{0.5}} \cdot \sqrt{y}\right) \cdot \left(\left(\sqrt{x} + \sqrt{y}\right) \cdot \left(\sqrt{x} - \sqrt{y}\right)\right)
\]
unpow1/210.2%
\[\leadsto \left(x - {y}^{0.5} \cdot \color{blue}{{y}^{0.5}}\right) \cdot \left(\left(\sqrt{x} + \sqrt{y}\right) \cdot \left(\sqrt{x} - \sqrt{y}\right)\right)
\]
pow-sqr10.2%
\[\leadsto \left(x - \color{blue}{{y}^{\left(2 \cdot 0.5\right)}}\right) \cdot \left(\left(\sqrt{x} + \sqrt{y}\right) \cdot \left(\sqrt{x} - \sqrt{y}\right)\right)
\]
metadata-eval10.2%
\[\leadsto \left(x - {y}^{\color{blue}{1}}\right) \cdot \left(\left(\sqrt{x} + \sqrt{y}\right) \cdot \left(\sqrt{x} - \sqrt{y}\right)\right)
\]
unpow110.2%
\[\leadsto \left(x - \color{blue}{y}\right) \cdot \left(\left(\sqrt{x} + \sqrt{y}\right) \cdot \left(\sqrt{x} - \sqrt{y}\right)\right)
\]
difference-of-squares10.2%
\[\leadsto \left(x - y\right) \cdot \color{blue}{\left(\sqrt{x} \cdot \sqrt{x} - \sqrt{y} \cdot \sqrt{y}\right)}
\]
unpow1/210.2%
\[\leadsto \left(x - y\right) \cdot \left(\color{blue}{{x}^{0.5}} \cdot \sqrt{x} - \sqrt{y} \cdot \sqrt{y}\right)
\]
unpow1/210.2%
\[\leadsto \left(x - y\right) \cdot \left({x}^{0.5} \cdot \color{blue}{{x}^{0.5}} - \sqrt{y} \cdot \sqrt{y}\right)
\]
pow-sqr19.8%
\[\leadsto \left(x - y\right) \cdot \left(\color{blue}{{x}^{\left(2 \cdot 0.5\right)}} - \sqrt{y} \cdot \sqrt{y}\right)
\]
metadata-eval19.8%
\[\leadsto \left(x - y\right) \cdot \left({x}^{\color{blue}{1}} - \sqrt{y} \cdot \sqrt{y}\right)
\]
unpow119.8%
\[\leadsto \left(x - y\right) \cdot \left(\color{blue}{x} - \sqrt{y} \cdot \sqrt{y}\right)
\]
Simplified49.6%
\[\leadsto \color{blue}{\left(x - y\right) \cdot \left(x - y\right)}
\]
Applied egg-rr22.5%
\[\leadsto \color{blue}{\frac{{\left(x + y\right)}^{2} \cdot \left({x}^{3} - {y}^{3}\right)}{\left(x + y\right) \cdot \mathsf{fma}\left(y, x + y, {x}^{2}\right)}}
\]
Step-by-step derivation
times-frac37.0%
\[\leadsto \color{blue}{\frac{{\left(x + y\right)}^{2}}{x + y} \cdot \frac{{x}^{3} - {y}^{3}}{\mathsf{fma}\left(y, x + y, {x}^{2}\right)}}
\]
associate-*r/30.0%
\[\leadsto \color{blue}{\frac{\frac{{\left(x + y\right)}^{2}}{x + y} \cdot \left({x}^{3} - {y}^{3}\right)}{\mathsf{fma}\left(y, x + y, {x}^{2}\right)}}
\]
unpow230.0%
\[\leadsto \frac{\frac{\color{blue}{\left(x + y\right) \cdot \left(x + y\right)}}{x + y} \cdot \left({x}^{3} - {y}^{3}\right)}{\mathsf{fma}\left(y, x + y, {x}^{2}\right)}
\]
associate-/l*30.0%
\[\leadsto \frac{\color{blue}{\frac{x + y}{\frac{x + y}{x + y}}} \cdot \left({x}^{3} - {y}^{3}\right)}{\mathsf{fma}\left(y, x + y, {x}^{2}\right)}
\]
*-inverses30.0%
\[\leadsto \frac{\frac{x + y}{\color{blue}{1}} \cdot \left({x}^{3} - {y}^{3}\right)}{\mathsf{fma}\left(y, x + y, {x}^{2}\right)}
\]
/-rgt-identity30.0%
\[\leadsto \frac{\color{blue}{\left(x + y\right)} \cdot \left({x}^{3} - {y}^{3}\right)}{\mathsf{fma}\left(y, x + y, {x}^{2}\right)}
\]
associate-/l*36.9%
\[\leadsto \color{blue}{\frac{x + y}{\frac{\mathsf{fma}\left(y, x + y, {x}^{2}\right)}{{x}^{3} - {y}^{3}}}}
\]
associate-/r/36.9%
\[\leadsto \color{blue}{\frac{x + y}{\mathsf{fma}\left(y, x + y, {x}^{2}\right)} \cdot \left({x}^{3} - {y}^{3}\right)}
\]
+-commutative36.9%
\[\leadsto \frac{\color{blue}{y + x}}{\mathsf{fma}\left(y, x + y, {x}^{2}\right)} \cdot \left({x}^{3} - {y}^{3}\right)
\]
+-commutative36.9%
\[\leadsto \frac{y + x}{\mathsf{fma}\left(y, \color{blue}{y + x}, {x}^{2}\right)} \cdot \left({x}^{3} - {y}^{3}\right)
\]
Simplified36.9%
\[\leadsto \color{blue}{\frac{y + x}{\mathsf{fma}\left(y, y + x, {x}^{2}\right)} \cdot \left({x}^{3} - {y}^{3}\right)}
\]
Step-by-step derivation
expm1-log1p-u23.3%
\[\leadsto \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(\frac{y + x}{\mathsf{fma}\left(y, y + x, {x}^{2}\right)} \cdot \left({x}^{3} - {y}^{3}\right)\right)\right)}
\]
expm1-udef12.2%
\[\leadsto \color{blue}{e^{\mathsf{log1p}\left(\frac{y + x}{\mathsf{fma}\left(y, y + x, {x}^{2}\right)} \cdot \left({x}^{3} - {y}^{3}\right)\right)} - 1}
\]
associate-*l/9.9%
\[\leadsto e^{\mathsf{log1p}\left(\color{blue}{\frac{\left(y + x\right) \cdot \left({x}^{3} - {y}^{3}\right)}{\mathsf{fma}\left(y, y + x, {x}^{2}\right)}}\right)} - 1
\]
*-un-lft-identity9.9%
\[\leadsto e^{\mathsf{log1p}\left(\frac{\left(y + x\right) \cdot \left({x}^{3} - {y}^{3}\right)}{\color{blue}{1 \cdot \mathsf{fma}\left(y, y + x, {x}^{2}\right)}}\right)} - 1
\]
times-frac12.2%
\[\leadsto e^{\mathsf{log1p}\left(\color{blue}{\frac{y + x}{1} \cdot \frac{{x}^{3} - {y}^{3}}{\mathsf{fma}\left(y, y + x, {x}^{2}\right)}}\right)} - 1
\]
fma-udef12.2%
\[\leadsto e^{\mathsf{log1p}\left(\frac{y + x}{1} \cdot \frac{{x}^{3} - {y}^{3}}{\color{blue}{y \cdot \left(y + x\right) + {x}^{2}}}\right)} - 1
\]
+-commutative12.2%
\[\leadsto e^{\mathsf{log1p}\left(\frac{y + x}{1} \cdot \frac{{x}^{3} - {y}^{3}}{\color{blue}{{x}^{2} + y \cdot \left(y + x\right)}}\right)} - 1
\]
distribute-rgt-in12.2%
\[\leadsto e^{\mathsf{log1p}\left(\frac{y + x}{1} \cdot \frac{{x}^{3} - {y}^{3}}{{x}^{2} + \color{blue}{\left(y \cdot y + x \cdot y\right)}}\right)} - 1
\]
unpow212.2%
\[\leadsto e^{\mathsf{log1p}\left(\frac{y + x}{1} \cdot \frac{{x}^{3} - {y}^{3}}{\color{blue}{x \cdot x} + \left(y \cdot y + x \cdot y\right)}\right)} - 1
\]
flip3--40.4%
\[\leadsto e^{\mathsf{log1p}\left(\frac{y + x}{1} \cdot \color{blue}{\left(x - y\right)}\right)} - 1
\]
Applied egg-rr40.4%
\[\leadsto \color{blue}{e^{\mathsf{log1p}\left(\frac{y + x}{1} \cdot \left(x - y\right)\right)} - 1}
\]
Step-by-step derivation
expm1-def56.7%
\[\leadsto \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(\frac{y + x}{1} \cdot \left(x - y\right)\right)\right)}
\]
expm1-log1p100.0%
\[\leadsto \color{blue}{\frac{y + x}{1} \cdot \left(x - y\right)}
\]
/-rgt-identity100.0%
\[\leadsto \color{blue}{\left(y + x\right)} \cdot \left(x - y\right)
\]
+-commutative100.0%
\[\leadsto \color{blue}{\left(x + y\right)} \cdot \left(x - y\right)
\]
Simplified100.0%
\[\leadsto \color{blue}{\left(x + y\right) \cdot \left(x - y\right)}
\]
Final simplification100.0%
\[\leadsto \left(x + y\right) \cdot \left(x - y\right)
\]
- Add Preprocessing