I am trying to find the determinant of this matrix. Let $A$ be the matrix :
\begin{bmatrix}2&2&1\\1&0&5\\1&1&0\end{bmatrix}
Using row operations, I can change $R_3$ to ( $-2R_3$$+$$R_1$$\rightarrow$$R_3$). So, $B$ is the matrix :
\begin{bmatrix}2&2&1\\1&0&5\\0&0&1\end{bmatrix}
Then, using Laplace Expansion and expanding along the 2nd column,
$det(A) = (2)(-1)^3 det(\begin{bmatrix}1&5\\0&1\end{bmatrix})= (2)(-1)(1) = -2$
However, $det(A)=det(B)$ if a multiple of one row is added to another, but the determinant of $A$ is $1$. What am I doing wrong here?