title: How can I animate algebraic manipulation, preferably in Python
body: <p>I need to be able to start with an algebraic expression and show how to manipulate it to obtain a different expression - moving the elements around, changing signs, dividing both sides by the same scalar, for example. So if I started with this expression:</p>
  <p><a href="https://i.stack.imgur.com/ef6MO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ef6MO.png" alt="enter image description here" /></a></p>
  <p>And wanted to end up with this one:</p>
  <p><a href="https://i.stack.imgur.com/LqroX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LqroX.png" alt="enter image description here" /></a></p>
  <p>Then I would move the B1 and B2Xi to the other side and change their signs. But I would like this process to be animated, so you actually see the path of the B's as they arc up and over to the opposite side and the + signs transform into - signs.</p>
  <p>There's a tutorial on doing this in PowerPoint here <a href="https://www.youtube.com/watch?v=Ksw0LUVu-Gw" rel="nofollow noreferrer">https://www.youtube.com/watch?v=Ksw0LUVu-Gw</a>. But it is very laborious. I'd prefer to be able to write reusable code and speed up the process. Also, if the equations can be as pretty as they are in Latex, that would be a bonus.</p>
  <p>SOme of the equations I'll be animating get pretty intricate and complex too, so not all as simple as the example here.</p>
  <p>Is there a way of doing this? Preferably in Python, but I could also learn how to do it another package if it was not too steep a learning curve.</p>
  <p>Thanks</p>