Depending on the real parameter [tex]\lambda[/tex], find the rank of the matrix [tex]A=\begin{bmatrix}5&28&\lambda+25&8&-6\\-9&-54&-51&\lambda-15&12\\1&5&5&1&-1\\4&\lambda+21&22&7&-5\\2&13&12&5&-3\end{bmatrix}[/tex].
Solution:
Elementary row operations do not change the rank. With the third row [tex]R_3=(1, 5, 5, 1, -1)[/tex] we clear the first column:
[tex]R_1-5R_3=(0, 3, \lambda, 3, -1),\qquad R_2+9R_3=(0, -9, -6, \lambda-6, 3)[/tex]
[tex]R_4-4R_3=(0, \lambda+1, 2, 3, -1),\qquad R_5-2R_3=(0, 3, 2, 3, -1)=P[/tex]
Now we subtract multiples of [tex]P[/tex] from the other new rows:
[tex](0, 3, \lambda, 3, -1)-P=(0, 0, \lambda-2, 0, 0)[/tex]
[tex](0, -9, -6, \lambda-6, 3)+3P=(0, 0, 0, \lambda+3, 0)[/tex]
[tex](0, \lambda+1, 2, 3, -1)-P=(0, \lambda-2, 0, 0, 0)[/tex]
Therefore
[tex]A\sim\begin{bmatrix}1&5&5&1&-1\\0&3&2&3&-1\\0&\lambda-2&0&0&0\\0&0&\lambda-2&0&0\\0&0&0&\lambda+3&0\end{bmatrix}[/tex]
The first two rows together with the non-zero rows among the last three are linearly independent: in a vanishing linear combination the coefficient of the first row is [tex]0[/tex] (look at the first column), then the coefficient of the second row is [tex]0[/tex] (look at the last column), and the remaining rows are multiples of different unit vectors. Hence [tex]\operatorname{rank}A[/tex] equals [tex]2[/tex] plus the number of non-zero numbers among [tex]\lambda-2,\ \lambda-2,\ \lambda+3[/tex]:
for [tex]\lambda\ne 2,\ \lambda\ne -3[/tex] the rank is [tex]5[/tex] (indeed [tex]\det A=-(\lambda-2)^2(\lambda+3)\ne 0[/tex]); for [tex]\lambda=-3[/tex] it is [tex]2+2=4[/tex]; for [tex]\lambda=2[/tex] it is [tex]2+1=3[/tex].
[tex]\operatorname{rank}A=\begin{cases}3, & \lambda=2\\4, & \lambda=-3\\5, & \lambda\ne 2,\ \lambda\ne -3\end{cases}[/tex]