The problem I am attempting is the following

I got pretty far into it, however, I was not able to do the last step of the solution. The given solution is here
What I don't understand: I don't understand where the last equation comes from. Can someone clarify where it comes from?
