Suppose we only look at the nominator to keep things simple.
And suppose we define .
Then this implies that (do you know why?).
It also implies that .
If we substitute these into your first nominator, you'll get:
And if we substitute them into your second nominator, you'll get:
Can you see that those expressions are identical?