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 add-sqr-sqrt0.5
\[\leadsto \frac{\cos th}{\sqrt{2}} \cdot \left(a1 \cdot a1\right) + \frac{\cos th}{\sqrt{\color{blue}{\sqrt{2} \cdot \sqrt{2}}}} \cdot \left(a2 \cdot a2\right)\]
Applied sqrt-prod0.5
\[\leadsto \frac{\cos th}{\sqrt{2}} \cdot \left(a1 \cdot a1\right) + \frac{\cos th}{\color{blue}{\sqrt{\sqrt{2}} \cdot \sqrt{\sqrt{2}}}} \cdot \left(a2 \cdot a2\right)\]
Applied associate-/r*0.5
\[\leadsto \frac{\cos th}{\sqrt{2}} \cdot \left(a1 \cdot a1\right) + \color{blue}{\frac{\frac{\cos th}{\sqrt{\sqrt{2}}}}{\sqrt{\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{\frac{\cos th}{\sqrt{\sqrt{2}}}}{\sqrt{\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{\frac{\cos th}{\sqrt{\sqrt{2}}}}{\sqrt{\sqrt{2}}} \cdot \left(a2 \cdot a2\right)\]
Simplified0.4
\[\leadsto \cos th \cdot \color{blue}{\frac{{a1}^{2}}{\sqrt{2}}} + \frac{\frac{\cos th}{\sqrt{\sqrt{2}}}}{\sqrt{\sqrt{2}}} \cdot \left(a2 \cdot a2\right)\]
- Using strategy
rm Applied add-sqr-sqrt0.4
\[\leadsto \cos th \cdot \frac{\color{blue}{\sqrt{{a1}^{2}} \cdot \sqrt{{a1}^{2}}}}{\sqrt{2}} + \frac{\frac{\cos th}{\sqrt{\sqrt{2}}}}{\sqrt{\sqrt{2}}} \cdot \left(a2 \cdot a2\right)\]
Applied associate-/l*0.4
\[\leadsto \cos th \cdot \color{blue}{\frac{\sqrt{{a1}^{2}}}{\frac{\sqrt{2}}{\sqrt{{a1}^{2}}}}} + \frac{\frac{\cos th}{\sqrt{\sqrt{2}}}}{\sqrt{\sqrt{2}}} \cdot \left(a2 \cdot a2\right)\]
- Using strategy
rm Applied add-sqr-sqrt0.4
\[\leadsto \cos th \cdot \frac{\sqrt{{a1}^{2}}}{\frac{\sqrt{2}}{\sqrt{{a1}^{2}}}} + \frac{\frac{\cos th}{\sqrt{\sqrt{\color{blue}{\sqrt{2} \cdot \sqrt{2}}}}}}{\sqrt{\sqrt{2}}} \cdot \left(a2 \cdot a2\right)\]
Applied sqrt-prod0.4
\[\leadsto \cos th \cdot \frac{\sqrt{{a1}^{2}}}{\frac{\sqrt{2}}{\sqrt{{a1}^{2}}}} + \frac{\frac{\cos th}{\sqrt{\color{blue}{\sqrt{\sqrt{2}} \cdot \sqrt{\sqrt{2}}}}}}{\sqrt{\sqrt{2}}} \cdot \left(a2 \cdot a2\right)\]
Applied sqrt-prod0.4
\[\leadsto \cos th \cdot \frac{\sqrt{{a1}^{2}}}{\frac{\sqrt{2}}{\sqrt{{a1}^{2}}}} + \frac{\frac{\cos th}{\color{blue}{\sqrt{\sqrt{\sqrt{2}}} \cdot \sqrt{\sqrt{\sqrt{2}}}}}}{\sqrt{\sqrt{2}}} \cdot \left(a2 \cdot a2\right)\]
Applied *-un-lft-identity0.4
\[\leadsto \cos th \cdot \frac{\sqrt{{a1}^{2}}}{\frac{\sqrt{2}}{\sqrt{{a1}^{2}}}} + \frac{\frac{\color{blue}{1 \cdot \cos th}}{\sqrt{\sqrt{\sqrt{2}}} \cdot \sqrt{\sqrt{\sqrt{2}}}}}{\sqrt{\sqrt{2}}} \cdot \left(a2 \cdot a2\right)\]
Applied times-frac0.5
\[\leadsto \cos th \cdot \frac{\sqrt{{a1}^{2}}}{\frac{\sqrt{2}}{\sqrt{{a1}^{2}}}} + \frac{\color{blue}{\frac{1}{\sqrt{\sqrt{\sqrt{2}}}} \cdot \frac{\cos th}{\sqrt{\sqrt{\sqrt{2}}}}}}{\sqrt{\sqrt{2}}} \cdot \left(a2 \cdot a2\right)\]
Applied associate-/l*0.4
\[\leadsto \cos th \cdot \frac{\sqrt{{a1}^{2}}}{\frac{\sqrt{2}}{\sqrt{{a1}^{2}}}} + \color{blue}{\frac{\frac{1}{\sqrt{\sqrt{\sqrt{2}}}}}{\frac{\sqrt{\sqrt{2}}}{\frac{\cos th}{\sqrt{\sqrt{\sqrt{2}}}}}}} \cdot \left(a2 \cdot a2\right)\]
Final simplification0.4
\[\leadsto \cos th \cdot \frac{\sqrt{{a1}^{2}}}{\frac{\sqrt{2}}{\sqrt{{a1}^{2}}}} + \frac{\frac{1}{\sqrt{\sqrt{\sqrt{2}}}}}{\frac{\sqrt{\sqrt{2}}}{\frac{\cos th}{\sqrt{\sqrt{\sqrt{2}}}}}} \cdot \left(a2 \cdot a2\right)\]