# Why don't $A^TAx = A^Tb$ and $Ax=b$ have the same solution?

Suppose $A$ is a $m\times n$ matrix, $x$ is a vector of unkowns and $b$ is a vector of know entries.

Why don't $$Ax=b$$ and $$A^TAx = A^Tb$$ have the same solution ($x$)?

It seems to me that I could get from the first equation to the second equation by simply multiplying both sides by $A^T$, so in my conception this wouldn't change the solutions.

Am I missing something?

• In ordinary algebra do you expect $0x=1$ and $0\cdot0x=0\cdot1$ to have the same solutions? No, because $0$ has no multiplicative inverse. A similar situation obtains with matrix products: if $A$ is not invertible, that multiplication can introduce new solutions. – Brian M. Scott Feb 18 '13 at 14:47

It seems to me that I could get from the first equation to the second equation by simply multiplying both sides by $A^T$, so in my conception this wouldn't change the solutions.

It's not what you're missing, but what you're adding. You can indeed get from the first equation to the second by multiplying both sides by $A^T$. This means every solution to the first equation is also a solution to the second equation.

But you are trying to say more: you are trying to say every solution to the second equation is also a solution to the first equation. But that doesn't follow from your observation.

To make that conclusion, you need to find some way to get from the second equation to the first one, or some other argument that would imply a solution to the second is a solution to the first -- and such a thing may not exist, meaning that the second equation really does have solutions that are not solutions to the first equation.

• Great answer, thank you. – JLagana Feb 19 '13 at 22:35

Every solution to $Ax = b$ is a solution to $A^T A x = A^T b$, but not the other way around. A solution to $A^T A x = A^T b$ need not be a solution to $Ax = b$, unless $A^T$ is invertible (which is often not the case in applications).

If $A$ is invertible, they will indeed have the same solution because you could go from the second equation to the first by multiplying by $(A^{T})^{-1}$. In general, however, the first may have infinitely many solutions, whereas the second will have a unique solution if you have only linearly independent columns of $A$. See Moore-Penrose pseudoinverse for more.

here is an example of $A^TAx = b$ has a solution but $Ax = b$ has none. take $$A= \pmatrix{1\\0}, b = \pmatrix{1\\1}.$$ then $$A^\top A=1, A^\top b=1, A^\top Ax = b\to x = 1$$ but $$Ax = b \to \pmatrix{x\\0} = \pmatrix{1\\1}$$ has no solution.