Initial program 13.2
\[x + \left(\tan \left(y + z\right) - \tan a\right)\]
- Using strategy
rm Applied tan-sum0.2
\[\leadsto x + \left(\color{blue}{\frac{\tan y + \tan z}{1 - \tan y \cdot \tan z}} - \tan a\right)\]
- Using strategy
rm Applied tan-quot0.2
\[\leadsto x + \left(\frac{\tan y + \tan z}{1 - \tan y \cdot \color{blue}{\frac{\sin z}{\cos z}}} - \tan a\right)\]
Applied associate-*r/0.2
\[\leadsto x + \left(\frac{\tan y + \tan z}{1 - \color{blue}{\frac{\tan y \cdot \sin z}{\cos z}}} - \tan a\right)\]
- Using strategy
rm Applied tan-quot0.2
\[\leadsto x + \left(\frac{\tan y + \tan z}{1 - \frac{\tan y \cdot \sin z}{\cos z}} - \color{blue}{\frac{\sin a}{\cos a}}\right)\]
Applied frac-sub0.2
\[\leadsto x + \color{blue}{\frac{\left(\tan y + \tan z\right) \cdot \cos a - \left(1 - \frac{\tan y \cdot \sin z}{\cos z}\right) \cdot \sin a}{\left(1 - \frac{\tan y \cdot \sin z}{\cos z}\right) \cdot \cos a}}\]
- Using strategy
rm Applied tan-quot0.2
\[\leadsto x + \frac{\left(\tan y + \color{blue}{\frac{\sin z}{\cos z}}\right) \cdot \cos a - \left(1 - \frac{\tan y \cdot \sin z}{\cos z}\right) \cdot \sin a}{\left(1 - \frac{\tan y \cdot \sin z}{\cos z}\right) \cdot \cos a}\]
Applied tan-quot0.2
\[\leadsto x + \frac{\left(\color{blue}{\frac{\sin y}{\cos y}} + \frac{\sin z}{\cos z}\right) \cdot \cos a - \left(1 - \frac{\tan y \cdot \sin z}{\cos z}\right) \cdot \sin a}{\left(1 - \frac{\tan y \cdot \sin z}{\cos z}\right) \cdot \cos a}\]
Applied frac-add0.2
\[\leadsto x + \frac{\color{blue}{\frac{\sin y \cdot \cos z + \cos y \cdot \sin z}{\cos y \cdot \cos z}} \cdot \cos a - \left(1 - \frac{\tan y \cdot \sin z}{\cos z}\right) \cdot \sin a}{\left(1 - \frac{\tan y \cdot \sin z}{\cos z}\right) \cdot \cos a}\]
Applied associate-*l/0.2
\[\leadsto x + \frac{\color{blue}{\frac{\left(\sin y \cdot \cos z + \cos y \cdot \sin z\right) \cdot \cos a}{\cos y \cdot \cos z}} - \left(1 - \frac{\tan y \cdot \sin z}{\cos z}\right) \cdot \sin a}{\left(1 - \frac{\tan y \cdot \sin z}{\cos z}\right) \cdot \cos a}\]
Final simplification0.2
\[\leadsto \frac{\frac{\cos a \cdot \left(\cos z \cdot \sin y + \sin z \cdot \cos y\right)}{\cos y \cdot \cos z} - \left(1 - \frac{\sin z \cdot \tan y}{\cos z}\right) \cdot \sin a}{\left(1 - \frac{\sin z \cdot \tan y}{\cos z}\right) \cdot \cos a} + x\]