Column operation. C1←C1+C2+C3:
Δ=1+a+b1+a+b1+a+ba1bba1=(1+a+b)111a1bba1.
Row operations. L2←L2−L1, L3←L3−L1:
Δ=(1+a+b)100a1−ab−aba−b1−b.
Expand along the first column:
Δ=(1+a+b)1−ab−aa−b1−b.
2×2 determinant.
1−ab−aa−b1−b=(1−a)(1−b)−(a−b)(b−a)=(1−a)(1−b)+(a−b)2.
Expand: 1−a−b+ab+a2−2ab+b2=a2−ab+b2−a−b+1.
Conclusion.
Δ=(1+a+b)(a2−ab+b2−a−b+1).
Remark. When a=b=1, the determinant is 3⋅(1−1+1−1−1+1)=0, consistent with a matrix with all entries 1.