Proving a property of determinant in MATLAB

41 Views Asked by At

I want to prove this relation of determinant in MATLAB; $K^2 \det (KI_3-BA) = K^3 \det (KI_2-AB)$, for $A_{2×3}$ and $B_{3×2} $.But by defining symbolic variables, at the end when I subtract two sides from each other, I haven't zero but an expression such $k(ad-bc)-k(ad-bc)$! Actually, the factors don't act on in-parenthesis elements. How can solve this problem?