Gaussian Quadrature 3: The Explanation of the Technique

  Рет қаралды 33,948

MathTheBeautiful

MathTheBeautiful

7 жыл бұрын

bit.ly/PavelPatreon
lem.ma/LA - Linear Algebra on Lemma
bit.ly/ITCYTNew - Dr. Grinfeld's Tensor Calculus textbook
lem.ma/prep - Complete SAT Math Prep

Пікірлер: 63
@MathTheBeautiful
@MathTheBeautiful 3 жыл бұрын
Go to LEM.MA/LA for videos, exercises, and to ask us questions directly.
@pflintaryan8336
@pflintaryan8336 4 жыл бұрын
this guy not only teaches but also inspires. The way he explains, it feels nothing in the world is more important. Massive respect!! :)
@User-cv4ee
@User-cv4ee 5 жыл бұрын
Just WOOOOOW!! How did these mathematicians had the vision to go that far?
@MathTheBeautiful
@MathTheBeautiful 5 жыл бұрын
I always think about this, too.
@mohamedradwan388
@mohamedradwan388 7 жыл бұрын
I am a computer science student, but I really enjoy watching these lectures to understand terms that I hear all the time, such as Laplacian and Gaussian quadruture.
@ozzyfromspace
@ozzyfromspace 3 жыл бұрын
This is easily one of the most beautiful methods of numerical analysis 😭❤️
@samirkhan6195
@samirkhan6195 10 ай бұрын
Thank you, Gauss, for revealing this incredible method to the world, and thank you, @MathTheBeautiful, for explaining it in such a beautifully amazing way.
@georgeorourke7156
@georgeorourke7156 7 жыл бұрын
This lecture has a very suttle argument (especially from 4 min 30 on) that initially missed me completely. When you arrived at the point where you had ∫p(x) = ∫r(x) I told myself Ah! now we just need to go back to the previous lecture to solve the integral. I initially was confused why you worried about the zeros of the Legendre polynomials since, by the inner product argument, that integral was zero. I then realized that the whole point of choosing the zeros of the Legendre polynomial was A) because R(x) = P(x) at those points and B) the coefficients ωi of Ln have been calculated once and for all.Therefore the evaluation the integral of p(x) becomes simply the sum ωi * P(gi) where gi are the zeros of the Ln Legendre polynomial - I mention this should someone else have the same hesitation as I did. Last question - at the end of te previous lecture (11:40) you stated that the problem with the method presented in that lecture was the very significant variation in the magnitude of the coefficients. Is the use of the zeros of Ln better because the coefficients have been determined and we do not need to rederive them or is there really less variation - in which case why? As always thank you for a very interesting presentation.
@gideonbuckwalter4128
@gideonbuckwalter4128 7 жыл бұрын
I'm still confused about the professor's argument, so thank you for elaborating. You're saying that not only is ∫p(x)dx = ∫r(x)dx for all x (this makes sense to me), but p(gi) = r(gi) if gi is a zero of Ln, is that right? Why are we so interested in r(x)? From what I've seen you don't have to *do* any polynomial division when you're actually using Gaussian Quadrature to integrate, so I assume it's just part of the proof, but why?
@mengkezhan3919
@mengkezhan3919 6 жыл бұрын
Hi! r(x)-(n-1)th order is at lower order than p(x)-(2n-1)th order. Hence, for (n-1)th order polynomial, we have less coefficients to evaluate. Eg. of p(x) is order 3 (cubic,n=2), we only need to evaluate a linear polynomial r(x) at the same x. According to professor's last lecture (the matrix), only two weights are required as a linear polynomial has only 2 unknown coefficients(r(x)=w1+w2x1). After obtaining the two coefficients, we can always use that to obtain exact p(x) -- also by integrating r(x), we can exactly integrate p(x)
@mengkezhan3919
@mengkezhan3919 6 жыл бұрын
Gideon Buckwalter As for why there is a need to divide by ln(x), it is to construct the orthogonal integral such that ln(x) will have higher order than q(x). Since we want to have lowest order for integration(r(x)), min order for Ln(x) and r(x) would be nth such that q(x) will have lower order than Ln(x)
@User-cv4ee
@User-cv4ee 4 жыл бұрын
I was wondering exactly about this. Thanks!!
@Merthalophor
@Merthalophor 4 жыл бұрын
​@@gideonbuckwalter4128 I'm guessing you've since figured it out, but I thought I'd answer anyway for possible future viewers. You indeed don't need to do any polynomial division. It's a bit more complicated to argue rigorously, but basically it boils down to this: Remember that we have a set {c_i} and a set {w_i} such that our quadrature for any function is simply the sum of f(c_i)*w_i over all i, no matter what the function is. We know that this quadrature is exact for polynomials of degree
@perivarfriborg3916
@perivarfriborg3916 3 жыл бұрын
This is beautiful, I'm lost for words.
@stratpap637
@stratpap637 3 жыл бұрын
You are a very good teacher and you enjoy teaching with your heart!!Congratulations!!
@MathTheBeautiful
@MathTheBeautiful 3 жыл бұрын
Thank you - much appreciated!
@ozzyfromspace
@ozzyfromspace 3 жыл бұрын
I’m gonna try this tonight! I’m so excited to code this marvelous idea from scratch 😊🔥🙏🏽🎊❤️💯🙌🏽😭👏🏽🥳
@User-cv4ee
@User-cv4ee 4 жыл бұрын
Great teaching, good video editing! Perfect
@lafeikconta1156
@lafeikconta1156 4 жыл бұрын
Incredible explanation. Loved it
@adarshkishore6666
@adarshkishore6666 3 жыл бұрын
Thanks, great video! Btw, I think I can give an analogy to explain why the weights behave nice. In one of the previous videos (Why {1,X,x^2} is a terrible basis), you had explained the nice feature of orthogonal basis which makes it less error prone compared to an arbitrary basis. The Legendre polynomials are also orthogonal with respect to the inner product and thus they approximate better than arbitrary non-orthogonally polynomials. That may be the reason why the weights are nicer
@shifagoyal8221
@shifagoyal8221 2 жыл бұрын
Logically buildinging concepts step by step.Upload more videos.
@jvdcaki192
@jvdcaki192 5 жыл бұрын
Awesome lecture. I studied this at class but I did not understand anything. Your videos are much more interesting
@CJMilsey
@CJMilsey 7 жыл бұрын
What an awesome idea!
@DiegoM149
@DiegoM149 4 жыл бұрын
Thank you so much for this video !!!!
@electricpants_abhay
@electricpants_abhay 3 жыл бұрын
Oh my god this is amazing!!!
@surabee3398
@surabee3398 3 жыл бұрын
The amount of times I had to pause the video and go hold up hold up hOLD UP FOR A MOMENT
@grantsmith3653
@grantsmith3653 2 жыл бұрын
Gotta love Pavel Grinfeld
@MathTheBeautiful
@MathTheBeautiful 2 жыл бұрын
Haha, Gauss did all the work and I get all the love
@grantsmith3653
@grantsmith3653 2 жыл бұрын
@@MathTheBeautiful did Gauss make this video? No. Did he make Lemma? I think not. I certainly respect Gauss but I'm a huge fan of you and your work independent of Gauss
@cem3406
@cem3406 2 жыл бұрын
Thank you for that great lecture :)
@MathTheBeautiful
@MathTheBeautiful 2 жыл бұрын
Thank you! Part of the credit belong to Gauss.
@cantkeepitin
@cantkeepitin 6 жыл бұрын
Is there also an optimum rule if we only assume continuity, like |x|? How much we can gain over rectangular rule with equidistant samples of same weight? Or whay about integration from a to inf.
@OnTheThirdDay
@OnTheThirdDay 7 жыл бұрын
That was pretty cool.
@moritzbecker5703
@moritzbecker5703 3 жыл бұрын
Thank you very much for your wonderful lecture. I wish I was one of your students.
@MathTheBeautiful
@MathTheBeautiful 3 жыл бұрын
Thank you for the kind words and you *are* one of my students :)
@moritzbecker5703
@moritzbecker5703 3 жыл бұрын
@@MathTheBeautiful You are right, Sir :)
@kadrikocer5021
@kadrikocer5021 4 жыл бұрын
Thank you, Carl Friedrich Gauss .
@kottelkannim4919
@kottelkannim4919 3 жыл бұрын
Don't forget the apostle :-)
@piyushbishi6588
@piyushbishi6588 Жыл бұрын
Brilliant
@konstantinosnikoloutsos3402
@konstantinosnikoloutsos3402 5 жыл бұрын
I understood everything but Legendre polynomials looks really arbitrary. Thank you for your video by the way. You are a special teacher!
@mingmiao364
@mingmiao364 4 жыл бұрын
Konstantinos Nikoloutsps they aren’t arbitrary. Watch the first lecture on the topic. The natural basis functions, {1, x, x^2,...} aren’t orthogonal so we apply the Gram Schmidt procedure to them in order to produce a set of orthogonal basis. And Legendre polynomials are the result
@nanfengliu1027
@nanfengliu1027 6 жыл бұрын
what a smart idea to use Legendre polynomials.
@oberonthefirst8886
@oberonthefirst8886 7 жыл бұрын
awesome
@georgeorourke7156
@georgeorourke7156 7 жыл бұрын
I am guessing that number theory may have guided Gauss in the derivation of this method. The idea of "dividing" by Ln may have come from two numbers being equal mod something - in this case mod Ln....just an afterthought.
@g7sky
@g7sky 6 жыл бұрын
it took me a min to get the Joke at 1:33 nice move lol
@jameswilson8270
@jameswilson8270 5 жыл бұрын
I couldn't figure it out
@MathTheBeautiful
@MathTheBeautiful 5 жыл бұрын
The spin move.
@jameswilson8270
@jameswilson8270 5 жыл бұрын
@@MathTheBeautiful Oh ok, I was looking for something in the content that related to basketball. Nice lecture, by the way. Gaussian quadrature is awesome!
@user-qu5cc6cw4c
@user-qu5cc6cw4c 6 жыл бұрын
Kind of understand an example would of really helped
@hemnathl
@hemnathl 4 жыл бұрын
First of all thanks for the lecture sir. can any one please explain why we should choose polynomial of degree 2n-1.
@alexcwagner
@alexcwagner 3 жыл бұрын
The idea is that you have some function that isn't really a polynomial at all, but can be approximated by a polynomial if you choose a high enough degree. I don't think there's anything particularly magic about it being of an odd degree (since 2n-1 is odd), but that's just how the algorithm works out. If you thought your function was well-approximated by a 4th degree polynomial, it'll work just fine as a 5th degree, so go with n=3.
@iphykelvin8698
@iphykelvin8698 4 жыл бұрын
I have a question. Why can we use this for any interval of integration [a,b] and not for only [-1,1]. Thanks
@marsag3118
@marsag3118 4 жыл бұрын
You can map any interval to [-1, 1] but you have to use that one because that’s the interval over which the orthogonality for Legendre polynomials holds.
@bernhardriemann3821
@bernhardriemann3821 Жыл бұрын
how do you get the roots of the legendre polynomials?
@MathTheBeautiful
@MathTheBeautiful Жыл бұрын
Good question. Numerically.
@MesbahSalekeen
@MesbahSalekeen 2 жыл бұрын
p(x) is the polynomial that we are trying to integrate, r(x) is the remainder. What about f(x)?
@evanparshall1323
@evanparshall1323 4 жыл бұрын
In the previous video, you used 4 points to integrate up to a 3rd degree polynomial. Why is it now that you use n points to integrate up to a 2n-1 polynomial?
@MathTheBeautiful
@MathTheBeautiful 4 жыл бұрын
Well, that's the brilliance of Gaussian elimination. There are few of them, but they are very cleverly placed.
@alexcwagner
@alexcwagner 3 жыл бұрын
[Note: I'm answering this question mostly because trying to explain it will help me understand it better, myself.] He explains it pretty well, but you might need to watch it a few times to see where the trick is. The idea is that he takes a 2n-1 degree polynomial and re-represents it as the product of an n degree and an n-1 degree, plus some n-1 degree. But, since he chose the n degree to be a Legendre polynomial, and since an n degree Legendre polynomial is orthogonal with all polynomials of lower degree, we know that that part of the integral is zero, so we only need to calculate the integral of the remaining n-1 degree polynomial, and for that, we only need n points. TL;DR: He used Legendre polynomials to reduce the problem from a 2n-1 degree polynomial to an n-1 degree polynomial.
@lovemath980
@lovemath980 3 ай бұрын
I thank you for the video. But honestly it did not tell the whole story. Gauss found what we now call the Gaussian quadrature for polynomials of order up to 7, using continued fraction (according to Wikipedia). Then, Jacobi discovererd the connection between Gauss points (x_i) and roots of Legendre polynomials. So, Gauss did not use linear algebra!
General Inner Products in ℝⁿ. Matrix Representation
9:27
MathTheBeautiful
Рет қаралды 25 М.
Gaussian Quadrature 2: How to Determine the Weights
12:34
MathTheBeautiful
Рет қаралды 47 М.
Lehanga 🤣 #comedy #funny
00:31
Micky Makeover
Рет қаралды 20 МЛН
Они так быстро убрались!
01:00
Аришнев
Рет қаралды 2,4 МЛН
Получилось у Миланы?😂
00:13
ХАБИБ
Рет қаралды 6 МЛН
SPILLED CHOCKY MILK PRANK ON BROTHER 😂 #shorts
00:12
Savage Vlogs
Рет қаралды 15 МЛН
Review of the Dot Product
12:50
MathTheBeautiful
Рет қаралды 35 М.
Numerical Integration - Gaussian Quadrature
17:17
The Math Guy
Рет қаралды 45 М.
The Impossible Problem NO ONE Can Solve (The Halting Problem)
20:24
Gaussian Quadrature 1: Summary of Legendre Polynomials
9:19
MathTheBeautiful
Рет қаралды 44 М.
Review of Decomposition by the Dot Product
15:30
MathTheBeautiful
Рет қаралды 23 М.
Gaussian Quadrature | Lecture 40 | Numerical Methods for Engineers
8:51
What Are Orthogonal Polynomials? Inner Products on the Space of Functions
10:52
Lehanga 🤣 #comedy #funny
00:31
Micky Makeover
Рет қаралды 20 МЛН