Let the matrix of dimension 4 be:
$$A=\begin{bmatrix} a11 & a12 & a13 & a14\\ a21 & a22 & a23 & a24\\ a31 & a32 & a33 & a34\\ a41 & a42 & a43 & a44 \end{bmatrix}$$
Also, let the matrix B be:
$$B=\begin{bmatrix} 1 & 0 & 0 & 0 & 0\\ 0 & a11 & a12 & a13 & a14\\ 0 & a21 & a22 & a23 & a24\\ 0 & a31 & a32 & a33 & a34\\ 0 & a41 & a42 & a43 & a44 \end{bmatrix}$$
Now, by Laplace Expansion (cofactor expansion), we can say that:
$det(A)=1\cdot det(B)$
But by Leibniz formula ("Sarru's rule") we have that:
$det(B) = (1 \cdot a11\cdot a22\cdot a33\cdot a44) - (a41\cdot a32\cdot a23\cdot a14\cdot 1)$
I have a strong feeling that I'm applying Leibniz formula wrongly but could someone explain how?