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