Hi

Recheck your calculations.

I get after row-operations:

Which shows that the matrix has two pivot columns and thus rank = 2.

Equivalently, dim Nul (A) = number of free variables, and

n = dim Nul(A) + rank (A)

And we see here that we have one free variable, so rank (A) = n-dim Nul(A) = 2