考虑以下线性方程组


我们可以定义矩阵A来表示系数,向量B作为结果,向量x作为变量



然后用矩阵重新写方程,我们得到

现在,假设我们想要这个方程关于向量x的导数

我们知道第一项是常数,所以等式左边的导数为零。分析右边,我们发现
有一些被称为伪逆的特殊矩阵,它们满足逆矩阵的部分性质,但并不满足其他性质。概括来说,如果我们有两个n × n的方阵A和B,那么如果以下等式成立,我们就说A是B的逆矩阵,B是A的逆矩阵

考虑以下矩阵
![{\displaystyle R=A^{T}[AA^{T}]^{-1}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/c544878c64753b232fbf25f755fa10ec884562d4)
我们称这个矩阵R为A的右伪逆,因为

但

我们将 A 的右伪逆表示为 
考虑以下矩阵
![{\displaystyle L=[A^{T}A]^{-1}A^{T}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/b2c91d6a13a926a4145a110b9df975a1fd7364f5)
我们称 L 为 A 的左伪逆,因为

但

我们将 A 的左伪逆表示为 