Given:
[tex]\begin{bmatrix}{1} & {1} & {-1} & {-2} \\ {2} & {-1} & {1} & {5} \\ {-1} & {2} & {2} & 1 \\ & & & {}\end{bmatrix}[/tex]
First, add R1 to R3:
[tex]\begin{bmatrix}{1} & {1} & {-1} & {-2} \\ {2} & {-1} & {1} & {5} \\ {0} & {3} & {1} & -1 \\ & & & {}\end{bmatrix}[/tex]
Then, R2-2R1:
[tex]\begin{bmatrix}{1} & {1} & {-1} & {-2} \\ {0} & -{3} & {3} & {9} \\ {0} & {3} & {1} & -1 \\ & & & {}\end{bmatrix}[/tex]
Then, R3+R2:
[tex]\begin{bmatrix}{1} & {1} & {-1} & {-2} \\ {0} & -{3} & {3} & {9} \\ {0} & {0} & {4} & 8 \\ & & & {}\end{bmatrix}[/tex]
Therefore, the echelon form of the given matrix is:
[tex]\begin{bmatrix}{1} & {1} & {-1} & {-2} \\ {0} & {-3} & {3} & {9} \\ {0} & {0} & {4} & {8} \\ {} & {} & {} & {}\end{bmatrix}[/tex]