4.5.2 · D2 · HinglishLinear Algebra (Full)

Visual walkthroughDot product — formula, cosine formula, Cauchy-Schwarz inequality proof

2,570 words12 min read↑ Read in English

4.5.2 · D2 · Maths › Linear Algebra (Full) › Dot product — formula, cosine formula, Cauchy-Schwarz inequa

Shuru karne se pehle, teen words jinpar hum agree kar lein, har ek neeche ek picture se juda hai.


Step 1 — Objects draw karo: do arrows aur unke beech ka angle

KYA. Do arrows, aur , ko tail-to-tail rakho (ek hi point se shuru karte hue). Unke beech ki opening woh angle hai jise hum (Greek letter "theta", bas uss angle ka ek naam) kehte hain.

KYUN. Do vectors ke baare mein jo bhi geometric baat hai — kya woh aligned hain? Opposite hain? Right angle par hain? — woh sab is ek angle ke andar rehti hai. Agar hum ko numbers se nikaal sakein, toh hum pair ko poori tarah samajh lete hain.

PICTURE. Figure mein do arrows ek tail share karte hain. Shaded wedge hai.

Figure — Dot product — formula, cosine formula, Cauchy-Schwarz inequality proof

Dhyaan do ki (arrows ek doosre ke upar) se (arrows bilkul opposite direction mein) tak hota hai. Hume kabhi isse bade angles ki zaroorat nahi: do arrows ke beech ki sabse choti opening hamesha usi range mein hoti hai.


Step 2 — Do recipes jinhe hum connect karna chahte hain

KYA. Dot product likhne ke do tarike hain. Hum dono display karte hain aur aim karte hain yeh dikhane ka ki woh equal hain.

KYUN. Ek recipe compute karna aasaan hai; doosri samajhna aasaan hai. Inhe connect karna hi is page ka poora point hai.

PICTURE. Left panel: components par "multiply-and-add" recipe. Right panel: geometry par "lengths-times-cosine" recipe.

Figure — Dot product — formula, cosine formula, Cauchy-Schwarz inequality proof

  • — horizontal parts ek saath multiply hue.
  • — vertical parts ek saath multiply hue.
  • — do arrow ki lengths.
  • — ek number aur ke beech jo angle report karta hai; isse hum aage explain karte hain.

ek promise hai jo humne abhi tak puri nahi ki. Steps 4–7 ise poora karte hain.


Step 3 — Woh ek identity jo sab kuch pay karta hai:

KYA. Ek vector ko uski khud ki self mein recipe A mein daalo:

KYUN. Us right triangle par Pythagorean theorem se jiske legs aur hain, woh sum ki squared length hi hai. (Closely related Triangle inequality — ki triangle ki koi bhi side doosri do sides ke sum se zyada nahi ho sakti — ek alag result hai; yahan humein Pythagoras chahiye, right-angle length rule.) Toh dot product pehle se apne andar "length" carry karta hai — yeh woh hinge hai jis par poora derivation swing karta hai.

PICTURE. Arrow ek right triangle ka hypotenuse hai jiske legs (horizontal) aur (vertical) hain. Legs par ke squares add hokar hypotenuse par ke square ke barabar hain.

Figure — Dot product — formula, cosine formula, Cauchy-Schwarz inequality proof


Step 4 — Ek triangle banao taaki Law of cosines enter kar sake

KYA. aur ko phir se tail-to-tail draw karo, phir arrow draw karo. Geometrically woh arrow hai jo ki tip se ki tip tak jaata hai — yeh triangle ko close karta hai.

KYUN. Humein angle (geometry) aur components (algebra) ke beech ek bridge chahiye. Law of Cosines woh bridge hai: woh ek theorem hai jo triangle ki teen side lengths ko uske ek angle se relate karta hai. Ise use karne ke liye, pehle humein ek triangle chahiye — toh hum ek aisa banate hain jiska angle hi hamara ho.

PICTURE. Teen sides: , , aur closing side . Angle aur ke beech baitha hai, closing side ke directly opposite.

Figure — Dot product — formula, cosine formula, Cauchy-Schwarz inequality proof


Step 5 — Law of Cosines apply karo (bridge ka geometry side)

KYA. Sides aur included angle , opposite side wale triangle ke liye Law of Cosines kehta hai . , , daalo:

KYUN. Yeh equation woh akela jagah hai jahan angle appear hota hai. Agar hum left side ko ek alag tarike se — bina ke — compute kar sakein toh hum ke liye solve kar sakte hain. Woh alag tarika recipe A hai, jo Step 6 mein aata hai.

PICTURE. Wahi triangle, ab teen squared side-lengths labeled hain aur cosine correction term ki taraf waali side par highlight hai.

Figure — Dot product — formula, cosine formula, Cauchy-Schwarz inequality proof
  • Jab hota hai, aur correction vanish ho jaata hai — formula wapas plain Pythagoras ban jaata hai. Accha sanity check hai.

Step 6 — Algebraically wahi left side compute karo (bridge ka component side)

KYA. Step 3 ki hinge identity (length squared dot with itself) aur distributivity use karke expand karo:

Term by term: distribute karne se chaar dots milte hain — , phir , phir , phir . Kyunki dot product commutative hai, , isliye beech ke do terms dono hain aur mein add ho jaate hain. Do end terms hinge identity se aur ban jaate hain.

KYUN. Humne ab exactly ek hi quantity ko do tarike se likha hai: ek baar ke saath (Step 5), ek baar raw dot product ke saath (yahan). Ek cheez ke liye do expressions equal hone chahiye — woh equality hi poora formula hai.

PICTURE. Expansion ek grid of pairings ke roop mein dikhaya gaya hai (vectors ke liye FOIL ki tarah): do diagonal boxes length-squared terms dete hain, do off-diagonal boxes mein merge ho jaate hain.

Figure — Dot product — formula, cosine formula, Cauchy-Schwarz inequality proof

Step 7 — Unhe equal karo aur dekho do terms cancel ho jaate hain

KYA. Step 5 aur Step 6 ko equate karo:

aur dono sides par appear hote hain — unhe subtract kar do:

Dono sides ko se divide karo:

KYUN. Step 2 ki promise ab poori ho gayi: recipe A (, components se) equals recipe B (, geometry). Dot product secretly angle ko jaanta hai.

PICTURE. Do bade expressions stack kiye gaye hain jisme shared terms greyed out hain (cancelled) aur surviving terms glow kar rahe hain, arrow boxed result ki taraf point kar raha hai.

Figure — Dot product — formula, cosine formula, Cauchy-Schwarz inequality proof
  • — woh number jo recipe A produce karta hai.
  • — hamesha positive (lengths), isliye dot product ka sign ka sign hota hai.
  • — alignment dial.

Step 8 — Saare cases: sign ko ek compass ki tarah padho

KYA. Kyunki , ka sign poori tarah ka sign hai. Chalo har case walk karte hain, degenerate wale bhi.

KYUN. Contract yeh hai: reader ko koi aisi situation nahi milni chahiye jo humne skip ki ho. Yahan sab hain.

PICTURE. Paanch mini-panels: acute, right, obtuse, aur do extremes (same direction, opposite direction).

Figure — Dot product — formula, cosine formula, Cauchy-Schwarz inequality proof
Recall Quick self-test

Agar ho, toh angle acute, right, ya obtuse hai? ::: Obtuse ( aur ke beech), kyunki . Do nonzero perpendicular vectors ka dot product kitne ke barabar hota hai? ::: Zero. kabhi negative kyun nahi hota? ::: Dono lengths hain, aur length hamesha hoti hai.


Ek-picture summary

Upar ki sab cheez ek single diagram mein collapse ho jaati hai: shared-tail triangle geometry carry karta hai (, Law of Cosines), component grid algebra carry karta hai (), aur dono beech mein boxed identity par milte hain.

Figure — Dot product — formula, cosine formula, Cauchy-Schwarz inequality proof

Recall Feynman retelling — poora walkthrough plain words mein

Do arrows ko ek hi dot se shuru hote hue imagine karo. Hum ek honest number chahte the jo yeh kahe ki "yeh do kitna same direction mein point karte hain?" Hmare paas uss number ke liye do ideas the. Idea A: unke sideways parts aur up-down parts line up karo, har pair multiply karo, add karo — pure arithmetic. Idea B: do arrow lengths multiply karo aur phir unke beech ke angle ke cosine se answer ko upar ya neeche dial karo — pure geometry.

Yeh dikhane ke liye ki yeh ek hi number hain, humein angle aur arithmetic ke beech ek bridge chahiye tha. Toh humne woh triangle draw kiya jo do arrows aur unki tips ko join karne wali line se banta hai. Woh teesri side, tip to tip, " minus " hai. Ab Law of Cosines — woh ek rule jo triangle ki sides ko uske angle se link karta hai — humein uss teesri side ki length squared deta hai, usme angle likha hota hai. Lekin hum wahi squared length pure arithmetic se bhi compute kar sakte hain (ek vector ki length squared bas khud se dot ki gai hoti hai). Ek cheez ko likhne ke do tarike matlab woh equal hain. Jab hum unhe equal karte hain, " ki length squared" aur " ki length squared" dono sides par aate hain aur cancel ho jaate hain, aur jo bachta hai, minus two se divide karne ke baad, woh famous line hai: dot product equals length times length times cosine.

Phir humne angle ke har mood ko check kiya. Same taraf jhuke → positive. Square corner → exactly zero. Fight kar rahe → negative. Perfectly aligned ya perfectly opposite → lengths ki jo sabse badi positive ya sabse badi negative allow karti hain. Aur agar ek arrow shrinked hokar kuch nahi ban jaata, geometry apna angle khoti hai lekin arithmetic calm rehti hai aur zero return karti hai. Isliye hum algebra ko real definition ke roop mein trust karte hain aur beautiful cosine picture ko uska meaning maante hain.


Connections

  • mein chupi projection idea Vector projection mein develop ki gayi hai.
  • Zero-dot-product case Orthogonality and orthonormal bases ka seed hai.
  • "Dot product se angle define karo" ka abstract version Inner product spaces mein rehta hai.
  • Yahan ki angle machinery Cross product ki area/normal machinery se contrast karti hai.
  • Yeh walkthrough Law of cosines par lean karta hai aur Triangle inequality se connect hota hai.