4.5.24 · D3 · Maths › Linear Algebra (Full) › Cramer's rule
Yeh page Cramer's rule ka "sab kuch try karo" companion hai. Parent note ne formula x i = det A det A i banaya aur kyun kaam karta hai yeh explain kiya. Yahan hum isse har tarah ke input ke against stress-test karte hain jo tum exam mein dekh sakte ho: saaf numbers, negative aur zero coefficients, ek aisa system jahan det A = 0 (toh rule run hi nahi karega ), ek limiting near-singular case, ek geometry problem, ek word problem, aur ek exam twist jisme letter parameter hai.
Definition "Signed volume" (aur 2D mein signed area)
det A A ke columns se bane box ka volume measure karta hai, lekin ek + ya − tag ke saath. Isse hum signed volume kehte hain: box ka size, times + 1 agar columns usual (counter-clockwise) orientation maintain karte hain aur − 1 agar woh flip ho jaate hain. 2D mein (2 × 2 matrix) "box" ek parallelogram hota hai aur uska volume actually ek area hota hai, toh wahan hum signed area kehte hain: parallelogram ka area, minus sign ke saath jab column 2, column 1 se clockwise ho. Is poori page mein, "signed volume" aur "signed area" ek hi idea hai, bas ek dimension ka farak hai.
Intuition Pehle yeh padho
det A A ke columns se bane box ka signed volume hai (2D mein: signed area). Cramer's rule kehta hai: column i ki kitni zaroorat hai yeh jaanne ke liye, uss ek column ko b se swap karo, naya box measure karo, aur purane box se divide karo. Neeche har scenario sirf yahi ek picture hai — bas box ki alag-alag shapes ke saath.
Har cell ko neeche kam se kam ek worked example cover karta hai. Agar koi case tumhe ulajha sakta hai, woh yahan maujood hai.
Cell
Kya special hai
Covered by
A. Clean 2×2, positive
saari entries positive, det A > 0
Example 1
B. Mixed signs 2×2
negative coefficients, negative det A
Example 2
C. Zero entries / basis-like
ek coefficient 0 hai (ek column axis-aligned)
Example 3
D. Degenerate: det A = 0 (no solution)
rule run nahi ho sakta — inconsistent
Example 4
D'. Degenerate: det A = 0 (infinitely many)
rule run nahi ho sakta — 0/0
Example 4b
E. Limiting / near-singular
det A → 0 + , dekho x i blast ho raha hai
Example 5
F. 3×3 full
teen unknowns, teen column swaps
Example 6
G. Geometry
do lines ka intersection = ek 2×2 system
Example 7
H. Word problem (units)
real quantities, units ka sanity-check
Example 8
I. Exam twist (parameter)
A mein ek letter k ; kab toot-ta hai?
Example 9
Prerequisites jo tum open rakhna chahoge: Determinants , Cofactor Expansion , aur degenerate cell ke liye Gaussian Elimination aur Invertible Matrix Theorem .
Solve karo { 3 x + 2 y = 12 x + 4 y = 14 .
Forecast: saare numbers positive aur chhote hain — compute karne se pehle guess karo ki x aur y saaf whole numbers mein aayenge ya nahi.
Step 1 — Box likho. A = ( 3 1 2 4 ) , b = ( 12 14 ) .
Yeh step kyun? A ke columns do "ingredients" hain; b target hai. Figure mein box dekho.
Step 2 — Denominator det A . det A = ( 3 ) ( 4 ) − ( 2 ) ( 1 ) = 10 .
Yeh step kyun? Yeh original ingredient-box ka area hai. Yeh = 0 hai, toh ek unique recipe exist karti hai — rule run karne ki permission hai.
Step 3 — Column 1 ko b se swap karo. A 1 = ( 12 14 2 4 ) , det A 1 = ( 12 ) ( 4 ) − ( 2 ) ( 14 ) = 48 − 28 = 20 . Toh x = 10 20 = 2 .
Yeh step kyun? x -column ko b se cover karne se measure hota hai ki "column 1 ka kitna hissa" b banata hai.
Step 4 — Column 2 ko b se swap karo. A 2 = ( 3 1 12 14 ) , det A 2 = ( 3 ) ( 14 ) − ( 12 ) ( 1 ) = 42 − 12 = 30 . Toh y = 10 30 = 3 .
Yeh step kyun? Ab hum y -column (column 2) ko b se cover karte hain; us naye box ka area original box ke area ke upar exactly column 2 ki zaroorat ki matra hai, yaani y .
Verify: 3 ( 2 ) + 2 ( 3 ) = 6 + 6 = 12 ✓, 2 + 4 ( 3 ) = 2 + 12 = 14 ✓.
Solve karo { 2 x − 3 y = 13 − x + 5 y = − 8 .
Forecast: coefficients positive aur negative dono hain. Kya numerator mein negative signs saaf fractions denge?
Step 1 — Box. A = ( 2 − 1 − 3 5 ) , b = ( 13 − 8 ) .
Yeh step kyun? Same setup; sirf signs ka fark hai, jo determinant automatically handle kar leta hai.
Step 2 — det A . det A = ( 2 ) ( 5 ) − ( − 3 ) ( − 1 ) = 10 − 3 = 7 .
Yeh step kyun? det A = 7 = 0 — box ka genuine area hai, toh rule run karega. (Note: mixed-sign matrix ka determinant phir bhi positive aa sakta hai; yahan aisa hi hai.)
Step 3 — x . A 1 = ( 13 − 8 − 3 5 ) , det A 1 = ( 13 ) ( 5 ) − ( − 3 ) ( − 8 ) = 65 − 24 = 41 . Toh x = 7 41 .
Yeh step kyun? Column 1 (x -column) ko b se cover karo; is box aur original box ka ratio x hai. Integers zaroori nahi — fraction ek perfectly good answer hai.
Step 4 — y . A 2 = ( 2 − 1 13 − 8 ) , det A 2 = ( 2 ) ( − 8 ) − ( 13 ) ( − 1 ) = − 16 + 13 = − 3 . Toh y = 7 − 3 .
Yeh step kyun? Column 2 (y -column) ko b se cover karo; us box ke area ka original box ke area se ratio y deta hai. Negative result ka matlab sirf yeh hai ki box orientation flip ho gayi.
Verify: 2 ( 7 41 ) − 3 ( − 7 3 ) = 7 82 + 9 = 7 91 = 13 ✓, aur − ( 7 41 ) + 5 ( − 7 3 ) = 7 − 41 − 15 = 7 − 56 = − 8 ✓.
det A 1 ka sign
Galat idea: ( 13 ) ( 5 ) − ( − 3 ) ( − 8 ) = 65 + 24 . Fix: ( − 3 ) ( − 8 ) = + 24 , aur hum isse subtract karte hain: 65 − 24 = 41 . Double negative ko dhyan se track karo.
Solve karo { 4 x + 0 ⋅ y = 12 3 x + 2 y = 5 .
Forecast: column 2 hai ( 0 2 ) — yeh seedha y -axis ki taraf point karta hai. Isse box ek clean rectangle banana chahiye. Pehli equation se akele x guess karo.
Step 1 — Box. A = ( 4 3 0 2 ) , b = ( 12 5 ) .
Yeh step kyun? Zero ka matlab hai column 1 aur column 2 "kam ulajhe" hain; figure mein ek column flat aur doosra khada dikhta hai.
Step 2 — det A . det A = ( 4 ) ( 2 ) − ( 0 ) ( 3 ) = 8 .
Yeh step kyun? Zero ek product ko khatam kar deta hai; box area sirf 4 × 2 = 8 hai (rectangle-ish box ki base times height).
Step 3 — x . A 1 = ( 12 5 0 2 ) , det A 1 = ( 12 ) ( 2 ) − ( 0 ) ( 5 ) = 24 . Toh x = 8 24 = 3 .
Yeh step kyun? x -column ko b se cover karo; box ratio forecast confirm karta hai: 4 x = 12 ⇒ x = 3 .
Step 4 — y . A 2 = ( 4 3 12 5 ) , det A 2 = ( 4 ) ( 5 ) − ( 12 ) ( 3 ) = 20 − 36 = − 16 . Toh y = 8 − 16 = − 2 .
Yeh step kyun? y -column (column 2) ko b se cover karo; is naye box aur original box ka ratio y deta hai, aur negative sign flipped orientation record karta hai.
Verify: 4 ( 3 ) = 12 ✓, 3 ( 3 ) + 2 ( − 2 ) = 9 − 4 = 5 ✓.
Worked example Cell D (rule refuse karta hai)
Solve karne ki koshish karo { x + 2 y = 3 2 x + 4 y = 10 .
Forecast: row 2 almost row 1 ki double hai. Kya yeh coincidence hai, ya warning sign?
Step 1 — det A . A = ( 1 2 2 4 ) , det A = ( 1 ) ( 4 ) − ( 2 ) ( 2 ) = 4 − 4 = 0 .
Yeh step kyun? Denominator hamesha pehle compute karo. Yahan yeh 0 hai — Cramer's rule run nahi kar sakta .
Step 2 — Geometry padho. Do columns ( 1 2 ) aur ( 2 4 ) parallel hain (ek doosre ki double hai), toh box flat hai — zero area. Figure mein dono column-arrows ek hi line par dikhte hain.
Yeh step kyun? Zero volume ka matlab hai columns har b tak nahi pahunch sakte: ya toh koi solution nahi ya infinitely many.
Step 3 — Diagnose karo kaun sa. Equation 1 ko double karo toh 2 x + 4 y = 6 milta hai, lekin equation 2 kehti hai 2 x + 4 y = 10 . Kyunki 6 = 10 , do equations contradict karti hain — koi solution nahi hai .
Yeh step kyun? Invertible Matrix Theorem ke hisaab se, det A = 0 ka matlab non-unique hai; hum elimination (Gaussian Elimination ) use karte hain yeh dekhne ke liye ki yeh "no solution" branch hai.
Verify: det A 1 = det ( 3 10 2 4 ) = 12 − 20 = − 8 = 0 . Nonzero numerator over zero denominator confirm karta hai inconsistent (blow-up, 0/0 nahi). Cramer sahi taur par koi finite answer nahi deta.
Worked example Cell D' (doosri singular branch)
Solve karne ki koshish karo { x + 2 y = 3 2 x + 4 y = 6 .
Forecast: Example 4 jaisa hi left-hand side hai, lekin ab equation 2 ka right-hand side exactly equation 1 ka double hai. Guess karo ki yeh "no solution" hai ya "bahut zyada solutions".
Step 1 — det A . A = ( 1 2 2 4 ) , det A = ( 1 ) ( 4 ) − ( 2 ) ( 2 ) = 0 .
Yeh step kyun? Pehle jaisa hi flat box — denominator 0 hai, toh Cramer phir bhi ek single number produce nahi kar sakta.
Step 2 — Numerators compute karo. det A 1 = det ( 3 6 2 4 ) = ( 3 ) ( 4 ) − ( 2 ) ( 6 ) = 12 − 12 = 0 , aur det A 2 = det ( 1 2 3 6 ) = ( 1 ) ( 6 ) − ( 3 ) ( 2 ) = 6 − 6 = 0 .
Yeh step kyun? Jab dono numerators bhi vanish hote hain, toh Cramer ratios 0/0 hain — undefined, lekin Example 4 ka ulta signal deta hai.
Step 3 — Diagnose karo. Equation 2 exactly 2 × equation 1 hai, toh yeh koi nayi information nahi deti. Line x + 2 y = 3 par har point system solve karta hai — infinitely many solutions hain.
Yeh step kyun? 0/0 (nonzero /0 nahi) infinitely-many branch ki fingerprint hai; free variable padhne ke liye Gaussian Elimination use karo.
Verify: y = 0 ⇒ x = 3 lo: check karo 2 ( 3 ) + 4 ( 0 ) = 6 ✓. y = 1 ⇒ x = 1 lo: check karo 2 ( 1 ) + 4 ( 1 ) = 6 ✓. Do alag valid solutions "infinitely many" confirm karte hain.
Common mistake Phir bhi plug in karna
Galat idea: "x = − 8/0 , woh toh bas infinity hai." Fix: det A = 0 ek stop sign hai. Numerators padho: nonzero over zero ⇒ no solution (Ex. 4); zero over zero ⇒ infinitely many (Ex. 4b). Phir elimination pe switch karo.
Worked example Cell E (dekho yeh blast kaise hota hai)
Solve karo { x + y = 1 x + ( 1 + ε ) y = 0 chhote ε > 0 ke liye, phir ε → 0 + karo.
Forecast: jaise ε → 0 hota hai do equations almost identical ho jaati hain. Guess karo ki x , y bounded rehenge ya blast karenge.
Step 1 — det A . A = ( 1 1 1 1 + ε ) , det A = ( 1 ) ( 1 + ε ) − ( 1 ) ( 1 ) = ε .
Yeh step kyun? Yeh tiny denominator ε hi poori kahani hai: kisi cheez ke paas divide karne se sab kuch magnify ho jaata hai.
Step 2 — x . A 1 = ( 1 0 1 1 + ε ) , det A 1 = ( 1 ) ( 1 + ε ) − ( 1 ) ( 0 ) = 1 + ε . Toh x = ε 1 + ε .
Yeh step kyun? Column 1 ko b = ( 1 , 0 ) ⊤ se cover karo; box ratio x deta hai. Notice karo numerator 1 ke paas rehta hai jabki denominator shrink hota hai — yahi blast force karta hai.
Step 3 — y . A 2 = ( 1 1 1 0 ) , det A 2 = ( 1 ) ( 0 ) − ( 1 ) ( 1 ) = − 1 . Toh y = ε − 1 .
Yeh step kyun? Column 2 ko b se cover karo; yahan numerator fixed − 1 hai, toh tiny ε se divide karne se y − ∞ ki taraf jaata hai.
Step 4 — Limit lo. Jaise ε → 0 + : x = ε 1 + ε → + ∞ aur y = ε − 1 → − ∞ .
Yeh step kyun? Yeh parent note ki numerical-instability warning ko concrete bana deta hai: ε mein ek chota sa change answer ko wildly swing kar deta hai.
Verify (ε = 0.1 par): x = 1.1/0.1 = 11 , y = − 1/0.1 = − 10 . Check: 11 + ( − 10 ) = 1 ✓, 11 + 1.1 ( − 10 ) = 11 − 11 = 0 ✓. Huge numbers, tiny denominator — exactly wahi instability.
Solve karo ⎩ ⎨ ⎧ x + 2 y + z = 4 2 x + 5 y + z = 3 − x + y + 3 z = 5 .
Forecast: teen unknowns ke liye char determinants chahiye (ek denominator, teen numerators). Mostly-positive entries se det A ka rough sign guess karo.
Step 1 — det A by Cofactor Expansion along row 1.
A = 1 2 − 1 2 5 1 1 1 3 .
det A = 1 14 ( 5 ⋅ 3 − 1 ⋅ 1 ) − 2 7 ( 2 ⋅ 3 − 1 ⋅ ( − 1 )) + 1 7 ( 2 ⋅ 1 − 5 ⋅ ( − 1 )) = 14 − 14 + 7 = 7.
Yeh step kyun? Expansion signs alternate karte hain + , − , + ; woh alternation wahi "alternating" property hai jo columns swap karne par sign flip karti hai.
Step 2 — x : column 1 ko b = ( 4 , 3 , 5 ) ⊤ se cover karo. A 1 = 4 3 5 2 5 1 1 1 3 .
det A 1 = 4 ( 15 − 1 ) − 2 ( 9 − 5 ) + 1 ( 3 − 25 ) = 4 ( 14 ) − 2 ( 4 ) + ( − 22 ) = 56 − 8 − 22 = 26 . Toh x = 7 26 .
Yeh step kyun? x -column ko b se replace karne se woh box banta hai jiski volume, original volume det A se divide karne par, exactly x hai — "column ko cover karo" ka 3-D version.
Step 3 — y : column 2 ko cover karo. A 2 = 1 2 − 1 4 3 5 1 1 3 .
det A 2 = 1 ( 9 − 5 ) − 4 ( 6 + 1 ) + 1 ( 10 + 3 ) = 4 − 28 + 13 = − 11 . Toh y = 7 − 11 .
Yeh step kyun? Ab y -column b carry karta hai; signed-volume ratio y deta hai, aur negative sign record karta hai ki is swapped box ki orientation opposite hai.
Step 4 — z : column 3 ko cover karo. A 3 = 1 2 − 1 2 5 1 4 3 5 .
det A 3 = 1 ( 25 − 3 ) − 2 ( 10 + 3 ) + 4 ( 2 + 5 ) = 22 − 26 + 28 = 24 . Toh z = 7 24 .
Yeh step kyun? Last column swap: b ko z -slot mein rakhna aur uski box volume ko det A se divide karna z deta hai, recipe complete karta hai.
Verify: x + 2 y + z = 7 26 − 22 + 24 = 7 28 = 4 ✓, 2 x + 5 y + z = 7 52 − 55 + 24 = 7 21 = 3 ✓, − x + y + 3 z = 7 − 26 − 11 + 72 = 7 35 = 5 ✓.
Find karo kahan lines L 1 : 2 x + y = 4 aur L 2 : x − y = − 1 cross karti hain.
Forecast: do non-parallel lines exactly ek point par milti hain. Compute karne se pehle unhe sketch karo aur crossing estimate karo.
Step 1 — Yeh ek 2×2 system hai. A = ( 2 1 1 − 1 ) , b = ( 4 − 1 ) .
Yeh step kyun? "Intersection point" hi simultaneous solution hai — same object, alag words.
Step 2 — det A . det A = ( 2 ) ( − 1 ) − ( 1 ) ( 1 ) = − 2 − 1 = − 3 .
Yeh step kyun? = 0 matlab lines parallel nahi hain, toh exactly ek crossing exist karta hai.
Step 3 — x . A 1 = ( 4 − 1 1 − 1 ) , det A 1 = ( 4 ) ( − 1 ) − ( 1 ) ( − 1 ) = − 4 + 1 = − 3 . Toh x = − 3 − 3 = 1 .
Yeh step kyun? x -column ko b se cover karo; is box aur det A ka ratio crossing point ka x -coordinate deta hai.
Step 4 — y . A 2 = ( 2 1 4 − 1 ) , det A 2 = ( 2 ) ( − 1 ) − ( 4 ) ( 1 ) = − 2 − 4 = − 6 . Toh y = − 3 − 6 = 2 .
Yeh step kyun? y -column ko b se cover karo; us box ko det A se divide karna y -coordinate deta hai — saath mein ( x , y ) intersection hai.
Verify: point ( 1 , 2 ) : 2 ( 1 ) + 2 = 4 ✓, 1 − 2 = − 1 ✓ — yeh dono lines par lie karta hai, figure ke red dot se match karta hai.
Ek café do combos bechta hai. Combo A = 2 coffees + 1 muffin ki cost ₹230 hai. Combo B = 1 coffee + 3 muffins ki cost ₹290 hai. Ek coffee (c ) aur ek muffin (m ) ki price nikalo.
Forecast: coffees usually muffins se zyada cost karti hain, close to ₹100 each — solve karne se pehle guess karo.
Step 1 — Model banao. { 2 c + 1 m = 230 1 c + 3 m = 290 , toh A = ( 2 1 1 3 ) , b = ( 230 290 ) .
Yeh step kyun? Har column hai "us item ki kitni per combo"; b rupees hai. c , m ke units ₹ mein aate hain.
Step 2 — det A . ( 2 ) ( 3 ) − ( 1 ) ( 1 ) = 6 − 1 = 5 .
Yeh step kyun? Nonzero ⇒ do combos genuinely independent info dete hain, toh prices uniquely pin down hoti hain.
Step 3 — c . A 1 = ( 230 290 1 3 ) , det A 1 = ( 230 ) ( 3 ) − ( 1 ) ( 290 ) = 690 − 290 = 400 . Toh c = 5 400 = 80 (₹).
Yeh step kyun? Coffee-column (column 1) ko rupee-vector b se cover karo; box ratio coffee price isolate karta hai, kyunki c hai "column 1 ka kitna hissa" b banata hai.
Step 4 — m . A 2 = ( 2 1 230 290 ) , det A 2 = ( 2 ) ( 290 ) − ( 230 ) ( 1 ) = 580 − 230 = 350 . Toh m = 5 350 = 70 (₹).
Yeh step kyun? Muffin-column (column 2) ko b se cover karo; us box ko det A se divide karna muffin price ₹ mein deta hai.
Verify (units + values): Combo A = 2 ( 80 ) + 70 = 160 + 70 = 230 ✓ ₹, Combo B = 80 + 3 ( 70 ) = 80 + 210 = 290 ✓ ₹. Dono answers positive aur sensibly priced hain.
Kin value(s) of k par { k x + 2 y = 4 3 x + k y = 6 ka unique solution nahi hoga ? Isko k = 4 par solve karo.
Forecast: unique solution tab exist karta hai jab det A = 0 . "Fail" cases woh roots hain jahan det A = 0 hota hai. Guess karo kitne aisa k hote hain.
Step 1 — det A as a function of k . A = ( k 3 2 k ) , det A = k ⋅ k − ( 2 ) ( 3 ) = k 2 − 6 .
Yeh step kyun? Denominator ab k par depend karta hai; jahan bhi yeh vanish kare, Invertible Matrix Theorem kehta hai koi unique solution nahi.
Step 2 — Bad k nikalo. k 2 − 6 = 0 ⇒ k = ± 6 .
Yeh step kyun? Yeh exactly woh values hain jo column-box ko zero volume pe flatten kar deti hain — Cramer wahan ruk jaata hai.
Step 3 — k = 4 par solve karo (safe hai, kyunki 16 − 6 = 10 = 0 ). det A = 10 .
A 1 = ( 4 6 2 4 ) , det A 1 = 16 − 12 = 4 , toh x = 10 4 = 5 2 .
A 2 = ( 4 3 4 6 ) , det A 2 = 24 − 12 = 12 , toh y = 10 12 = 5 6 .
Yeh step kyun? k = 4 ke saath box non-flat hai, toh hum rule run kar sakte hain: column 1 ko b se cover karo aur det A se divide karo x ke liye, column 2 ko b se cover karo aur divide karo y ke liye — ratios actual solution dete hain.
Verify: 4 ( 5 2 ) + 2 ( 5 6 ) = 5 8 + 12 = 5 20 = 4 ✓, 3 ( 5 2 ) + 4 ( 5 6 ) = 5 6 + 24 = 5 30 = 6 ✓.
Recall Quick self-check
Do identical equations x + y = 1 , x + y = 1 ka system kis cell mein aata hai, aur Cramer kya kehta hai?
::: Cell D' — det A = 0 aur har numerator bhi 0 hai, toh yeh 0/0 / infinitely-many-solutions branch hai (contrast karo Example 4 ke nonzero-over-zero contradiction se).
Recall Har cell, ek line each
Cell A clean positive ::: unique tidy answer, Example 1 deta hai ( 2 , 3 ) .
Cell B mixed signs ::: fractions theek hain, Example 2 deta hai ( 7 41 , − 7 3 ) .
Cell C zero entry ::: axis-aligned box, Example 3 deta hai ( 3 , − 2 ) .
Cell D det A = 0 inconsistent ::: nonzero/zero ⇒ no solution; rule ruk jaata hai, Example 4.
Cell D' det A = 0 dependent ::: zero/zero ⇒ infinitely many, Example 4b.
Cell E near-singular ::: x , y → ± ∞ jaise ε → 0 , Example 5.
Cell F 3×3 ::: char determinants, Example 6 deta hai ( 7 26 , − 7 11 , 7 24 ) .
Cell G geometry ::: line intersection ( 1 , 2 ) , Example 7.
Cell H word problem ::: coffee ₹80, muffin ₹70, Example 8.
Cell I parameter ::: k = ± 6 par fail karta hai; k = 4 par deta hai ( 5 2 , 5 6 ) , Example 9.
Cramer's rule — parent formula aur uska proof.
Determinants — har denominator ke peeche ka volume engine.
Cofactor Expansion — Example 6 mein 3×3 compute karne ke liye use hua.
Gaussian Elimination — Cells D aur D' mein reach karne ka tool.
Invertible Matrix Theorem — det A = 0 ⟺ unique solution (Cells D, D', I).
Matrix Inverse — Cramer adjugate via inverse hai jo b par apply hota hai.
Multilinear and Alternating Maps — kyun column swap karne par waise behave hota hai.