Vectors in ℝⁿ — operations, geometric interpretation
4.5.1· Maths › Linear Algebra (Full)
Vector in ℝⁿ KYA hota hai?
DO pictures KYO hain?
- Point ki tarah: tuple space mein ek address hai.
- Arrow ki tarah: yeh origin se us point tak ka displacement hai. Arrow picture hi woh hai jo hume add aur scale karne deti hai; point picture woh hai jo hume locate karne deti hai.
Do fundamental operations
Baaki sab kuch bilkul do operations se bana hai.
Length ko first principles se banana (norm)
Derivation ( mein, phir generalize): mein, ek right triangle ki hypotenuse hai jiske legs aur hain. Pythagoras se: .
mein, -plane mein jaao: us diagonal ki squared length hai, aur woh -leg se perpendicular hai. Pythagoras phir se apply karo: Yeh "ek nayi perpendicular axis at a time" baar repeat karne par milta hai:
Jis vector ki ho woh unit vector hai. Kisi bhi nonzero ko unit vector banana ho, toh normalize karo: (same direction, length 1).
Dot product — jahan geometry algebra se milti hai
Yeh ek single number arrows ke beech ka angle KYO encode karta hai? Ise Law of Cosines se derive karo. , , aur side se bane triangle ko consider karo: Ab left side ko aur bilinearity use karke expand karo:
= \|\mathbf u\|^2 - 2\,\mathbf u\cdot\mathbf v + \|\mathbf v\|^2.$$ Dono expressions equal karo; $\|\mathbf u\|^2$ aur $\|\mathbf v\|^2$ cancel ho jaate hain: $$-2\,\mathbf u\cdot\mathbf v = -2\|\mathbf u\|\|\mathbf v\|\cos\theta.$$ > [!formula] Dot product ka geometric meaning > $$\boxed{\;\mathbf u\cdot\mathbf v = \|\mathbf u\|\,\|\mathbf v\|\cos\theta\;}$$ > Isliye $\cos\theta = \dfrac{\mathbf u\cdot\mathbf v}{\|\mathbf u\|\|\mathbf v\|}$, aur importantly: > $$\mathbf u \perp \mathbf v \iff \mathbf u\cdot\mathbf v = 0.$$ ![[4.5.01-Vectors-in-Rn-—-operations,-geometric-interpretation.png]] --- ## Worked examples > [!example] 1 — Addition aur scaling > Maano $\mathbf u=(1,2)$, $\mathbf v=(3,-1)$. $2\mathbf u - \mathbf v$ nikalo. > - $2\mathbf u = (2,4)$ — *Kyun?* scalar multiplication component-wise hoti hai. > - $2\mathbf u - \mathbf v = (2-3,\;4-(-1)) = (-1,5)$ — *Kyun?* subtraction = $(-1)\mathbf v$ add karo, component-wise. > [!example] 2 — Length aur unit vector > $\mathbf w=(3,4)$. Toh $\|\mathbf w\|=\sqrt{3^2+4^2}=\sqrt{25}=5$. > - *Kyun?* Pythagoras: yeh ek 3–4 triangle ki hypotenuse hai. > - Unit vector: $\hat{\mathbf w}=\frac15(3,4)=(0.6,0.8)$. *5 se kyun divide kiya?* length se divide karne par exactly length 1 ho jaati hai, bina rotate kiye. > [!example] 3 — Vectors ke beech ka angle > $\mathbf a=(1,0,1)$, $\mathbf b=(0,1,1)$. > - $\mathbf a\cdot\mathbf b = 1\cdot0+0\cdot1+1\cdot1 = 1$ — *Kyun?* matching components ke products ka sum. > - $\|\mathbf a\|=\|\mathbf b\|=\sqrt2$ — *Kyun?* $\sqrt{1+0+1}$. > - $\cos\theta = \dfrac{1}{\sqrt2\cdot\sqrt2}=\tfrac12 \Rightarrow \theta=60^\circ$. > *Kyun?* boxed formula mein plug karo; $\arccos\frac12=60^\circ$. > [!example] 4 — Forecast-then-Verify > **Forecast:** kya $(2,-3)$ aur $(3,2)$ perpendicular hain? *Pehle guess karo!* > **Verify:** $2\cdot3 + (-3)\cdot2 = 6-6 = 0$. Haan — dot product zero $\Rightarrow$ perpendicular. ✓ --- ## Common mistakes (Steel-manned) > [!mistake] "Vectors addition ki tarah component-wise multiply hote hain." > **Kyun sahi lagta hai:** addition component-wise hai, toh symmetry se multiplication bhi component-wise honi chahiye, $(u_1v_1,\dots)$ deta hai. **Fix:** woh "product" geometrically useful nahi hai. Meaningful products hain **dot product** (ek *scalar* deta hai, angle encode karta hai) aur cross product (sirf $\mathbb{R}^3$ mein). Component-wise product yahan koi geometric meaning nahi rakhta. > [!mistake] "Dot product ek aur vector deta hai." > **Kyun sahi lagta hai:** ab tak ki har doosri operation ($+$, scaling) ek vector return karti hai. > **Fix:** $\mathbf u\cdot\mathbf v$ ek **single number (scalar)** hai — yeh alignment *measure* karta hai, yeh kisi taraf point nahi karta. Agar tumhe vector mila, toh tumne galat cheez compute ki. > [!mistake] "Normalize karne ka matlab mean subtract karna / length 0 karna hai." > **Kyun sahi lagta hai:** "normalize" statistics jaisa lagta hai. **Fix:** yahan normalize = *norm se divide karo* taaki length $1$ ho jaaye. Direction preserve rehti hai. --- > [!recall]- Feynman: ek 12-saal ke bachche ko explain karo > Socho ek treasure map hai. Ek vector ek instruction hai jaise "3 steps right aur 4 steps upar jao." > Do instructions **add** karne ke liye, tum bas ek follow karo phir doosri — aur right-steps aur up-steps alag alag kar sakte ho. **Length** woh hai kitna door tum actually straight line mein start se finish tak chale (3-right + 4-up = 5 steps seedha, classic triangle!). **Dot product** ek cleverness meter hai: agar do instructions same taraf point karti hain, toh yeh bada hai; agar woh right angle par cross karti hain, toh yeh exactly zero hai. Woh zero hi woh hai jis se computer "jaanta" hai ki do directions perpendicular hain. > [!mnemonic] Operations yaad karo > **"Add Across, Scale All, Length is the Long way (Pythagoras), Dot is Direction."** > Aur dot ke liye: **"Dot = product, Cross-axis = 0"** → matching components multiply hote hain, perpendicular ⇒ 0. --- ## Active-recall flashcards #flashcards/maths ℝⁿ mein vector kya hota hai? ::: Ek ordered $n$-tuple $(v_1,\dots,v_n)$ real numbers ka; geometrically ek point ya origin se ek arrow. ℝⁿ mein do vectors kaise add karte hain? ::: Component-wise: har $i$ ke liye $(u_i+v_i)$; geometrically tip-to-tail / parallelogram rule. Euclidean norm define karo. ::: $\|\mathbf v\|=\sqrt{\sum v_i^2}$, repeated Pythagoras se derive kiya gaya. Ek vector ko normalize kaise karte hain? ::: Uski length se divide karo: $\hat{\mathbf v}=\mathbf v/\|\mathbf v\|$, length 1 milti hai, same direction. Dot product define karo. ::: $\mathbf u\cdot\mathbf v=\sum u_i v_i$ — ek scalar. Dot product ka geometric meaning kya hai? ::: $\mathbf u\cdot\mathbf v=\|\mathbf u\|\|\mathbf v\|\cos\theta$. Do vectors perpendicular kab hote hain? ::: Jab $\mathbf u\cdot\mathbf v=0$ ho. $\mathbf v\cdot\mathbf v$ kya hai? ::: $\|\mathbf v\|^2$, squared length. Angle formula ka key cancellation derive karo. ::: $\|\mathbf u-\mathbf v\|^2$ ko do tarike se expand karo (Law of Cosines vs dot expansion); $\|\mathbf u\|^2,\|\mathbf v\|^2$ cancel ho jaate hain aur $\mathbf u\cdot\mathbf v=\|\mathbf u\|\|\mathbf v\|\cos\theta$ milta hai. $c<0$ se scaling geometrically kya karta hai? ::: Length ko $|c|$ se stretch karta hai aur direction flip karta hai. --- ## Connections - [[Linear Combinations and Span]] — addition + scaling spans ka engine hai. - [[Dot Product and Orthogonality]] — gehre consequences (projections, Cauchy–Schwarz). - [[Norms and Distance in Rn]] — length idea ko generalize karna. - [[Vector Spaces — Axioms]] — ℝⁿ woh prototype hai jise axioms abstract karte hain. - [[Projections and Orthogonal Decomposition]] — seedha $\mathbf u\cdot\mathbf v$ se build hota hai. - [[Cross Product (R3 only)]] — contrast: ek *vector*-valued product jo sirf 3D mein unique hai. ## 🖼️ Concept Map ```mermaid flowchart TD V[Vector in Rn as n-tuple] P[Point / address] A[Arrow / displacement] ADD[Vector addition] SCALE[Scalar multiplication] CW[Component-wise rule] PYTH[Pythagorean theorem] NORM[Euclidean norm / length] UNIT[Unit vector / normalize] DOT[Dot product] V -->|interpreted as| P V -->|interpreted as| A A -->|enables| ADD A -->|enables| SCALE ADD -->|defined| CW SCALE -->|defined| CW ADD -->|geometrically| A PYTH -->|applied per axis| NORM NORM -->|scale to length 1| UNIT DOT -->|self product gives| NORM DOT -->|sums products of| CW ``` ## 🔬 Deep Dive > [!intuition] Aur gehraai mein jao — visual, zero se > Is topic ke step-by-step 3Blue1Brown-style breakdowns. - [[4.5.01 D1 Foundations|D1 · Foundations — zero se har symbol]] - [[4.5.01 D2 Visual Walkthrough|D2 · Visual walkthrough — derivation pictures mein]] - [[4.5.01 D3 Worked Examples|D3 · Worked examples — har scenario]] - [[4.5.01 D4 Exercises|D4 · Exercises — graded, full solutions]] - [[4.5.01 D5 Question Bank|D5 · Question bank — concept traps]]