4.5.13 · D3 · Maths › Linear Algebra (Full) › Null space (kernel) and column space (image) — basis, dimens
Yeh page Null & Column space ka "no surprises" drill hai. Neeche ek map hai har tarah ki matrix ka jo is topic mein aa sakti hai. Phir hum har cell ke liye ek example work karte hain, taaki jab exam mein koi strange wala aaye, toh tum uska twin pehle se dekh chuke ho.
Definition Dono spaces, dobara stated — taaki yeh page akela khada rahe
Ek matrix A ∈ R m × n ke liye (ek machine jo input x ko output A x mein badal deti hai):
Column space Col ( A ) = { A x : x ∈ R n } = set of all reachable outputs = A ke columns ka span. Yeh output space R m mein rehta hai.
Null space Null ( A ) = { x : A x = 0 } = set of all inputs crushed to zero . Yeh input space R n mein rehta hai.
Upar "== double equals == " Obsidian ka highlight syntax hai — yeh sirf key phrase mark karta hai; marks ko ignore karo aur words padho. Hum ise throughout use karte hain taaki woh ek idea flag ho jo ek line mein miss nahi karna chahiye.
Hum ek matrix A ∈ R m × n ko do sawaalon se classify karte hain jo uske dono spaces ke baare mein sab kuch decide kar dete hain:
Shape: kya yeh tall hai (m > n , unknowns se zyada equations), square (m = n ), ya wide (m < n , equations se zyada unknowns)?
Rank: kya iske paas full column rank hai (r = n , har input column ek genuinely naya direction hai), full row rank (r = m , har output direction reachable hai), ya yeh rank-deficient hai (kuch columns dependent hain)?
Definition Woh words jo hum use karenge, ek baar define karke
(Reminder: neeche ==...== marks sirf Obsidian highlight hain — yeh visually key phrase flag karte hain, kuch mathematical nahi.)
m = rows ki sankhya = har output vector ka size. Output space hai R m .
n = columns ki sankhya = har input vector ka size. Input space hai R n .
r = rank ( A ) = row reduction ke baad pivots (leading 1's) ki sankhya = genuinely independent columns ki sankhya.
Ek pivot column mein RREF mein leading 1 hoti hai; ek free column mein nahi hoti — uska variable free hai ghoomne ke liye.
Nullity = n − r = free variables ki sankhya = dim Null ( A ) .
Yeh raha full grid. Har cell neeche ek example ka naam deta hai jo usse hit karta hai.
Shape \ Rank
Full column rank r = n
Rank-deficient r < min ( m , n )
Full row rank r = m
Tall m > n
Ex 1 (injective, trivial kernel)
Ex 2 (dependent columns)
— impossible if m > n *
Square m = n
Ex 3 (invertible)
Ex 4 (singular)
(same as full col rank)
Wide m < n
— impossible if m < n *
Ex 5 (deficient wide)
Ex 6 (surjective, fat kernel)
Neeche wala decision flow-chart wahi taxonomy hai jo visually draw ki gayi hai: shape se shuru karo, rank pe split karo, aur pair ( dim Col , dim Null ) pe land karo. Compute karne se pehle apni matrix ko isme trace karo — jis leaf pe pahuncho, wahi tumhara forecast hai.
Saath mein teen edge/extra cases jo har syllabus ko pasand hain:
Extra case
Example
Zero matrix (degenerate, sab kuch crushed)
Ex 7
Word problem (real-world reachability)
Ex 8
Exam twist (ek parameter t jo rank change kar deta hai)
Ex 9
Intuition Kyun do cells impossible* marked hain
Rank kabhi bhi m aur n mein se chhhote se zyada nahi ho sakta: tum zyada independent columns nahi rakh sakte jitni rows unhe hold karने ke liye hain, aur na hi zyada jitne columns hain. Toh r ≤ min ( m , n ) . Ek tall matrix (m > n ) kabhi r = m nahi rakh sakti; ek wide matrix (m < n ) kabhi r = n nahi rakh sakti. Yeh ek genuine theorem hai, hamare examples mein koi gap nahi.
Intuition Dono subspaces ki pictures, kisi bhi algebra se pehle
Neeche har example do geometric objects produce karta hai: Col ( A ) ek flat sheet hai (point, line, plane...) jo output space R m mein baith ta hai, aur Null ( A ) ek aur flat sheet hai jo input space R n mein baith ta hai. Agla figure woh do flavours dikhata hai jo tum sabse zyada miloge: ek column space jo R 3 mein ek plane hai (left) aur ek null space jo R 3 mein ek line hai (right). Yeh picture apne dimaag mein rakho — numbers dim Col aur dim Null sirf itna hai ki "har sheet ke kitne dimensions hain."
A = 1 1 0 0 1 1 ( m = 3 , n = 2 ) .
Col ( A ) aur Null ( A ) ke bases aur dimensions nikalo.
Forecast: Columns se zyada rows hain. Guess karo: kitne free variables ho sakte hain, aur iska null space ko kya force karta hai?
Step 1 — Row reduce. R 2 → R 2 − R 1 , phir R 3 → R 3 − R 2 :
1 0 0 0 1 1 → 1 0 0 0 1 0 = R .
Yeh step kyun? RREF expose karta hai ki kaun se columns pivots hold karte hain; yahi ek reliable independence test hai.
Step 2 — Pivots padho. Columns 1 aur 2 pivot columns hain, toh r = 2 . Koi free columns nahi hain.
Yeh step kyun? Free columns null-space freedom ka source hain; agar koi nahi hai, toh kernel sirf ek single point hone ko forced hai.
Step 3 — Column space. Original A se pivot columns lo: {( 1 , 1 , 0 ) ⊤ , ( 0 , 1 , 1 ) ⊤ } , toh dim Col ( A ) = 2 . Yeh R 3 ke andar tilted ek 2-D plane hai.
Yeh step kyun? Row operations column entries ko move kar dete hain; sirf original columns true output directions mein point karte hain. Dekho Row reduction & RREF .
Step 4 — Null space. Koi free variables nahi ⇒ A x = 0 ka ek hi solution hai x = 0 . Toh Null ( A ) = { 0 } , dim = 0 . Yeh map injective hai.
Yeh step kyun? Jab har variable ek pivot se pin ho, toh vary karne ke liye kuch nahi bachta; kernel origin ke alawa koi direction contain nahi kar sakta, aur yahi exactly "injective" (koi do inputs ek output share nahi karte) ka matlab hai.
Verify: r + nullity = 2 + 0 = 2 = n . ✓ Aur A ( 0 , 0 ) ⊤ = ( 0 , 0 , 0 ) ⊤ ek hi crush hai. Kyunki r = 2 < 3 = m , yeh map not surjective hai — yeh R 3 ka zyada hissa miss kar deti hai.
Neeche wali figure yeh case draw karti hai: do accent-red original columns aur woh plane jo woh R 3 ke andar sweep karte hain. Origin pe woh akela black dot notice karo — woh lone point hi poora null space hai, "trivial kernel" ka geometric meaning.
A = 1 2 3 2 4 6 ( m = 3 , n = 2 ) .
Forecast: Kuch bhi touch karne se pehle dono columns dekho. Kya tumhe already koi dependence dikh rahi hai?
Step 1 — Dependence spot karo. Column 2 = 2 × column 1. Toh columns independent nahi hain.
Yeh step kyun? 80/20 trick: ek obvious multiple relation rank instantly bata deta hai aur full reduction bachata hai.
Step 2 — Row reduce to confirm. R 2 → R 2 − 2 R 1 , R 3 → R 3 − 3 R 1 :
1 0 0 2 0 0 = R .
Ek pivot ⇒ r = 1 .
Yeh step kyun? Row 1 ke multiples subtract karne se neeche ki rows exactly zero hoti hain kyunki woh uske multiples thin — ek single nonzero row par collapse hona iska visible proof hai ki sirf ek pivot bachta hai.
Step 3 — Column space. Sirf column 1 mein pivot ⇒ Col ( A ) = span {( 1 , 2 , 3 ) ⊤ } , R 3 mein ek single line. dim = 1 .
Yeh step kyun? Column 2 kuch naya add nahi karta — yeh usi line par lie karta hai.
Step 4 — Null space. Free variable x 2 . Row 1 deta hai x 1 + 2 x 2 = 0 ⇒ x 1 = − 2 x 2 . x 2 = 1 set karo: special solution ( − 2 , 1 ) ⊤ . Toh Null ( A ) = span {( − 2 , 1 ) ⊤ } , dim = 1 .
Yeh step kyun? Single free variable ko 1 set karna woh ek direction generate karta hai jisme kernel move karne ke liye free hai; har null vector uska multiple hai.
Verify: r + nullity = 1 + 1 = 2 = n . ✓ Plug back karo: A ( − 2 , 1 ) ⊤ = − 2 ( 1 , 2 , 3 ) ⊤ + ( 2 , 4 , 6 ) ⊤ = ( 0 , 0 , 0 ) ⊤ . ✓
A = [ 2 1 1 1 ] ( m = n = 2 ) .
Forecast: Independent columns wali square matrix — compute karne se pehle dono dimensions kya hain?
Step 1 — Top-left pivot 1 banao. R 1 → R 1 − R 2 :
[ 2 1 1 1 ] → [ 1 1 0 1 ] .
Yeh step kyun? Row 2 ko Row 1 se subtract karna leading entry ko clean 1 mein turn karta hai aur saath hi ( 1 , 2 ) entry clear karta hai — ek hi move column 1 mein pivot set up kar deta hai.
Step 2 — Pehle pivot ke neeche clear karo. R 2 → R 2 − R 1 :
[ 1 1 0 1 ] → [ 1 0 0 1 ] = R .
Do pivots ⇒ r = 2 .
Yeh step kyun? Naye row 1 ko row 2 se subtract karna pehle pivot ke neeche entry zero kar deta hai; bacha hua second row already second pivot carry karta hai, toh hum exactly identity par land karte hain. RREF mein identity tak pahunchna ek invertible square matrix ki pehchaan hai.
Step 3 — Column space. Dono columns pivots hain ⇒ Col ( A ) = R 2 , dim = 2 . Har output reachable ⇒ surjective.
Yeh step kyun? Do independent pivot columns poore 2-D output space ko span karte hain, toh R 2 mein kuch bhi out of reach nahi hai.
Step 4 — Null space. Koi free variables nahi ⇒ Null ( A ) = { 0 } , dim = 0 ⇒ injective.
Yeh step kyun? Har variable ek pivot variable hai, toh A x = 0 sab ko 0 par pin kar deta hai — kernel ek single point hai.
Verify: r + nullity = 2 + 0 = 2 = n . ✓ Determinant = 2 ⋅ 1 − 1 ⋅ 1 = 1 = 0 invertibility confirm karta hai, jo trivial kernel aur full column space force karta hai.
A = 1 2 1 2 4 1 3 6 1 ( m = n = 3 ) .
Forecast: Row 2, Row 1 ka multiple hai. Kya isse tumhara ek pivot jaayega? Nullity predict karo.
Step 1 — Row reduce. R 2 → R 2 − 2 R 1 (row 2 kill karo), R 3 → R 3 − R 1 :
1 0 0 2 0 − 1 3 0 − 2 swap R 2 , R 3 1 0 0 2 − 1 0 3 − 2 0 .
Row 2 normalize karo (× − 1 ) aur upar clear karo: R 1 → R 1 − 2 R 2 :
1 0 0 0 1 0 − 1 2 0 = R .
Columns 1,2 mein pivots ⇒ r = 2 .
Yeh step kyun? 2 R 1 subtract karna row 2 zero kar deta hai kyunki woh 2 × row 1 thi; swap phir surviving nonzero row ko upar move karta hai taaki pivots diagonal par line up ho jaayein — yeh standard tidy-up hai jo free-variable formulas readable banata hai.
Step 2 — Column space. Original A se pivot columns: {( 1 , 2 , 1 ) ⊤ , ( 2 , 4 , 1 ) ⊤ } , dim = 2 . R 3 mein ek plane.
Yeh step kyun? Column 3 free hai, toh woh pehle do par depend karta hai — koi naya output direction add nahi karta.
Step 3 — Null space. Free variable x 3 . R se: x 1 = x 3 , x 2 = − 2 x 3 . x 3 = 1 set karo: ( 1 , − 2 , 1 ) ⊤ . dim Null = 1 .
Yeh step kyun? Akela free variable woh single dial hai jo kernel ghuma sakta hai; use 1 set karna woh ek basis direction read off karta hai.
Verify: r + nullity = 2 + 1 = 3 = n . ✓ A ( 1 , − 2 , 1 ) ⊤ = ( 1 − 4 + 3 , 2 − 8 + 6 , 1 − 2 + 1 ) ⊤ = ( 0 , 0 , 0 ) ⊤ . ✓ Determinant 0 hai (singular), nontrivial kernel ke saath consistent.
A = [ 1 2 2 4 1 1 3 5 ] ( m = 2 , n = 4 ) .
Forecast: Wide matrix, toh n − r kam se kam n − m = 2 hai. Kya yeh aur bhi bada ho sakta hai? Nullity guess karo.
Step 1 — Row reduce. R 2 → R 2 − 2 R 1 :
[ 1 0 2 0 1 − 1 3 − 1 ] .
Column 3 mein pivot ke upar clear karo: R 1 → R 1 + R 2 , phir R 2 → − R 2 :
[ 1 0 2 0 0 1 2 1 ] = R .
Columns 1,3 mein pivots ⇒ r = 2 .
Yeh step kyun? R 2 se 2 R 1 subtract karna pehla entry cancel karta hai taaki next pivot column 3 mein appear ho (column 2 zero ho gaya, use free bana ke); phir R 2 ko wapas R 1 mein add karna us pivot ke upar entry clear karta hai taaki har pivot column ek clean unit column ho — exactly yahi free variables ke formulas readable banata hai x 1 , x 3 ko.
Step 2 — Column space. Original columns 1,3: {( 1 , 2 ) ⊤ , ( 1 , 1 ) ⊤ } . Yeh independent hain ⇒ Col ( A ) = R 2 , dim = 2 . Chhote output space par surjective.
Yeh step kyun? Do independent columns already 2-D output space fill kar dete hain, toh R 2 mein har target reachable hai.
Step 3 — Null space. Free variables x 2 , x 4 . R se: x 1 = − 2 x 2 − 2 x 4 , x 3 = − x 4 .
x 2 = 1 , x 4 = 0 : s 1 = ( − 2 , 1 , 0 , 0 ) ⊤ .
x 2 = 0 , x 4 = 1 : s 2 = ( − 2 , 0 , − 1 , 1 ) ⊤ .
dim Null = 2 .
Yeh step kyun? Do free variables ka matlab do independent dials hain; ek ek ko akele turn karna (baaki 0 ) do basis null vectors produce karta hai.
Verify: r + nullity = 2 + 2 = 4 = n . ✓ s 2 check karo: A s 2 = − 2 ( 1 , 2 ) ⊤ + 0 + ( − 1 ) ( 1 , 1 ) ⊤ + ( 3 , 5 ) ⊤ = ( − 2 − 1 + 3 , − 4 − 1 + 5 ) ⊤ = ( 0 , 0 ) ⊤ . ✓
A = [ 1 0 0 1 2 3 ] ( m = 2 , n = 3 ) .
Forecast: Already almost RREF mein hai. Yeh sabse clean wide case hai: ek nazar mein dono spaces predict karo.
Step 1 — Pivots padho. Already RREF: columns 1,2 mein pivots ⇒ r = 2 = m . Full row rank.
Yeh step kyun? Koi row operation zaroori nahi — leading 1's already apne columns mein akele baith ti hain, toh hum directly pivots padh sakte hain.
Step 2 — Column space. Pivot columns ( 1 , 0 ) ⊤ , ( 0 , 1 ) ⊤ sab R 2 span karte hain ⇒ Col ( A ) = R 2 , dim = 2 . Har output reachable ⇒ surjective.
Yeh step kyun? r = m exactly surjectivity ki condition hai — dekho Injective and surjective linear maps .
Step 3 — Null space. Free variable x 3 . x 1 = − 2 x 3 , x 2 = − 3 x 3 . x 3 = 1 set karo: ( − 2 , − 3 , 1 ) ⊤ . dim Null = 1 .
Yeh step kyun? Single free variable kernel ki woh ek direction furnish karta hai; har crushed input uska multiple hai.
Verify: r + nullity = 2 + 1 = 3 = n . ✓ A ( − 2 , − 3 , 1 ) ⊤ = ( − 2 + 2 , − 3 + 3 ) ⊤ = ( 0 , 0 ) ⊤ . ✓
Neeche wali figure yeh null space dikhati hai: direction ( − 2 , − 3 , 1 ) mein R 3 mein origin se guzarti ek single accent-red line . Us line par har point A mein feed hota hai aur zero vector nikalti hai — poori line "wasted input" hai.
A = [ 0 0 0 0 ] ( m = n = 2 ) .
Forecast: Machine jo bhi feed karo zero output karti hai. Col kya hai, Null kya hai?
Step 1 — Rank. Koi pivots nahi ⇒ r = 0 .
Yeh step kyun? Har column zero hai, isliye dependent; kahin bhi koi leading 1 nahi hai.
Step 2 — Column space. Zero columns ka span sirf { 0 } hai ⇒ dim Col = 0 . Sirf reachable output 0 hai.
Yeh step kyun? Sab-zero columns se sirf zero vector build ho sakta hai.
Step 3 — Null space. Har x satisfy karta hai A x = 0 ⇒ Null ( A ) = R 2 , dim = 2 . Dono ( 1 , 0 ) , ( 0 , 1 ) ek basis hain.
Yeh step kyun? Koi pivots nahi hain, toh dono variables free hain, isliye kernel poora input space fill karta hai.
Verify: r + nullity = 0 + 2 = 2 = n . ✓ Yeh matrix ka extreme end hai: kuch bhi reachable nahi, sab kuch crushed.
Ek juice bar do drinks banata hai. Har Green mein 2 apples aur 1 kale lagte hain; har Gold mein 4 apples aur 2 kale. Agar tum g Greens aur d Golds banate ho, toh kul use hua (apples, kale) hai
A [ g d ] , A = [ 2 1 4 2 ] .
(a) Kaun se (apples, kale) totals achievable hain? (b) Kaun si recipes kuch waste nahi karti doosre ke comparison mein — yaani same total deti hain?
Forecast: Gold mein Green se exactly do guna sab kuch lagta hai. Kya tum expect karte ho ki achievable totals poora plane fill karein, ya ek line?
Step 1 — Rank. Column 2 = 2 × column 1 ⇒ r = 1 .
Yeh step kyun? Dependent columns ka matlab hai ki dono drinks resource space mein ek hi direction mein kheenchti hain.
Step 2 — (a) Column space. Col ( A ) = span {( 2 , 1 ) ⊤ } : ek line. Sirf woh totals achievable hain jinka apple-to-kale ratio 2 : 1 hai. Tum kabhi ( 3 , 3 ) ka total produce nahi kar sakte — yeh Col ( A ) mein nahi hai. (Solvable iff b ∈ Col ( A ) ; dekho Solving Ax=b .)
Yeh step kyun? Achievable set by definition columns ka span hai; rank 1 ke saath woh span ek single line hai, toh line se bahar koi bhi target impossible hai chahe kitni bhi drinks banao.
Step 3 — (b) Null space. Solve karo 2 g + 4 d = 0 ⇒ g = − 2 d . Special solution ( − 2 , 1 ) ⊤ .
Interpreted: "− 2 Greens ke badle + 1 Gold" swap karna resource total mein kuch nahi badlata — ek Gold do Greens ka resource use karta hai. Woh direction null space hai.
Yeh step kyun? Null space exactly woh recipe changes ka set hai jo resource total fix rakhti hain; A x = 0 solve karna unhe dhundh ta hai, aur free variable d woh ek trade direction deta hai.
Verify: r + nullity = 1 + 1 = 2 = n . ✓ A ( − 2 , 1 ) ⊤ = ( − 4 + 4 , − 2 + 2 ) ⊤ = ( 0 , 0 ) ⊤ : resource-neutral trade. ✓
Neeche wali figure resource plane draw karti hai: accent-red achievable totals ki line (sab 2 : 1 ratio mein) aur black dot ( 3 , 3 ) par jo us line se bahar hai — geometric reason ki ( 3 , 3 ) kabhi produce nahi ho sakta.
A ( t ) = [ 1 2 2 t ] ( m = n = 2 ) .
Kis value of t par null space nontrivial ho jaata hai? Dono regimes mein bases do.
Forecast: Zyaatar t ke liye columns independent hain. Exactly ek "bura" t hai jahan second row collapse ho jaati hai. Use guess karo.
Step 1 — Parameter ke saath row reduce. R 2 → R 2 − 2 R 1 :
[ 1 0 2 t − 4 ] .
Yeh step kyun? Row 2 mein pivot tabhi exist karta hai jab entry t − 4 nonzero ho. Parameters aisi entries par jeete ya marte hain, toh t − 4 isolate karna poori kahaani bata deta hai.
Step 2 — Case t = 4 . Toh t − 4 = 0 ⇒ do pivots ⇒ r = 2 . Col = R 2 , Null = { 0 } , nullity 0 . Invertible.
Yeh step kyun? Nonzero ( 2 , 2 ) entry second pivot ban jaati hai, toh koi variable free nahi hai aur map ek saath injective aur surjective hai.
Step 3 — Case t = 4 . Toh row 2 all zeros ho jaati hai ⇒ r = 1 . Column space = span {( 1 , 2 ) ⊤ } . Free variable x 2 : x 1 + 2 x 2 = 0 ⇒ x 1 = − 2 x 2 . Special solution ( − 2 , 1 ) ⊤ . Nullity = 1 .
Yeh step kyun? Critical t par second row gaayab ho jaati hai, rank drop karta hai; ab-free variable x 2 ek one-dimensional kernel khol deta hai.
Verify: t = 4 par, det A = 1 ⋅ 4 − 2 ⋅ 2 = 0 (singular) ⇒ nontrivial kernel, consistent. A ( 4 ) ( − 2 , 1 ) ⊤ = ( − 2 + 2 , − 4 + 4 ) ⊤ = ( 0 , 0 ) ⊤ . ✓ Maano t = 5 : det = 5 − 4 = 1 = 0 , kernel trivial. ✓
Recall Kaun sa scenario kaun sa space force karta hai?
Full column rank (r = n ) ::: trivial null space, map injective.
Full row rank (r = m ) ::: column space poora R m hai, map surjective.
Wide matrix (m < n ) ::: nullity ≥ n − m > 0 , toh HAMESHA ek nonzero null vector hoga.
Zero matrix ::: rank 0 , null space poora input space hai.
Parameter jo pivot kill karta hai ::: rank girta hai, nullity badhta hai, determinant 0 ho jaata hai (agar square ho).
Mnemonic Woh ek identity jo har cell ke peechhe hai
Rank Plus Null equals n . Chahe shape ya sign kuch bhi ho, r + ( n − r ) = n har example close karta hai. Dekho Rank–Nullity Theorem .
Rank of a matrix — woh r jo har example mein count kiya gaya.
Rank–Nullity Theorem — har worked case ki check line.
Row reduction & RREF — woh engine jo pivots dhundha.
Linear independence and basis — kyun pivot columns ek basis hain.
Injective and surjective linear maps — Ex 1/3 (injective), Ex 3/6 (surjective).
Four fundamental subspaces — Col aur Null chaar mein se do hain.
Solving Ax=b — Ex 8 ka reachability sawal.