corrected matrix multiplication in b_x calculation