We derive it using one fact: the determinant is multilinear and alternating in its columns, i.e. det behaves like a "signed volume" that:
scales when you scale a column,
adds when you split a column into a sum,
vanishes if two columns are equal.
Step 1 — Build a clever matrix. Take the identity matrix I and replace its i-th column with the unknown vector x. Call it Xi. For example with n=3, i=2:
X2=100x1x2x3001.Why this step? This matrix is upper/lower-mixed but expanding along the i-th row/column gives detXi=xi cheaply.
Step 2 — Compute detXi. Expanding the determinant along the special structure, every column except the i-th is a standard basis vector, so
detXi=xi.Why this step? The identity columns contribute factor 1; only the entry xi on the diagonal survives.
Step 3 — Multiply by A. Consider the product AXi. Multiplying A by a matrix multiplies A by each column:
A standard-basis column ek picks out column k of A, i.e. ak.
The i-th column x gives Ax=b.
So AXi is exactly A with its i-th column replaced by b — that is ==Ai==:
AXi=Ai.Why this step? This is the heart: matrix multiplication swaps the column for us automatically.
Step 4 — Take determinants and use multiplicativity (det(MN)=detMdetN):
detA⋅detXi=detAi⟹detA⋅xi=detAi.
Imagine a recipe: to make a smoothie (b) you mix some banana, apple and milk (the columns of A). Cramer's rule tells you exactly how many bananas you need. The trick: measure the "size" of the original ingredient-box (that's detA), then make a new box where you swap the banana ingredient for the whole smoothie and measure that box (detA1). Divide the two sizes — that ratio is exactly the amount of banana! Do the same for each ingredient. If the original box is flat (size 0), the ingredients are "stuck together" and there's no single recipe.
Cramer's rule ka core idea bahut simple hai: jab tumhe Ax=b solve karna ho aur detA=0 ho, to har ek unknown xi nikaalne ke liye sirf do determinant chahiye. Pehle original matrix A ka determinant nikaalo (yeh denominator hai). Phir A ki i-th column ko b se replace kar do, us naye matrix Ai ka determinant nikaalo (yeh numerator hai). Bas, xi=detAi/detA.
Iske peeche ka magic yeh hai ki determinant ek tarah ka "volume" (ya 2D me area) measure karta hai. Jab tum ek column ko b se badalte ho, to volume exactly utne factor se change hota hai jitna woh unknown ki value hai. Proof me hum ek special matrix Xi banate hain (identity ki i-th column ki jagah x), aur AXi=Ai ban jaata hai — bas determinant le lo dono taraf, ho gaya derive.
Dhyaan rakhna: yeh sirf tab kaam karta hai jab detA=0. Agar zero hai to ya to koi solution nahi ya infinitely many — tab Gaussian elimination use karo. Aur exam me sabse common galti: row replace mat karna, hamesha column replace karni hai b se. Bade systems ke liye Cramer slow hota hai, lekin chote 2×2, 3×3 aur theory/proofs ke liye yeh bahut elegant aur clean tareeka hai.