I dont understand how the author simply reduce the top equation to the bottom one. How do you do the reduction?