結果 : solve by matrix method