Initial program 0.2
\[\left({\left(a \cdot a + b \cdot b\right)}^{2} + 4 \cdot \left(\left(a \cdot a\right) \cdot \left(1 - a\right) + \left(b \cdot b\right) \cdot \left(3 + a\right)\right)\right) - 1\]
Simplified0.2
\[\leadsto \color{blue}{\left(\left(a + 3\right) \cdot \left(b \cdot b\right) + \left(a \cdot a\right) \cdot \left(1 - a\right)\right) \cdot 4 - \left(1 - \left(a \cdot a + b \cdot b\right) \cdot \left(a \cdot a + b \cdot b\right)\right)}\]
- Using strategy
rm Applied add-sqr-sqrt0.2
\[\leadsto \left(\left(a + 3\right) \cdot \left(b \cdot b\right) + \left(a \cdot a\right) \cdot \left(1 - a\right)\right) \cdot 4 - \left(1 - \color{blue}{\left(\sqrt{a \cdot a + b \cdot b} \cdot \sqrt{a \cdot a + b \cdot b}\right)} \cdot \left(a \cdot a + b \cdot b\right)\right)\]
Applied associate-*l*0.1
\[\leadsto \left(\left(a + 3\right) \cdot \left(b \cdot b\right) + \left(a \cdot a\right) \cdot \left(1 - a\right)\right) \cdot 4 - \left(1 - \color{blue}{\sqrt{a \cdot a + b \cdot b} \cdot \left(\sqrt{a \cdot a + b \cdot b} \cdot \left(a \cdot a + b \cdot b\right)\right)}\right)\]
- Using strategy
rm Applied add-sqr-sqrt0.1
\[\leadsto \left(\left(a + 3\right) \cdot \left(b \cdot b\right) + \left(a \cdot a\right) \cdot \left(1 - a\right)\right) \cdot 4 - \left(1 - \sqrt{a \cdot a + b \cdot b} \cdot \left(\sqrt{a \cdot a + b \cdot b} \cdot \color{blue}{\left(\sqrt{a \cdot a + b \cdot b} \cdot \sqrt{a \cdot a + b \cdot b}\right)}\right)\right)\]
Applied cube-unmult0.1
\[\leadsto \left(\left(a + 3\right) \cdot \left(b \cdot b\right) + \left(a \cdot a\right) \cdot \left(1 - a\right)\right) \cdot 4 - \left(1 - \sqrt{a \cdot a + b \cdot b} \cdot \color{blue}{{\left(\sqrt{a \cdot a + b \cdot b}\right)}^{3}}\right)\]
- Using strategy
rm Applied pow10.1
\[\leadsto \left(\left(a + 3\right) \cdot \left(b \cdot b\right) + \left(a \cdot a\right) \cdot \left(1 - a\right)\right) \cdot 4 - \left(1 - \color{blue}{{\left(\sqrt{a \cdot a + b \cdot b}\right)}^{1}} \cdot {\left(\sqrt{a \cdot a + b \cdot b}\right)}^{3}\right)\]
Applied pow-prod-up0.0
\[\leadsto \left(\left(a + 3\right) \cdot \left(b \cdot b\right) + \left(a \cdot a\right) \cdot \left(1 - a\right)\right) \cdot 4 - \left(1 - \color{blue}{{\left(\sqrt{a \cdot a + b \cdot b}\right)}^{\left(1 + 3\right)}}\right)\]
Simplified0.0
\[\leadsto \left(\left(a + 3\right) \cdot \left(b \cdot b\right) + \left(a \cdot a\right) \cdot \left(1 - a\right)\right) \cdot 4 - \left(1 - {\left(\sqrt{a \cdot a + b \cdot b}\right)}^{\color{blue}{4}}\right)\]
Final simplification0.0
\[\leadsto \left(\left(b \cdot b\right) \cdot \left(3 + a\right) + \left(a \cdot a\right) \cdot \left(1 - a\right)\right) \cdot 4 - \left(1 - {\left(\sqrt{a \cdot a + b \cdot b}\right)}^{4}\right)\]