Initial program 0.5
\[\frac{\cos th}{\sqrt{2}} \cdot \left(a1 \cdot a1\right) + \frac{\cos th}{\sqrt{2}} \cdot \left(a2 \cdot a2\right)\]
- Using strategy
rm Applied div-inv0.5
\[\leadsto \color{blue}{\left(\cos th \cdot \frac{1}{\sqrt{2}}\right)} \cdot \left(a1 \cdot a1\right) + \frac{\cos th}{\sqrt{2}} \cdot \left(a2 \cdot a2\right)\]
Applied associate-*l*0.5
\[\leadsto \color{blue}{\cos th \cdot \left(\frac{1}{\sqrt{2}} \cdot \left(a1 \cdot a1\right)\right)} + \frac{\cos th}{\sqrt{2}} \cdot \left(a2 \cdot a2\right)\]
Simplified0.5
\[\leadsto \cos th \cdot \color{blue}{\frac{{a1}^{2}}{\sqrt{2}}} + \frac{\cos th}{\sqrt{2}} \cdot \left(a2 \cdot a2\right)\]
- Using strategy
rm Applied add-sqr-sqrt0.5
\[\leadsto \cos th \cdot \frac{{a1}^{2}}{\sqrt{2}} + \frac{\cos th}{\sqrt{\color{blue}{\sqrt{2} \cdot \sqrt{2}}}} \cdot \left(a2 \cdot a2\right)\]
Applied sqrt-prod0.5
\[\leadsto \cos th \cdot \frac{{a1}^{2}}{\sqrt{2}} + \frac{\cos th}{\color{blue}{\sqrt{\sqrt{2}} \cdot \sqrt{\sqrt{2}}}} \cdot \left(a2 \cdot a2\right)\]
Applied associate-/r*0.5
\[\leadsto \cos th \cdot \frac{{a1}^{2}}{\sqrt{2}} + \color{blue}{\frac{\frac{\cos th}{\sqrt{\sqrt{2}}}}{\sqrt{\sqrt{2}}}} \cdot \left(a2 \cdot a2\right)\]
- Using strategy
rm Applied add-sqr-sqrt0.5
\[\leadsto \cos th \cdot \frac{{a1}^{2}}{\sqrt{2}} + \frac{\frac{\cos th}{\sqrt{\sqrt{2}}}}{\sqrt{\sqrt{\color{blue}{\sqrt{2} \cdot \sqrt{2}}}}} \cdot \left(a2 \cdot a2\right)\]
Applied sqrt-prod0.5
\[\leadsto \cos th \cdot \frac{{a1}^{2}}{\sqrt{2}} + \frac{\frac{\cos th}{\sqrt{\sqrt{2}}}}{\sqrt{\color{blue}{\sqrt{\sqrt{2}} \cdot \sqrt{\sqrt{2}}}}} \cdot \left(a2 \cdot a2\right)\]
Applied sqrt-prod0.5
\[\leadsto \cos th \cdot \frac{{a1}^{2}}{\sqrt{2}} + \frac{\frac{\cos th}{\sqrt{\sqrt{2}}}}{\color{blue}{\sqrt{\sqrt{\sqrt{2}}} \cdot \sqrt{\sqrt{\sqrt{2}}}}} \cdot \left(a2 \cdot a2\right)\]
Applied add-sqr-sqrt0.5
\[\leadsto \cos th \cdot \frac{{a1}^{2}}{\sqrt{2}} + \frac{\frac{\cos th}{\sqrt{\sqrt{\color{blue}{\sqrt{2} \cdot \sqrt{2}}}}}}{\sqrt{\sqrt{\sqrt{2}}} \cdot \sqrt{\sqrt{\sqrt{2}}}} \cdot \left(a2 \cdot a2\right)\]
Applied sqrt-prod0.5
\[\leadsto \cos th \cdot \frac{{a1}^{2}}{\sqrt{2}} + \frac{\frac{\cos th}{\sqrt{\color{blue}{\sqrt{\sqrt{2}} \cdot \sqrt{\sqrt{2}}}}}}{\sqrt{\sqrt{\sqrt{2}}} \cdot \sqrt{\sqrt{\sqrt{2}}}} \cdot \left(a2 \cdot a2\right)\]
Applied sqrt-prod0.5
\[\leadsto \cos th \cdot \frac{{a1}^{2}}{\sqrt{2}} + \frac{\frac{\cos th}{\color{blue}{\sqrt{\sqrt{\sqrt{2}}} \cdot \sqrt{\sqrt{\sqrt{2}}}}}}{\sqrt{\sqrt{\sqrt{2}}} \cdot \sqrt{\sqrt{\sqrt{2}}}} \cdot \left(a2 \cdot a2\right)\]
Applied *-un-lft-identity0.5
\[\leadsto \cos th \cdot \frac{{a1}^{2}}{\sqrt{2}} + \frac{\frac{\color{blue}{1 \cdot \cos th}}{\sqrt{\sqrt{\sqrt{2}}} \cdot \sqrt{\sqrt{\sqrt{2}}}}}{\sqrt{\sqrt{\sqrt{2}}} \cdot \sqrt{\sqrt{\sqrt{2}}}} \cdot \left(a2 \cdot a2\right)\]
Applied times-frac0.5
\[\leadsto \cos th \cdot \frac{{a1}^{2}}{\sqrt{2}} + \frac{\color{blue}{\frac{1}{\sqrt{\sqrt{\sqrt{2}}}} \cdot \frac{\cos th}{\sqrt{\sqrt{\sqrt{2}}}}}}{\sqrt{\sqrt{\sqrt{2}}} \cdot \sqrt{\sqrt{\sqrt{2}}}} \cdot \left(a2 \cdot a2\right)\]
Applied times-frac0.5
\[\leadsto \cos th \cdot \frac{{a1}^{2}}{\sqrt{2}} + \color{blue}{\left(\frac{\frac{1}{\sqrt{\sqrt{\sqrt{2}}}}}{\sqrt{\sqrt{\sqrt{2}}}} \cdot \frac{\frac{\cos th}{\sqrt{\sqrt{\sqrt{2}}}}}{\sqrt{\sqrt{\sqrt{2}}}}\right)} \cdot \left(a2 \cdot a2\right)\]
Applied associate-*l*0.6
\[\leadsto \cos th \cdot \frac{{a1}^{2}}{\sqrt{2}} + \color{blue}{\frac{\frac{1}{\sqrt{\sqrt{\sqrt{2}}}}}{\sqrt{\sqrt{\sqrt{2}}}} \cdot \left(\frac{\frac{\cos th}{\sqrt{\sqrt{\sqrt{2}}}}}{\sqrt{\sqrt{\sqrt{2}}}} \cdot \left(a2 \cdot a2\right)\right)}\]
Simplified0.4
\[\leadsto \cos th \cdot \frac{{a1}^{2}}{\sqrt{2}} + \frac{\frac{1}{\sqrt{\sqrt{\sqrt{2}}}}}{\sqrt{\sqrt{\sqrt{2}}}} \cdot \color{blue}{\left(\frac{\cos th}{\sqrt{\sqrt{2}}} \cdot \left(a2 \cdot a2\right)\right)}\]
- Using strategy
rm Applied div-inv0.4
\[\leadsto \cos th \cdot \frac{{a1}^{2}}{\sqrt{2}} + \frac{\frac{1}{\sqrt{\sqrt{\sqrt{2}}}}}{\sqrt{\sqrt{\sqrt{2}}}} \cdot \left(\color{blue}{\left(\cos th \cdot \frac{1}{\sqrt{\sqrt{2}}}\right)} \cdot \left(a2 \cdot a2\right)\right)\]
Final simplification0.5
\[\leadsto \frac{\cos th}{\sqrt{2}} \cdot \left(a2 \cdot a2 + {a1}^{2}\right)\]