Back propagation on matrix of weights
Your question needs a wide explanation.


  I suggest to go through this YouTube video DNN Backpropagation
  It will explain how backpropagation
  works in case of DNN.