added answer to 1.1.1, im not sure one the partial derivative wrt to w_ij, please check