As in the scalar case, the 3D-Var analysis is given by
where the weight matrix is
 and the analysis error covariance is given by