The martingale product identity says that is a martingale. Passing to the terminal values of the square-integrable martingales and using gives
The quadratic covariation identity for a stochastic integral is
Applying the same product identity to and therefore gives