Doing calculus with a matrix!

Поділитися
Вставка
  • Опубліковано 23 бер 2022
  • MathMajor: / @mathmajor
    🌟Support the channel🌟
    Patreon: / michaelpennmath
    Merch: teespring.com/stores/michael-...
    My amazon shop: www.amazon.com/shop/michaelpenn
    🟢 Discord: / discord
    🌟my other channels🌟
    Course videos: / @mathmajor
    non-math podcast: / @thepennpavpodcast7878
    🌟My Links🌟
    Personal Website: www.michael-penn.net
    Instagram: / melp2718
    Randolph College Math: www.randolphcollege.edu/mathem...
    Research Gate profile: www.researchgate.net/profile/...
    Google Scholar profile: scholar.google.com/citations?...
    🌟Suggest a problem🌟
    forms.gle/ea7Pw7HcKePGB4my5

КОМЕНТАРІ • 120

  • @navidave9594
    @navidave9594 2 роки тому +142

    i could tell where this was going with having an integral be represented with the inverse matrix but seeing it in action and actually working is honestly so cool

    • @MichaelPennMath
      @MichaelPennMath  2 роки тому +74

      I think examples like this make a strong case for teaching Calculus and Linear Algebra simultaneously.

    • @barbietripping
      @barbietripping 2 роки тому +6

      @@MichaelPennMath I agree. Do you find it is true that many of your undergraduates arrive with a great eagerness to use calculus but with hardly any linear algebra background? When teaching high school (in FL) I was pressured to leave out all linear algebra topics, and they pressured me to spend 8 weeks at the end of my PreCalculus course teaching limits and derivatives.
      Maybe time for an AP Linear Algebra test?

    • @cuerti8327
      @cuerti8327 2 роки тому +4

      @@barbietripping Please no. High schoolers don't need any more AP classes. Moreover, AP curriculum often discourages learning "nonessential" concepts, so these kind of methods would not be taught in most places because "it won't be on the test". While the ideas behind it (i.e. linear operators, vector spaces, etc.) was taught in my linear algebra class last year, so many concepts were already left out.

    • @barbietripping
      @barbietripping 2 роки тому +2

      @@cuerti8327 good point. I recall taking the AP Calculus test and receiving the maximum score, but my teacher had not gone over proofs or derivations of hardly anything. Perhaps collegeboard is not the right party to trust for this.
      But should there not be some attempt to put linear algebra on a similar playing field to calculus in the pre-college curriculum?

    •  2 роки тому

      @@MichaelPennMath And category theory! (Though in practice, you want to be using techniques from category theory 'in the background' for a while, to build useful intuitions, and then introduce fully generalised abstract nonsense in a later course. Basically, exactly like you are doing it here.)

  • @cuerti8327
    @cuerti8327 2 роки тому +14

    Another fun way to solve the integral at 11:22 is complexification! e^x*sin(x)=Im{e^((1+i)x)}, so it's integral is Im{e^((1+i)x)/(1+i)}=1/2*e^x*Im{(1-i)*(cos(x)+i*sin(x))}=1/2*e^x*(sin(x)-cos(x)).
    The "normal way" to solve such integrals in a first year calculus class is integration by parts, and it is such a pain.
    In fact, all of these methods are related.

  • @MooImABunny
    @MooImABunny 2 роки тому +39

    about the second vector space you mentioned, V = span{e^x sinx, e^x cosx}, if you go ahead and diagonalize the derivative matrix, you'll find that its eigenvalues are (1±i)
    from the point of view of complex analysis, a more natural basis for this space would be to write sinx = (e^ix - e^-ix)/2i, cosx = (e^ix + e^-ix)/2, and find the basis {e^[(1+i)x], e^[(1-i)x]}, which just so happens to be the basis that diagonalizes the derivative D
    just another fun little part of it

    • @cuerti8327
      @cuerti8327 2 роки тому +7

      This shows how the integral can be solved with complexification.
      e^x*sin(x)=Im{e^((1+i)x)}, so it's integral is Im{e^((1+i)x)/(1+i)}=1/2*e^x*Im{(1-i)*(cos(x)+i*sin(x))}=1/2*e^x*(sin(x)-cos(x)).

    • @MooImABunny
      @MooImABunny 2 роки тому +2

      @@cuerti8327 yep yep

  • @mathflipped
    @mathflipped 2 роки тому +45

    I love the problems where several math fields come together. Great video, Michael!

  • @pwmiles56
    @pwmiles56 2 роки тому +28

    Another application is to functions
    P= (a*x^2 + b*x + c)*exp(x)
    In this case the differentiation operator is
    D =
    1 0 0
    2 1 0
    0 1 1
    The inverse operation i.e. antidifferentiation is
    I = D^(-1) =
    1 0 0
    -2 1 0
    2 -1 1
    E.g. to find the indefinite integral of
    Q = x^2*exp(x)
    the result is
    exp(x)*[x^2 x 1]'*I*[1]
    [0]
    [0]
    = exp(x)*(x^2 - 2*x + 2)
    Of course, this would extend to higher powers i.e. x^3 exp(x) etc

  • @JonathanMandrake
    @JonathanMandrake 2 роки тому +50

    About the basis: In our Linear Algebra Lecture, we chose x^n /n! to be the basis, such that D is a matrix with 0 almost everywhere and 1 on the spaces 1 below the diagonal. The Integral could be defined as D^T as long as you can actually integrate the function and stay in P_n, so it has to be a polynomial in P_(n-1) for the Integral to be in P_n

    • @barbietripping
      @barbietripping 2 роки тому +1

      Ah that seems very clean. I think for people being introduced (viewers of this video) it helps to see these small examples where the basis doesn’t include the reciprocals of factorials.

    • @JonathanMandrake
      @JonathanMandrake 2 роки тому +3

      @@barbietripping Yeah, for sure it helps if you aren't experienced enough with higher maths, it was just a note for those comfortable enough with the material

    • @adamnevraumont4027
      @adamnevraumont4027 2 роки тому +2

      You can drop the finite dimensional requirement on the Polynomial space (and just require finite support).

  • @MCLooyverse
    @MCLooyverse 2 роки тому +6

    On the final comment about a missing (or not) constant, would it be right to say that it's because we've limited the domain of our derivative, so we can fairly limit the image of our anti-derivative as well? When you say "The anti-derivative of `1` is `x + c`", it's because *any* function of the form `x + c` will have a derivative of `1`, but here, we have functions of the form `(a ⋅ cos x + b ⋅ sin x) ⋅ e^x` only, and so there is only one function of the form `(a ⋅ cos x + b ⋅ sin x) ⋅ e^x + C`, namely `(a ⋅ cos x + b ⋅ sin x) ⋅ e^x + 0`

  • @mundocanibaloficil
    @mundocanibaloficil 2 роки тому +1

    the anti-derivative in the second example was really cool

  • @alessandrovistocco2488
    @alessandrovistocco2488 2 роки тому +8

    This is by far my most favorite video of yours: crystal clear and so insipiring! Thank you so mich for uploading this.

  • @manucitomx
    @manucitomx 2 роки тому +7

    This has been one my most favorite videos in all the time I’ve been following the channel.
    Thank you, professor.

  • @jantarantowicz1306
    @jantarantowicz1306 2 роки тому +4

    Great video, very insightful! I especially loved the last part when you calculate the integral of e^x sinx

  • @aristo7051
    @aristo7051 2 роки тому +2

    I have to say Micheal Penn yt channel is by far the best in the math category.
    Now there’s a seperate channel going in depth??!
    We are truely so blessed

  • @camrouxbg
    @camrouxbg 2 роки тому +2

    This is so gorgeous, and so much fun! Having these kind of examples to show that matrices can do more than "just" systems of equations, and really dig in to the abstraction (but in an oddly concrete way) is so fantastic and valuable. Thanks!

  • @goodplacetostop2973
    @goodplacetostop2973 2 роки тому +9

    13:18

  • @kodirovsshik
    @kodirovsshik 2 роки тому +1

    Videos like these make me love math more and more every day
    Thank you for this awesome video!

  • @onesagotoomany
    @onesagotoomany 2 роки тому +1

    You often make these kind of videos with totally understandable math (fwiw: some undergraduate but not a math major), but used in a way I've never seen before, that blows my mind. It always feels like a round of applause is needed at the end! So inspiring. Thank you.

  • @AJ-et3vf
    @AJ-et3vf Рік тому

    Awesome video! Thank you!

  • @THEDeathWizard87
    @THEDeathWizard87 2 роки тому +2

    That is such a cool way to take an integral. If I had more background in linear algebra I could see this technique being extremely useful

  • @user-tl6fd1vy8r
    @user-tl6fd1vy8r 2 роки тому

    This is a really fantastic video, it’s the first one of yours I’ve really understood as a first year undergrad. I would love more!

  • @seismicdna
    @seismicdna 2 роки тому

    very eye opening, thank you sir

  • @stmmniko7836
    @stmmniko7836 2 роки тому +1

    Good job with this video!

  • @echandler
    @echandler 2 роки тому

    Quite instructive. I enjoy seeing a mixture of disciplines. IMO linear algebra leads well into some concepts in differential equations.

  • @BrandonRadtke
    @BrandonRadtke 2 роки тому

    Extremely interesting, thanks!

  • @Hazuls
    @Hazuls 2 роки тому

    Kind of like magic at the end!

  • @MaxPicAxe
    @MaxPicAxe 2 роки тому

    That was so fricking cool!

  • @bilalabbad7954
    @bilalabbad7954 2 роки тому

    Great idea

  • @thomasmay6277
    @thomasmay6277 2 роки тому

    An interesting finite dimensional vector space to do these calculus operations on the Walsh functions. The subsets of size of powers of 2 are closed under integration and most other arithmetic operations.

  • @sriramsankar8958
    @sriramsankar8958 2 роки тому

    woooooooooooooow mind=blown daaamn, felt what i was taught could have been explained this way

  • @calyodelphi124
    @calyodelphi124 2 роки тому

    This is actually kind of mindblowing, and now I need to pocket your other channel so I can start to really dig into linear algebra like I've wanted to for years. :D

  • @Chalisque
    @Chalisque 2 роки тому

    Perhaps a better way of explaining the +C situation is that your function space is factored by the equivalence relation f~g iff f=g+c for some constant c.

  • @TheAzwxecrv
    @TheAzwxecrv 2 роки тому

    Beautiful. I really like it.

  • @li__on6403
    @li__on6403 2 роки тому +1

    wow this was the best math video I have seen in a while

  • @johnnisshansen
    @johnnisshansen 2 роки тому

    exitingly clear

  • @YOUSIFPOTATOYT0
    @YOUSIFPOTATOYT0 2 роки тому

    This is a very awesome idea

  • @gamerrossi3007
    @gamerrossi3007 2 роки тому

    Nice video, good work!!!!
    Can you make a video about smooth manifolds and Hopf-Rinow theorem and some examples (i Did a thesis(Tesi triennale italiana)about that marvelous theorem)

  • @peterhall6656
    @peterhall6656 2 роки тому

    When I did linear algebra in 1970 in Australia it was mixed with calculus like this. Nice video Michael. You really do package these ideas very well and your students should develop good ways of looking at problems from the high level down.

    • @godfreypigott
      @godfreypigott 2 роки тому

      Would that have been at Sydney Uni? If so, just wondering if Terry Gagen was teaching back then?

  • @ongzz
    @ongzz 2 роки тому +1

    my mind is blown! didn't think linear algebra could be used with calculus like this!

  • @abrahammekonnen
    @abrahammekonnen 2 роки тому

    As usual great video, though if you wanted to change the integral we get from the new context to our old context would we just add +C to the integral we got?

  • @paulhan8896
    @paulhan8896 2 роки тому

    Honestly the best channel on yt

  • @edwardlulofs444
    @edwardlulofs444 2 роки тому

    Fun. Thanks

  • @acortis
    @acortis 2 роки тому

    I enjoyed the video. I guess my only methodological objection for the second example would be that if we start with just the integral, how do we define the original vector space that we began with? It seems like that requires some intuition of what goes into the basis, right?

  • @lucachiesura5191
    @lucachiesura5191 2 роки тому

    It's possible the inverse situation: f.i e^A, where A is a matrix for a lot of applications in rational mechanic and other...

  • @ConManAU
    @ConManAU 2 роки тому +7

    Great explanation of these mappings! You kind of touch on it near the end, but you can make things a little less messy by using the fact that a linear map can be completely described by its actions on the basis vectors. So instead of differentiating a e^x cos x + b e^x sin x, you could just check what d/dx e^x cos x and d/dx e^x sin x are and that gives you the columns of the matrix.

    • @MichaelPennMath
      @MichaelPennMath  2 роки тому +3

      For sure, and in a course setting, this type of representation theorem would be proven just after these examples!

  • @EngineerNick
    @EngineerNick 2 роки тому

    So cool thankyou :)

  • @wesleyrm
    @wesleyrm 2 роки тому

    Every linear transformation with a basis can be represented as a matrix.

  • @jorex6816
    @jorex6816 2 роки тому +2

    This is so cool

  • @liyi-hua2111
    @liyi-hua2111 2 роки тому +2

    oh! a defined integral is a linear functional which can be represented as < · , v > where v is fixed. fun!
    (I thought this video is going to teach matrix derivative or matrix calculus.
    en.m.wikipedia.org/wiki/Matrix_calculus )

  • @pelegsap
    @pelegsap 2 роки тому

    Beautiful.

  • @ashwinjain5566
    @ashwinjain5566 2 роки тому

    Extremely cool!

  • @leobattle9489
    @leobattle9489 2 роки тому

    Interesting.
    What happens if the matrix has no inverse?
    Is multiplying by the matrix square root related to the half derivative? There can be multiple matrices that square to the same thing.

  • @mastershooter64
    @mastershooter64 2 роки тому +1

    functional analysis!!!

  • @rishabhbhardwaj2873
    @rishabhbhardwaj2873 2 роки тому

    Can we have more of these videos please. Let's see if we can apply this for any arbitrary smooth function, since that has a nice Taylor expansion we know there is an obvious map between \sum_{n=0}^{\infty} a_n x^n and {a_1,a_2,a_3,...} (infinite dimensional vector space) this means the corresponding linear transformations are infinite dimensional matrices, how can we deal with those?

  • @weonlygoupfromhere7369
    @weonlygoupfromhere7369 2 роки тому

    I have been wondering if this was possible for the longest time

  • @violetsaathoff7111
    @violetsaathoff7111 2 роки тому

    So, could we extend this by exponentiating the matrix to computer the nth derivative/antiderivative? (Exponentiation done via diagonalization)

  • @derendohoda3891
    @derendohoda3891 2 роки тому +1

    linear algebra never fails to be cool

  • @chrstfer2452
    @chrstfer2452 Рік тому

    How does a dot/inner product work for the polynomial example? Separately, does this mean the {x^2,x,1} basis act like covectors for polynomials?

  • @aafrophonee
    @aafrophonee 2 роки тому +1

    In your first example with the polynomials (I think you also do this with the exp-trig example), when you draw the arrows down from ℙ2 space to ℝ3, what symbol are you writing next each arrow? It looks like a 2 or a dotless question mark

    • @MichaelPennMath
      @MichaelPennMath  2 роки тому +1

      it is a ~. an arrow with a ~ can be used to mean "isomorphic"

    • @aafrophonee
      @aafrophonee 2 роки тому

      @@MichaelPennMath Great, thanks! I'm guessing you probably state this in your Linear Algebra series on your new channel. I'll go check that out

  • @Harish-ck5ny
    @Harish-ck5ny 2 роки тому

    Sir actually i too love to do math .iam now studying in clss 12th and want to get in to your field .can u pls guide me about from where and how should i go forward.

  • @chrisjuravich3398
    @chrisjuravich3398 2 роки тому

    Good afternoon, Professor. I have absolutely no idea what you are talking about, but it sure does look interesting. What are the prerequisites for this course?

    • @mattsgamingstuff5867
      @mattsgamingstuff5867 2 роки тому

      For the stuff in this video the pre-reqs would be a passing familiarity with basic calculus and some fundamental linear algebra. For the expanded course stuff I don't know, but for topics in linear algebra high school math through algebra 2 and some familiarity with mathematical proof is probably sufficient.

  • @TaladrisKpop
    @TaladrisKpop 2 роки тому

    That would have been nice (and in my opinion more interesting) to interpret the column of the matrix as the images of a base of the vector space by the linear application.

    • @JoQeZzZ
      @JoQeZzZ 2 роки тому

      Yeah agreed. The concept is really neat but I found the video made it overly complicated since the simple fact that this works already relies on the linearity of the derivate. Why not just differentiate each basis vector and see where they are in the image and you get your matrix column vectors for free! This relies on a piece of linear algebra intuition rather than cranking the dreary algebra machine by differentiating the general case of [a,b]ᵀ in function space

  • @lachlanperrier2851
    @lachlanperrier2851 2 роки тому

    That was amazing wtf

  • @lexhariepisco2119
    @lexhariepisco2119 2 роки тому

    this is beautiful

  • @vidhanp482
    @vidhanp482 2 роки тому

    Wait when you related it to R3 why do they have to be the basis vectors, why not any variable non orthonormal vectors?

  • @amirasd8509
    @amirasd8509 2 роки тому

    can we do this for triple integrals as well?

  • @wagsman9999
    @wagsman9999 2 роки тому

    Very cool

  • @JoQeZzZ
    @JoQeZzZ 2 роки тому

    I think by trying to do the entire derivative in one (a exp(x)cos(x) + b exp(x)sin(x)) you're maybe more general, but the entire argument that this is possible hinges on the fact that the derivate is linear anyway. But this means that in order to construct the matrix we just need to look "what happens" to each basis vector (with [1,0]ᵀ≡exp(x)sin(x), [0,1]ᵀ≡exp(x)cos(x))when we apply transformation D on it (differentiate).
    [D][1,0]ᵀ = [1,1]ᵀ
    [D][0,1]ᵀ = [-1,1]ᵀ
    So D= [[1,-1],[1,1]]
    Isn't this a more elegant way to find the matrix? Less algebra and more intuition based surely. In order to construct a matrix I always just look at where the basis vectors end up after the transformation.

  • @rsactuary8763
    @rsactuary8763 2 роки тому

    I like given just for the support represented in the T-Shirt.

  • @DeanCalhoun
    @DeanCalhoun 2 роки тому +2

    as I read once: mathematics is the study of linear algebra

  • @NA-dx5nt
    @NA-dx5nt Рік тому

    nice!

  • @jceepf
    @jceepf 2 роки тому +7

    I deal with Taylor represemtations of Taylor maps (via truncated power series algebra), so I eat Prof. Penn's stuff for breakfast! My work is in accelerator physics where the map around a ring can be approximated by a Taylor series sometimes and then analysed.
    Very useful indeed.

  • @nucreation4484
    @nucreation4484 2 роки тому

    Cool!

  • @IvanisIvan
    @IvanisIvan 2 роки тому

    yo i am learning about linear algebra now!!!

  • @therealAQ
    @therealAQ 2 роки тому

    what if the base of the vector space are the roots of the polynomial instead of its coefficients?

    • @stewartzayat7526
      @stewartzayat7526 2 роки тому +1

      The base chosen in the video isn't made of the coefficients, it's made of monomials: {x^2, x, 1}. The coordinates of the vectors with respect to this base are the coefficients.
      So if you wanted to find a base B, such that the roots of the polynomial are its coefficients, then that's impossible because such a polynomial has at most 2 roots (except for the 0 polynomial), but the space is 3 dimensional.

    • @therealAQ
      @therealAQ 2 роки тому

      lol

  • @CorbinSimpson
    @CorbinSimpson 2 роки тому

    It's cool how much can be done without Mat, Vect_k, or the rest of the heavyweight category-theory machinery, just by studying mappings between Mat and Vect_k without introducing the categories.

  • @masonholcombe3327
    @masonholcombe3327 2 роки тому +1

    So you're saying when I forgot the +C on my calculus exams, i could have just mentioned I was working in a certain function space? Lol

  • @theproofessayist8441
    @theproofessayist8441 2 роки тому

    Any of you guys still interested in doing calculus with matrices step by Dr. Peyam too! He has some treats on there.

  • @panadrame3928
    @panadrame3928 2 роки тому

    Sadly it doesn't work for rational functions since it's not stable by integration

  • @SuperSilver316
    @SuperSilver316 2 роки тому +1

    Sent the +C to the shadow realm

  • @txikitofandango
    @txikitofandango 2 роки тому +2

    Would be pretty cool to learn calculus starting from these simple operations, which is actual numbers and data structures you can understand, and then later on applying it to limiting processes of secant lines, which is the baffling way we learn calculus nowadays

    • @hybmnzz2658
      @hybmnzz2658 2 роки тому +3

      That's an interesting take. I would think the "limit of secant lines" appeals to geometry and is easier to digest. Where I'm from we don't touch matrices in highschool and it makes things complicated for sure.

  • @pmcate2
    @pmcate2 2 роки тому

    Cool! So would this fall under representation theory?

    • @MichaelPennMath
      @MichaelPennMath  2 роки тому +2

      kind of.... derivative operators on a function space form a Lie algebra so this is towards a representation of the Lie algebra of derivations of the polynomial vector space.
      In general representation theory is the study of algebraic structures via linear algebra -- so you look at how they act on vector spaces.

  • @howwitty
    @howwitty 2 роки тому

    NICE! Great way to show what a definite integral is.

  • @MrRyanroberson1
    @MrRyanroberson1 2 роки тому

    13:08 "because one of the basis vectors is not equal to the number 1" you keep doing this in more and more scenarios now- you use "is not" as the simple negation of an all/every/exists statement, which does NOT logically match what you intend: where your intention matches 'the claim "x is y" is false', that is not how mathematical logic proceeds when you have quantifiers in play. The reason you provided states that if ANY of the basis elements are not 1 (or, generously, a nonzero real numner), that a +C is unnecessary.

  • @noumanegaou3227
    @noumanegaou3227 2 роки тому +1

    11 vedios in math major is all video of linear algebra there no more video

  • @tamarpeer261
    @tamarpeer261 2 роки тому

    Hey! Your shirt is the flag of the Jewish Autonomous Oblast!

  • @alpharum3141592
    @alpharum3141592 2 роки тому

    You impressed me with the rainbow t-shirt (I guess)

  • @baltofarlander2618
    @baltofarlander2618 2 роки тому

    Is your shirt based on Jewish Auutonomous Oblast flag?

  • @nevokrien95
    @nevokrien95 2 роки тому

    is the prideshirt a statement?

    • @MichaelPennMath
      @MichaelPennMath  2 роки тому +10

      Do I support LGBTQIA+ causes, yes... Was I thinking about that when wearing this awesome shirt, not really.

    • @nevokrien95
      @nevokrien95 2 роки тому

      @@MichaelPennMath
      Its this type of stuff that let's us spot eachother. Thought u may have clued us in on something.
      I still like the video and i think the shirt adds

    • @JohnFallot
      @JohnFallot 2 роки тому +1

      @@nevokrien95 I’m just here for the shirt. (jk)
      In all seriousness though: I’d prefer that we don’t out people that aren’t out, especially if they aren’t even “in” to start. And, speaking as a gay man, I hope that we’d all support you and your excellent math explainers no matter what!
      And that’s a good place to stop

  • @ojasdeshpande7296
    @ojasdeshpande7296 2 роки тому

    I started the vid and within 30sec i know that I won't understand a bit

  • @lucachiesura5191
    @lucachiesura5191 2 роки тому

    A lot of omeomorphismes...

  • @jettzheng2791
    @jettzheng2791 2 роки тому

    The tall pansy oceanographically replace because slipper contextually expect per a uptight overcoat. thankful, wrong swimming