4.5.2 · D3 · Maths › Linear Algebra (Full) › Dot product — formula, cosine formula, Cauchy-Schwarz inequa
Intuition Yeh page kya hai
Parent note ne tumhe machine di thi.
Yahan hum usmein har tarah ka input daalte hain — positive overlap, negative overlap, perpendicular, zero vector, parallel vectors, ek real-world word problem, aur ek exam twist — taaki koi bhi case aisa na ho jo tumne pehle na dekha ho.
Reminders (sab parent mein banaye gaye hain):
Ek vector ek arrow hota hai components ke saath, jaise a = ( a 1 , a 2 ) : a 1 right jao, a 2 upar jao.
Dot product a ⋅ b = a 1 b 1 + a 2 b 2 + … — matching slots multiply karo, add karo.
Length ∥ a ∥ = a ⋅ a (Pythagoras).
Angle cos θ = ∥ a ∥∥ b ∥ a ⋅ b , jahan θ 0 ∘ aur 18 0 ∘ ke beech hota hai.
Neeche har worked example us cell ke saath tagged hai jo wo fill karta hai. Goal: poori table cover karna.
Cell
Case class
a ⋅ b ka sign
Angle θ
Example
C1
Acute — arrows ek hi taraf jhuke
positive
0 ∘ < θ < 9 0 ∘
Ex 1
C2
Right angle — perpendicular
zero
θ = 9 0 ∘
Ex 2
C3
Obtuse — arrows alag taraf jhuke
negative
9 0 ∘ < θ < 18 0 ∘
Ex 3
C4
Parallel same-way (C–S mein equality)
= + ∥ a ∥∥ b ∥
θ = 0 ∘
Ex 4
C5
Anti-parallel (equality, doosra sign)
= − ∥ a ∥∥ b ∥
θ = 18 0 ∘
Ex 4
C6
Degenerate — ek vector 0 hai
= 0 lekin perpendicular nahi
undefined
Ex 5
C7
Higher dimension (R 3 / R 4 )
koi bhi
koi bhi
Ex 6
C8
Real-world word problem (work / teamwork)
koi bhi
koi bhi
Ex 7
C9
Exam twist — unknown ke liye solve karo
ek value pe forced
forced
Ex 8
C10
Cauchy–Schwarz sanity, strict vs equality
—
—
Ex 9
Worked example Positive overlap
a = ( 3 , 1 ) , b = ( 1 , 2 ) . a ⋅ b aur angle θ nikalo.
Forecast: dono arrows upar-aur-right point kar rahe hain, toh guess karo positive dot product aur angle 9 0 ∘ se kam .
a ⋅ b = 3 ⋅ 1 + 1 ⋅ 2 = 3 + 2 = 5.
Yeh step kyun? Component formula: matching slots multiply karo, add karo. Positive hai, jaise forecast kiya tha.
∥ a ∥ = 3 2 + 1 2 = 10 , ∥ b ∥ = 1 2 + 2 2 = 5 .
Yeh step kyun? Length = a ⋅ a ; cos θ expose karne ke liye lengths chahiye.
cos θ = 10 5 5 = 50 5 = 5 2 5 = 2 1 .
Yeh step kyun? cos θ ke liye geometric formula rearrange karne se angle isolate hota hai.
θ = arccos ( 2 1 ) = 4 5 ∘ .
Yeh step kyun? arccos jawaab deta hai "kis angle ka yeh cosine hai?" — yeh cosine ko undo karta hai.
Verify: 0 ∘ < 4 5 ∘ < 9 0 ∘ ✔ acute, positive dot product se match karta hai. Figure dekho — arrows clearly ek hi taraf jhuke hain.
Worked example Zero dot product = perpendicular
a = ( 2 , 3 ) , b = ( 3 , − 2 ) . Kya ye perpendicular hain?
Forecast: components swap karo aur ek sign flip karo — yeh classic "rotate 9 0 ∘ " trick hai. Guess: haan, perpendicular .
a ⋅ b = 2 ⋅ 3 + 3 ⋅ ( − 2 ) = 6 − 6 = 0.
Yeh step kyun? Agar sum exactly 0 hai, toh cos θ = 0 , jo θ = 9 0 ∘ force karta hai.
Dono vectors nonzero hain, toh zero kisi zero input ki wajah se nahi — yeh genuine perpendicularity hai.
Yeh step kyun? Yeh subtle case hai: a ⋅ b = 0 ka matlab perpendicular tabhi hota hai jab koi bhi vector 0 na ho (Ex 5 dekho).
Verify: ∥ a ∥ = 13 , ∥ b ∥ = 13 , dono nonzero hain. Dot product 0 ⇒ θ = 9 0 ∘ ✔. Figure mein arrows ek clean corner banate hain.
Worked example Negative overlap
a = ( 1 , 2 ) , b = ( − 3 , 1 ) . θ nikalo.
Forecast: b upar-aur-left point karta hai jabki a upar-aur-right — yeh alag taraf jhuke hain. Guess karo negative dot product aur θ > 9 0 ∘ .
a ⋅ b = 1 ⋅ ( − 3 ) + 2 ⋅ 1 = − 3 + 2 = − 1.
Yeh step kyun? Negative sum ⇒ negative cos θ ⇒ obtuse angle, jaise forecast kiya tha.
∥ a ∥ = 5 , ∥ b ∥ = 10 .
Yeh step kyun? Cosine formula ke liye lengths chahiye.
cos θ = 5 10 − 1 = 50 − 1 = 5 2 − 1 ≈ − 0.1414.
Yeh step kyun? Angle isolate karo. cos θ ka sign "alag taraf jhukne" ki information carry karta hai.
θ = arccos ( − 0.1414 ) ≈ 98.1 3 ∘ .
Yeh step kyun? Negative number ka arccos automatically ( 9 0 ∘ , 18 0 ∘ ) mein aata hai — koi quadrant fix nahi chahiye, kyunki θ sirf [ 0 ∘ , 18 0 ∘ ] pe define hota hai.
Verify: θ ≈ 98.1 3 ∘ > 9 0 ∘ ✔ obtuse, negative dot product se match karta hai.
Worked example Cauchy–Schwarz ke do equality cases
Lo a = ( 2 , 4 ) .
Case C4: b = ( 1 , 2 ) (same direction, a = 2 b ).
Case C5: c = ( − 1 , − 2 ) (opposite direction, a = − 2 c ).
Forecast: parallel vectors mein ∣ cos θ ∣ = 1 hota hai, toh Cauchy–Schwarz ek equality hona chahiye, strict inequality nahi. Same-way → + ; opposite → − .
a ⋅ b = 2 ⋅ 1 + 4 ⋅ 2 = 2 + 8 = 10. Aur ∥ a ∥∥ b ∥ = 20 ⋅ 5 = 100 = 10.
Yeh step kyun? Hum equality test karne ke liye dot product ko length-product se compare karte hain.
Toh cos θ = 10 10 = 1 ⇒ θ = 0 ∘ — perfectly aligned (C4).
Yeh step kyun? cos θ = 1 sirf ek value hai jo θ = 0 deti hai; arrows direction mein overlap karte hain.
a ⋅ c = 2 ( − 1 ) + 4 ( − 2 ) = − 2 − 8 = − 10. Aur ∥ a ∥∥ c ∥ = 20 ⋅ 5 = 10.
Yeh step kyun? Same magnitudes, lekin sign flip hota hai kyunki arrow reverse ho gaya hai.
cos θ = 10 − 10 = − 1 ⇒ θ = 18 0 ∘ — anti-parallel (C5).
Yeh step kyun? cos θ = − 1 θ = 18 0 ∘ pe unique value hai.
Verify: Dono cases mein ∣ a ⋅ b ∣ = ∥ a ∥∥ b ∥ = 10 — Cauchy–Schwarz mein equality exactly tab jab parallel ho ✔. Ex 9 se compare karo, jahan yeh strict hai.
a ⋅ b = 0 hamesha "perpendicular" kyun nahi hota
a = ( 5 , − 7 ) , b = 0 = ( 0 , 0 ) . a ⋅ b kya hai, aur angle kya hai?
Forecast: log reflexively kehte hain "0 dot product ⇒ perpendicular." Lekin zero-length arrow ki koi direction nahi hoti — toh baat karne ke liye koi angle hi nahi. Guess: dot product 0 , lekin "perpendicular" yahan meaningless hai.
a ⋅ b = 5 ⋅ 0 + ( − 7 ) ⋅ 0 = 0.
Yeh step kyun? Har term mein 0 ka factor hai, toh sum collapse hokar 0 ho jaata hai.
Angle formula try karo: cos θ = ∥ a ∥ ⋅ 0 0 = 0 0 — undefined .
Yeh step kyun? ∥ b ∥ = 0 denominator mein aata hai. Zero se division ka matlab hai koi angle exist nahi karta.
Conclusion: a ⋅ 0 = 0 kisi bhi a ke liye hota hai, lekin yeh ek degenerate zero hai, perpendicularity nahi.
Yeh step kyun? Asli perpendicularity (Ex 2) ke liye dono vectors nonzero hone chahiye.
Verify: Koi doosra a lo, jaise ( 100 , 3 ) : a ⋅ 0 = 0 phir bhi. Zero output b = 0 se forced hai, direction se independent ✔.
a ⋅ b = 0 ⇒ perpendicular" — hamesha?
Kyun sahi lagta hai: yeh headline rule hai.
Fix: Yeh tabhi hold karta hai jab dono vectors nonzero hon . Zero vector ke saath dot product trivial reason se 0 hota hai, aur koi angle define nahi hota.
Worked example Wahi machine
R 4 mein
a = ( 1 , − 1 , 2 , 0 ) , b = ( 3 , 1 , 1 , 4 ) R 4 mein. a ⋅ b aur cos θ nikalo.
Forecast: Hum 4D draw nahi kar sakte, lekin formula ko koi fark nahi padta — yeh sirf char products sum karta hai. Yahan algebraic definition apna kamal dikhaati hai (parent ne yeh stress kiya tha).
a ⋅ b = 1 ⋅ 3 + ( − 1 ) ⋅ 1 + 2 ⋅ 1 + 0 ⋅ 4 = 3 − 1 + 2 + 0 = 4.
Yeh step kyun? Component formula kisi bhi dimension tak extend hota hai — har coordinate ke liye ek slot.
∥ a ∥ = 1 + 1 + 4 + 0 = 6 , ∥ b ∥ = 9 + 1 + 1 + 16 = 27 = 3 3 .
Yeh step kyun? ∥ ⋅ ∥ = x ⋅ x har dimension mein hold karta hai.
cos θ = 6 ⋅ 3 3 4 = 3 18 4 = 9 2 4 ≈ 0.3143.
Yeh step kyun? Geometric formula abhi bhi R 4 mein ek angle define karta hai — aur Cauchy–Schwarz (parent §3) exactly yahi guarantee karta hai ki yeh ratio [ − 1 , 1 ] mein rahe.
θ = arccos ( 0.3143 ) ≈ 71.6 8 ∘ .
Verify: Cauchy–Schwarz check: ∣ a ⋅ b ∣ = 4 aur ∥ a ∥∥ b ∥ = 3 18 ≈ 12.73 , toh 4 ≤ 12.73 ✔ — cosine safely [ − 1 , 1 ] ke andar hai. Abstract versions ke liye Inner product spaces bhi dekho.
Worked example Force dwara kiya gaya work
Ek box par force F = ( 6 , 2 ) newtons lagti hai jabki yeh displacement d = ( 4 , 0 ) metres ke along slide karta hai. Work define hota hai W = F ⋅ d (joules). W compute karo, aur dekho kitni force actually helpful rahi.
Forecast: sirf force ka woh part jo motion ke along ho, work karta hai. Force thoda upar jhuki hui hai, toh kuch "waste" ho raha hai. Guess karo W thoda kam hoga ∣ F ∣ ⋅ ∣ d ∣ se.
W = F ⋅ d = 6 ⋅ 4 + 2 ⋅ 0 = 24 joules.
Yeh step kyun? Work hai hi ek dot product — yeh force-in-the-direction-of-motion measure karta hai, exactly wahi jo dot product karta hai.
∥ F ∥ = 36 + 4 = 40 = 2 10 , ∥ d ∥ = 4.
Yeh step kyun? Angle aur "useful fraction" nikalne ke liye yeh chahiye.
cos θ = 2 10 ⋅ 4 24 = 8 10 24 = 10 3 ≈ 0.9487 , θ ≈ 18.4 3 ∘ .
Yeh step kyun? Angle batata hai ki push kitna well aligned hai slide ke saath.
Force component along d : ∥ F ∥ cos θ = 2 10 ⋅ 10 3 = 6 N. Yeh F ka d pe projection hai.
Yeh step kyun? W = ( useful force ) × ( distance ) = 6 × 4 = 24 J — step 1 se match karta hai, ek achha consistency check.
Verify: Units: N·m = J ✔. Agar force seedha upar hoti (F = ( 0 , 2 ) ), toh W = ( 0 ) ( 4 ) + ( 2 ) ( 0 ) = 0 — koi work nahi, sahi hai, kyunki motion ke sideways push karne se kuch nahi hota ✔.
k ki value nikalo jo vectors ko perpendicular banaye
k ki kaun si value(s) ke liye a = ( k , 3 ) aur b = ( k , − 12 ) perpendicular hain?
Forecast: perpendicular ⇔ dot product = 0 . Yeh k mein ek equation hai — likely quadratic, toh do answers expect karo.
Perpendicular condition: a ⋅ b = 0 .
Yeh step kyun? Yeh right angle ka defining test hai (humari solutions ke liye dono vectors nonzero honge).
a ⋅ b = k ⋅ k + 3 ⋅ ( − 12 ) = k 2 − 36.
Yeh step kyun? Component formula symbolically apply karo, k ko unknown rakhte hue.
Set karo k 2 − 36 = 0 ⇒ k 2 = 36 ⇒ k = ± 6.
Yeh step kyun? Quadratic dono signs deta hai — common exam trap hai k = − 6 drop karna.
Verify:
k = 6 : a = ( 6 , 3 ) , b = ( 6 , − 12 ) , dot = 36 − 36 = 0 ✔.
k = − 6 : a = ( − 6 , 3 ) , b = ( − 6 , − 12 ) , dot = 36 − 36 = 0 ✔.
Dono mein nonzero vectors hain, toh dono genuine right angles (orthogonal) hain ✔.
Worked example Inequality ko tight hote dekhna
Do pairs ko ∣ a ⋅ b ∣ ≤ ∥ a ∥∥ b ∥ ke against compare karo:
Pair A (parallel nahi): a = ( 3 , 4 ) , b = ( 1 , 2 ) .
Pair B (parallel): a = ( 3 , 4 ) , b = ( 6 , 8 ) .
Forecast: Pair A strict hona chahiye (< ); Pair B, parallel hone ki wajah se, equality hona chahiye (= ).
Pair A: ∣ a ⋅ b ∣ = ∣3 + 8∣ = 11. RHS = ∥ a ∥∥ b ∥ = 5 ⋅ 5 ≈ 11.180.
Yeh step kyun? Inequality ke dono sides mein directly plug karo.
11 < 11.180 — strict, kyunki koi scalar t nahi hai jo a = t b de (check: 3/1 = 4/2 ).
Yeh step kyun? Strictness ⇔ non-parallel, parent ki equality condition ke anusaar.
Pair B: ∣ a ⋅ b ∣ = ∣3 ⋅ 6 + 4 ⋅ 8∣ = ∣18 + 32∣ = 50. RHS = 5 ⋅ 100 = 5 ⋅ 10 = 50.
Yeh step kyun? Yahan b = 2 a exactly hai, toh "leftover perpendicular part" zero hai aur bound hit hota hai.
50 = 50 — equality, confirm karta hai Pair B parallel hai.
Verify: 11 ≤ 11.180 ✔ (strict) aur 50 ≤ 50 ✔ (equality). Discriminant proof (parent §3) exactly yahi predict karta hai: equality iff kisi t ke liye ∥ a − t b ∥ = 0 ✔.
Recall Kaun sa cell kaun sa sign hai?
Positive dot product ka matlab angle hai... ::: acute (0 ∘ < θ < 9 0 ∘ )
Dono vectors nonzero hone par zero dot product ka matlab... ::: perpendicular (θ = 9 0 ∘ )
Negative dot product ka matlab angle hai... ::: obtuse (9 0 ∘ < θ < 18 0 ∘ )
a ⋅ 0 = 0 batata hai angle... ::: undefined hai (0 ki koi direction nahi), perpendicular NAHI
Cauchy–Schwarz exactly tab equality hota hai jab... ::: vectors parallel hon
Mnemonic Sign = teamwork score
+ saath, 0 corner pe, − alag kheench rahe hain. Number ka sign angle ki poori kahani hai.
Related: Vector projection , Triangle inequality , Law of cosines , Cross product (vector-valued cousin).