Proof of the Cauchy-Schwarz inequality | Vectors and spaces | Linear Algebra | Khan Academy

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ธ.ค. 2024

ความคิดเห็น • 135

  • @fanrco766
    @fanrco766 5 ปีที่แล้ว +38

    I highly recommend trying to prove this theorem in R2, R3, and R4 just to get a better intuition on how the variables cancel out. My proffessor gave us a take home test where we had to prove cauchy schwartz in R4 and it was honestly a very beautiful proof. The day after in class he was able to use the structure for the proof in R4 to generalize to Rn

  • @boipelojoe
    @boipelojoe 6 ปีที่แล้ว +5

    b/2a to minimize the function --- it's a quadratic function; it achieve its minimum at b/2a... "Let me pick any number, b/2a" -- we know that's not any value :) You can't prove it without b/2a
    You can also differentiate p(t)
    From (y.y)t^2 - 2(x.y)t +x.x
    p'(t) = 2t||y|| - 2(x.y) *** x.x is a scalar
    p'(t) achieve its min when = 0
    => 2t||y||^2 - 2(x.y)= 0
    => t||y||^2 = 2(x.y)
    => t = (x.y)/||y||^2
    **Substitute t; the proof is complete.

  • @possumsam2189
    @possumsam2189 8 ปีที่แล้ว +18

    at 8:17, the intuition for using b/2a is because t at b/2a is the minimum point of the curve. By completing the square, we
    get a ( t - b/2a )^2 - (b^2)/4a + c. Since a is positive, t = b/2a is at the minimum point of the curve. So the reason for choosing b/2a is to evaluate the inequality at the point closest to 0. Can anyone confirm or deny?

  • @revooshnoj4078
    @revooshnoj4078 6 ปีที่แล้ว +103

    I think Sal failed to explain a key insight here. First lets break down P(t)=|| ty-x ||^2 Notice that ty is a parameterization of a line so ||ty-x|| ^2 is essentially the squared distance between a point on that line and a vector x. Now what we want to do is find the minimum distance between the vector and the line. Since the function P(t)= at^2-bt+c obtains a minimum at t=b/2a (notice the negative sign in the function) we substitute that in to get the minimum distance and get the inequality using thr fact that P(t)>=0 (all lengths are positive) .
    Note:If ty and x are on the same line their minimum distance is zero which explains the equality and why one must be a multiple of the other

    • @장용연-f6v
      @장용연-f6v 5 ปีที่แล้ว +2

      thanks cleared up alot

    • @anjalip7949
      @anjalip7949 5 ปีที่แล้ว +2

      Hello, can you please elaborate on the minimum distance part?

    • @lraoux
      @lraoux 3 ปีที่แล้ว +1

      THANK YOU

    • @lraoux
      @lraoux 3 ปีที่แล้ว +1

      @@anjalip7949 If x and y are linearly independent, you get the minimum distance (i.e. 0). However, if they are NOT linearly independent, then we must actually SUBTRACT x from ty. If we use ||ty+x|| ^2, the inequality is backwards/reversed/errant.

    • @dineshganyarpawar5441
      @dineshganyarpawar5441 3 ปีที่แล้ว

      how to calculate the minimum of at^2-bt+c?

  • @Mariomation3275
    @Mariomation3275 5 ปีที่แล้ว +3

    you are my motivation. I think your videos are more of complements to classes rather than actual lessons. it so diverse and inclusive that if you were to study a topic complete your still guaranteed to learn something new.

  • @jpfry
    @jpfry 14 ปีที่แล้ว +11

    Awesome proof!
    I think an argument with the discriminant would be a little more natural, rather than plugging in b/2a which takes a bit of foresight and might seem arbitrary.
    For those asking, the Cauchy-Schwarz inequality is extremely useful in Linear Algebra, Analysis, and probability. A good amount of proofs in mathematics use this inequality (even in physics too, where CS is used to arrive at the Heisenberg uncertainty principle).

  • @sdfsgdsfgsdfg
    @sdfsgdsfgsdfg 9 ปีที่แล้ว +24

    8:06 could use some motivation for t=b/2a

  • @amyluo3314
    @amyluo3314 12 ปีที่แล้ว +2

    Thank you soo much for giving us free lessons!
    Education is the most valuable thing ever.

  • @rikard92
    @rikard92 11 ปีที่แล้ว +6

    how do I know what constant to put in to P(t) to prove the theorem? It seemed like you knew the answer and you used the "answer"(the constant t which was b/2a)) to "proof" the theorem.

  • @JaySomething
    @JaySomething 12 ปีที่แล้ว +3

    I think that it's more convenient to just use the identity that the dot product of any two vectors is their magnitudes multiplied together, times cosine of the smallest angle between them, to prove the inequality, or the equality when they are parallel vectors since theta (smallest angle) is 0, so cos0 is 1. For any other non-parallel vector pair, since costheta has the domain between neg 1 and pos 1, then we divide both sides by the magitudes to get 1 >/= costheta, which is true.

  • @Augustine_354
    @Augustine_354 10 ปีที่แล้ว +51

    Very interesting, but I've got one problem. From where did you get this p(t) artificial function?

    • @bartalor
      @bartalor 7 ปีที่แล้ว +1

      he started with an expression that has t in it, and he explained in the beginning why this expression is always greater or equal to zero regardless of the value of t,
      later he just started referring to that expressions as a function of t.

    • @revooshnoj4078
      @revooshnoj4078 6 ปีที่แล้ว +12

      The function P(t) describes the squared distance between a vector and a point on the parameterized line ty. Essentially what were trying to do is to find the minimum distance between that line and that vector. Since P(t)=at^2-bt+c its minimum is obtained at t=b/2a plugging that in we get the desired inequality. Also notice that if the vector and line are the same line their minimum distance will be zero hence equality and why the other vector must be the scaled version of the other

  • @thetruereality2
    @thetruereality2 7 ปีที่แล้ว +4

    Is there some specific reason why you defined P(t)=||ty-x||? Can you define any other vector differently?
    Also later in the proof you evaluated p(t) at b/2a you have not mentioned what is the a reason for that?
    It was a nice explanation I would be grateful if you explained above questions.
    Thank you

  • @energysage9774
    @energysage9774 11 ปีที่แล้ว +2

    Why not just say A dot B = |A||B| cos(theta),and the largest value cosine can contribute is 1, giving A dot B = |A||B|. Cos(theta)=0 occurs at 0 and Pi radians (or 0 and 180 degrees), meaning A and B must be parallel or antiparallel. Either way, this means they are scalar multiples of one another.

  • @rinkaghosh7961
    @rinkaghosh7961 4 ปีที่แล้ว +2

    Why choosing the function p(t) ? And then t=b/2a ? It might be better if some purposes were told for choosing the function and then that particular value of t

  • @jakubnage
    @jakubnage 15 ปีที่แล้ว

    Hello Salman Khan. I love your videos and have used them for calculus. You are truly an asset and valuable resource to any student.
    The main purpose of this comment (if you see it) is to ask what you recommend I use with my wacom bamboo tablet whilst taking notes in class. In terms of functionality, my only prefernce is that I could have typewritten text together with my tablet writing which would be diagrams.
    Anyone who feels like answering this, comment here or message me

  • @pjgcommunity3557
    @pjgcommunity3557 7 ปีที่แล้ว +1

    The equation at(squared)-bt+c in the video is very similar to the equation to find distance after t seconds when acceleration is an arbitrary constant(1/2at(squared)+bt+c)

  • @LAnonHubbard
    @LAnonHubbard 14 ปีที่แล้ว

    On third viewing, it's making more sense. My problem was that even though I could understand each step, I wasn't getting any intuition from it. At 16:50 he says in future videos he'll give intuition as to WHY it makes sense. I will rest easy again now!

  • @jingyiwang5113
    @jingyiwang5113 ปีที่แล้ว

    I am really grateful for this video! You have provided a really clear explanation about this inequality. Thanks! My mathematics exam is approaching. I am so nervous about it.

  • @looploop6612
    @looploop6612 7 ปีที่แล้ว +5

    why t=b/2a ?

  • @laag4
    @laag4 15 ปีที่แล้ว

    It's a max/min thing, if you're searching for a vertex on a parabola, it will give you the y coordinate. (I think, it has been a while since I've really done that.

  • @visaeris
    @visaeris 14 ปีที่แล้ว

    Omg... this makes things sooo clear...

  • @mercyonize7882
    @mercyonize7882 5 หลายเดือนก่อน

    Thank you so much sir 🙌🏼

  • @Ashkepu
    @Ashkepu 12 ปีที่แล้ว +1

    Where is the equation p(t) = ||ty-x||^2 from? How did you choose it?

  • @ericshindola3308
    @ericshindola3308 9 หลายเดือนก่อน

    awesome deliverance there, atleast i have understand.

  • @samuelbassey6806
    @samuelbassey6806 ปีที่แล้ว

    Well explained sir, thanks for sharing

  • @yasminho195
    @yasminho195 2 ปีที่แล้ว

    Thank youuuuuuu!!!

  • @mucklesandwich
    @mucklesandwich 12 ปีที่แล้ว

    It could be any vector squared to begin with. He just picks the vector 'ty-x' because without breaking any rules of mathematics it can give him the result he wants. He uses that specific vector because the thing he's trying to get has x's and y's in it. And because any vector can be written as 'ty-x' (ie some scalar multiple of a vector minus some other vector) then what he proves for this example must hold true for all examples.

  • @gbriceno
    @gbriceno 7 ปีที่แล้ว +1

    Kahn, Great proof and explanation of the the Cauchy-Schwarz inequality is. Could you explain the use of P(t) and why the function was chosen as it was presented as a linear differnce combination of two vectors. I'd like to re-run the proof using the addition of two vectors to see if anything is lost in this proof.

  • @xoppa09
    @xoppa09 7 ปีที่แล้ว

    15:29 here you have | || y||^2 | not || y||^2. But they are equal.

  • @anjalip7949
    @anjalip7949 5 ปีที่แล้ว

    Thank you, Sir.

  • @eddielloyd1947
    @eddielloyd1947 7 ปีที่แล้ว +2

    7:50
    Why didn't Khan just take the discriminant of P(t) as less than or equal to zero? Consequently (b/2)^2 is less than or equal to ac and Cauchy-Schwarz is proven.

  • @evamari1900
    @evamari1900 3 ปีที่แล้ว

    This was very helpful

  • @riggsrevenge
    @riggsrevenge 12 ปีที่แล้ว

    @bach1229 Its a teaching strategy to have you remember it better sir. its not just for mathmaticians either, it can be used in any subject, I use it for language, for example if I were to teach english and translate to spanish I would use red for english and blue for spanish, there is lots of research behind it.
    It works most of the time.

  • @mucklesandwich
    @mucklesandwich 12 ปีที่แล้ว

    Maybe what you're asking is deeper than that... If you're asking how the first guys who did this knew what function to start with, then... that's a good question.... it possibly came out of exploring and playing around with squaring the magnitudes of vectors and seeing what happened. when this popped out they realised it made a definite statement about all vectors, a statement that could come in very handy in the future.

  • @hitashasharma2178
    @hitashasharma2178 6 หลายเดือนก่อน

    You make maths fun

  • @shahadas907
    @shahadas907 ปีที่แล้ว

    Fantastic!

  • @PrUnEJuIcEtHeThIrD
    @PrUnEJuIcEtHeThIrD 12 ปีที่แล้ว

    What's the intuition behind plugging in b/2a to p(t)?

  • @borissimovic441
    @borissimovic441 ปีที่แล้ว

    Where does the P(t) function come from, what is the intuition for using it?

  • @林某-p3x
    @林某-p3x 8 ปีที่แล้ว

    can you say something on ||>=?

  • @Waranle
    @Waranle 15 ปีที่แล้ว

    Thank you Sal!

  • @JDMaxton1999
    @JDMaxton1999 4 ปีที่แล้ว

    11:26 Ok I've seen it proven like this other times. I still don't get how b^2 - 4ac is allowed to be less than zero. Isn't this pretty much allowing there to be negative square roots if you were to use the quadratic equation on this theoretical equation???

  • @SkunZielonyJakMech
    @SkunZielonyJakMech 7 ปีที่แล้ว

    I think it's much easier to proof that (x1y2-x2y1)^2 >= 0, where x1,x2 and y1,y2 are coordinates of vectors x and y.

  • @anmolagrawal5358
    @anmolagrawal5358 6 ปีที่แล้ว +2

    3:11 "It was 2 videos ago"--😂😂

  • @SomethingSoOriginal
    @SomethingSoOriginal 13 ปีที่แล้ว

    Very helpful, thanks.

  • @blackphoenix1207
    @blackphoenix1207 14 ปีที่แล้ว

    I'm confused, shouldn't the equality iff cy = x have another part to it, where we start off with just x & y and prove that they're scalar multiples...

  • @frr
    @frr 14 ปีที่แล้ว

    @regingwapo: The only if part are the assumptions. Assumptions are usually given as true and thus doesn't need to be proven.

  • @usama57926
    @usama57926 5 ปีที่แล้ว

    sir thank u so much

  • @matejvidovic9026
    @matejvidovic9026 2 ปีที่แล้ว

    8:03 why did we choose b/2a as our value? how did we get this? so confused!

  • @donjisto
    @donjisto 9 ปีที่แล้ว

    For all you guys who want to know why b^2 - 4ac needs to be < or = to zero go and read my tip/comment on this video in khanacademy.

  • @frr
    @frr 14 ปีที่แล้ว

    @regingwapo: The only if part are the assumptions. Assumptions are usually given as true and thus doesn't need to be proven. For example, he/she is human only if he/she is a man or women. That only if part is given to be someone either male or female and unnecessary to prove.

  • @Furkan-yv5ew
    @Furkan-yv5ew 5 หลายเดือนก่อน

    Since I don't really know the definitions i can't prove them by my self. And I can't find a starting point for this. Is it necessary to know some linear algebra to understand topology

  • @freezingbeast
    @freezingbeast 14 ปีที่แล้ว

    Isn't this much much much easier to prove if you introduce the dot product and do an inequality equation with -1

  • @xoppa09
    @xoppa09 7 ปีที่แล้ว

    13:48 what do you mean principal square root

  • @Dusty1298
    @Dusty1298 12 ปีที่แล้ว

    Is this somehow related to the quadratic formula? While proving the CS inequality at one of the steps he got b^2-4ac is less than or equal to 0. Is that just because he started from a quadratic equation or is there another reason?

  • @nadzTube
    @nadzTube 15 ปีที่แล้ว +1

    Sal -- are you dedicated full time to your academy?

  • @benshapiro9630
    @benshapiro9630 8 ปีที่แล้ว

    what if you use complex numbers?

  • @PoojaSharma-rz2bg
    @PoojaSharma-rz2bg 11 หลายเดือนก่อน

    Why we have put t= b/2a
    Sir ?please tell🙏

  • @dannysher1010
    @dannysher1010 10 ปีที่แล้ว

    good stuff! I got it!

  • @LAnonHubbard
    @LAnonHubbard 14 ปีที่แล้ว

    Have to say I struggled a bit with this so I'm going to find another source.

  • @Harrykesh630
    @Harrykesh630 6 หลายเดือนก่อน

    what are Non Real vectors ?

  • @cosinusarcus8907
    @cosinusarcus8907 12 ปีที่แล้ว

    it is really nice proof!! :) thanks

  • @bopeng9504
    @bopeng9504 8 ปีที่แล้ว +6

    complicate an easy thing.

  • @llewsub
    @llewsub ปีที่แล้ว +1

    Why does the video description say "Linear algebra describes things in two dimensions" which is just not true lol?

  • @markobe08
    @markobe08 6 ปีที่แล้ว

    09:37
    how can we multiply b^2/2a by 2 and leave the rest untouched?

    • @the61stbookworm78
      @the61stbookworm78 6 ปีที่แล้ว

      I know this reply comes two months late, but I hope it can still be of some use. When b^2/2a is multiplied through by two, it is just being changed to an equivalent fraction. An equivalent fraction has the same value so it does not need to change the rest of the equation. Just like if you add 1/2 or 2/4 to a number you'd get the same result both times.

  • @diamondglitter205
    @diamondglitter205 6 ปีที่แล้ว

    it will become much easier when I use the other dot product formula X.Y = ||X||.||Y||.cos(o). but I know he spouses we don't know this formula yet.

  • @demetriusdemarcusbartholom8063
    @demetriusdemarcusbartholom8063 2 ปีที่แล้ว

    ECE 485 UofA

  • @blackphoenix1207
    @blackphoenix1207 14 ปีที่แล้ว

    wait, but the CS equality is an if and only if proof, you've only proved one way assuming that x = cy (where x & y are vectors and c is a scalar) and then plugged it in what about the other way around? Maybe I'm not looking at it right..

  • @regingwapo
    @regingwapo 14 ปีที่แล้ว

    @frr Only if means that it can't be something else, so you have to prove that that something else doesn't produce the same conclusion.

  • @shifterdude
    @shifterdude 15 ปีที่แล้ว

    awesome

  • @Shaiifalii
    @Shaiifalii 4 ปีที่แล้ว

    Is magnitude and norm same or interchangeable?

    • @GianMarcosAguilar
      @GianMarcosAguilar 2 ปีที่แล้ว

      magnitude, length and norm are the same (commenting in case others have the same question in the future)

  • @frei-math-quantum
    @frei-math-quantum 10 ปีที่แล้ว +3

    Why evaluating precisely at that value? (Please more than just "it works".)

    • @inteusproductions
      @inteusproductions 9 ปีที่แล้ว +2

      -b/2a is the turning point of a parabola.

    • @Nightmare1066
      @Nightmare1066 9 ปีที่แล้ว

      +FreeziiS On Khan Academy's site there's a comment that explains what Sal is doing.

    • @frei-math-quantum
      @frei-math-quantum 9 ปีที่แล้ว

      +Darko Bakula (Nightmare1066): I myself know the answer but it would be an improvement for your video. ;)

    • @ElizaberthUndEugen
      @ElizaberthUndEugen 7 ปีที่แล้ว

      @FreeziiS If you know the answer, would you care to explain? I can't find the comment on the Khan Academy site that allegedly explains the choice of t=b/2.

  • @regingwapo
    @regingwapo 14 ปีที่แล้ว +1

    you didn't prove the "only if" part

  • @ANKITKUMAR-zb9nw
    @ANKITKUMAR-zb9nw 3 ปีที่แล้ว

    Hey x=cy . Here c has to be positive or it could be negative also for the |x.y|=||x|| ||y|| to be true

  • @kniinortey31
    @kniinortey31 3 ปีที่แล้ว

    I keep hearing in the last video what’s the last video.

  • @mathalysisworld
    @mathalysisworld 11 วันที่ผ่านมา

    16:26 . You did not prove that statement. You just proved the reverse of that statement.

  • @IJahan-k1q
    @IJahan-k1q 5 หลายเดือนก่อน

    14 years ago !

  • @jabranehcini1674
    @jabranehcini1674 3 ปีที่แล้ว

    un grand salut
    toi existe machallah

  • @MarceloSousaWoody
    @MarceloSousaWoody 10 ปีที่แล้ว

    How I can prove that the Cauchy-Schwarz inequality holds only when the vectors are linearly dependent?

  • @lauelibre
    @lauelibre 7 ปีที่แล้ว +5

    Thanks but how could I ever think of this from scratch on an exam?

    • @oneinabillion654
      @oneinabillion654 5 ปีที่แล้ว

      If you learn scalar product rule. You remove the cosx and the side that had cosx now becomes bigger or equal to the other side as cosx is only from -1 to 1. This produces the same inequality.
      You can quickly test on a piece of paper.

    • @zackwyvern2582
      @zackwyvern2582 5 ปีที่แล้ว

      @@oneinabillion654 Prove without invoking triangle inequality or dot product geometric definition, that is, from scratch.

    • @oneinabillion654
      @oneinabillion654 3 ปีที่แล้ว

      Ahh, I thought she wanted a fast way to know the expression since from scratch its long and troublesome. And I don't think any exam tells u to derive this literally from scratch so...
      Anyways, thanks for reminder

    • @oneinabillion654
      @oneinabillion654 3 ปีที่แล้ว

      @glyn hodges O.O

  • @medchs
    @medchs 4 ปีที่แล้ว +1

    a second degree polynomial has at most one real solution (is non-negative for all real t) iff its discriminant is

    • @legofanas
      @legofanas 4 ปีที่แล้ว

      If D < 0 it has 0 real solutions

  • @teymurahmadov5804
    @teymurahmadov5804 4 ปีที่แล้ว +1

    VERY nice ı anderstand evrysing.
    ı am 10,
    but ı understand you to.
    This vidio is very interasting.
    🕳😀😀😀😀😀😀😀

  • @zakariaislam9891
    @zakariaislam9891 6 ปีที่แล้ว

    Can't we just prove it by the definition of dot product,
    a.b=|a||b|cos(theta), the maximum value of this is when theta=0 which is a.b=|a||b| cos0= |a||b|.
    For any other value of theta a.b

  • @ferdinandflames8172
    @ferdinandflames8172 2 ปีที่แล้ว

    Where's the denominator b?? 🤔

  • @click4nat
    @click4nat 15 ปีที่แล้ว

    I guess it is just necessary for the proof.

  • @iRapplexD
    @iRapplexD 7 ปีที่แล้ว

    all we need is 3-4 steps... talking about efficiency

  • @Reonaru
    @Reonaru 13 ปีที่แล้ว

    Idol !!!

  • @BarbaraGonzalez-l4v
    @BarbaraGonzalez-l4v หลายเดือนก่อน

    Walker Christopher Gonzalez Timothy Lee Ronald

  • @shenglanliu4197
    @shenglanliu4197 3 ปีที่แล้ว

    unfortunately you did not prove if and only if...basically
    . In a real inner product space where u and v are two vectors, given |u.v|=||u|| ||v||, then u and v are linearly dependent

  • @sapnaahirwar9760
    @sapnaahirwar9760 4 ปีที่แล้ว

    One little problm I have is pls don't use this display, yellow green highlighter on the black..! 🙏

  • @BarbaraGonzalez-l4v
    @BarbaraGonzalez-l4v หลายเดือนก่อน

    Clark Brenda Thomas Richard Lee Amy

  • @FridolinH
    @FridolinH 7 ปีที่แล้ว

    it's Schwarz. If I'd say it in german the way you wrote it, I'd have a lisp:D

  • @alicenlucy
    @alicenlucy 8 ปีที่แล้ว

    is it me or is there no audio??

  • @tonmandude
    @tonmandude 14 ปีที่แล้ว +4

    Man, this stuff is so hard, I don't know how to do my math hw ;_;

    • @r4viity414
      @r4viity414 4 ปีที่แล้ว +1

      Did you finish your homework yet?

  • @muhammeteneseris6752
    @muhammeteneseris6752 6 ปีที่แล้ว +2

    güzel ama ingilizce kim bilir ne diyo

    • @atekvideos1613
      @atekvideos1613 6 ปีที่แล้ว

      türkçe altyazı seçeneği var

  • @henrychan720
    @henrychan720 4 ปีที่แล้ว

    Just... draw a triangle?

  • @jjjeykey
    @jjjeykey 10 ปีที่แล้ว +6

    I like your videos, but I would find them even better if you didn't sound so bored.

  • @okshuvro2996
    @okshuvro2996 4 ปีที่แล้ว

    too hard -_-

  • @blockobutter
    @blockobutter 4 ปีที่แล้ว

    Instead of learning Ruby frameworks or multithreading devices, I'm here learning about this useless (to me) inequality that I will never see again.... College is dogshit sometimes. BRAVO PRACTICALITY!
    Anyway, good video. Just the moron mathematicians that haven't worked a day in the software development field making me watch this shouldn't be in charge of course building...

  • @emanuellandeholm5657
    @emanuellandeholm5657 2 ปีที่แล้ว

    Great video!
    Cow she tho... :D You need to work on that pronunciation.

  • @ElizaberthUndEugen
    @ElizaberthUndEugen 6 ปีที่แล้ว +1

    Why do a 16 min video when you can prove this in ONE line?
    |x . y| = |cos(x, y) |x| |y|| which is bounded above by |x| |y| and below by 0
    DONE
    ...