logarithm of a matrix

logarithm of a matrix. I calculate ln of a matrix by finding the eigenvalues and eigenvectors of that matrix and by using diagonalization. It's a very powerful tool that allows us to find exponentials, sin, cos, and powers of a matrix and relates to Fibonacci numbers as well. This is a must see for any linear algebra and calculus student studying for their exams.
YT channel: kzread.info
TikTok channel: www.tiktok.com/@drpeyam
Instagram: peyamstagram
Teespring merch: teespring.com/stores/dr-peyam

Пікірлер: 62

  • @mathkaveli11
    @mathkaveli11 Жыл бұрын

    I love the additional cool effects and the simple story revealing a cool mathematics feature. Keep up the great work

  • @VideoFusco
    @VideoFusco Жыл бұрын

    there is one thing that doesn't add up to me: this technique for calculating a function of a matrix is ​​based on the MacLaurin series expansion. But ln(x) is not defined at 0 and, in any case, if another development center is chosen, it will have a finite radius of convergence and the n-th term of the development does not contain x^n but (x-x0)^n .

  • @user-pr6ed3ri2k

    @user-pr6ed3ri2k

    Жыл бұрын

    Apparently you can fix this by replacing 1 in the Taylor series of ln(x) at 1 with the identity matrix since that's basically 1 anyways

  • @VideoFusco

    @VideoFusco

    Жыл бұрын

    @@user-pr6ed3ri2k All of the previous matrix function videos, which Dr. Peyam refers to to skip the intermediate steps, use the expansion around x=0. If he now uses an expansion around another point, he should demonstrate that this still allows the action of f to be transferred integrally to the diagonal matrix (especially, as in this case, if the series of f has a limited radius of convergence). This is not so obvious.

  • @curtiswfranks
    @curtiswfranks Жыл бұрын

    I like your candidness at the end.

  • @onlyonecjb001
    @onlyonecjb001 Жыл бұрын

    So enthusiastic it is infectious. Thank you for sharing.

  • @legendarynoob6732
    @legendarynoob6732 Жыл бұрын

    Always love your Linear Algebra videos❤

  • @yangchen1466
    @yangchen1466 Жыл бұрын

    Great job, Dr. Peyam!

  • @garyhuntress6871
    @garyhuntress6871 Жыл бұрын

    I love all your vids but especially linear algebra.

  • @mohammadburhanmanzoor3806
    @mohammadburhanmanzoor3806 Жыл бұрын

    Simple and sweet.👌🏻

  • @pnachtwey
    @pnachtwey Жыл бұрын

    What is it useful for is a good question. I often use exp(A*dt) to convert continuous to discrete time matrices for simulation.

  • @Risu0chan
    @Risu0chan Жыл бұрын

    Interestingly, there is a relation for log in terms of power series, log(A) = - Σ (1 - A)^k / k, if it converges. With real (or complex) numbers a, the requirement for convergence is |a-1| edit: the spectral radius (maximum |eigenvalue|) must be < 1

  • @drpeyam

    @drpeyam

    Жыл бұрын

    Still true if you require ||A|| < 1 depending on which norm you use

  • @user-fy5tn7sy3t
    @user-fy5tn7sy3t Жыл бұрын

    Its last a video but benefit for renewing infromation 👍 Thank u doctor

  • @minimath5882
    @minimath5882 Жыл бұрын

    it's useful for making us happy!

  • @ThAlEdison
    @ThAlEdison Жыл бұрын

    I'm probably butchering the terms below. So I usually see derivations of the diagonizability of certain functions done by using a Taylor series expansion. However the radius of convergence for the series representation of log is finite. Does that mean that using log in the case of a Matrix has to be within some radius of convergence in order for this to work?

  • @RSLT
    @RSLT Жыл бұрын

    fun and nostalgic. ln and exp are used in state space.

  • @dominicellis1867
    @dominicellis1867 Жыл бұрын

    Can't you use the ln power series once you diagonilize the matrix? Is there a proof that the inverse function of the power series of e^x = the power series for lnx, or does the discontinuity at x = 0 exclude it as a metamorphic function?

  • @General12th
    @General12th Жыл бұрын

    So cool!

  • @tomaszkochaniec9421
    @tomaszkochaniec9421 Жыл бұрын

    will this procedure work if we use quaternions instead of real numbers?

  • @lliliilllilillliiil2409
    @lliliilllilillliiil24093 ай бұрын

    thx a lot

  • @wjrasmussen666
    @wjrasmussen666 Жыл бұрын

    amazing!

  • @mertaliyigit3288
    @mertaliyigit3288 Жыл бұрын

    Peyam can you show cool stuff of generating functions? It has great amounts of conteny

  • @pmz558
    @pmz55810 ай бұрын

    Could you do a video on the hyperdetetminant of a hypermatrix ? And maybe 2x2 for example

  • @mathunt1130
    @mathunt1130 Жыл бұрын

    Intuitively I would think that the log of a matrix is defined via its power series. However, there is no power series for log(x), only for log(1+x). So, it would make sense to me, to take away the identity matrix away from the matrix in question and use that in the power series. From there, you can do the usual diagonalisation as was done in the video, and obtain the log of the matrix in question. Simply doing that for the matrix straight away, seems wrong.

  • @DrDeuteron
    @DrDeuteron Жыл бұрын

    Does log of matrix interpolate rotations, like SLERP for quaternions…..idk it’s been a while.

  • @berryesseen
    @berryesseen Жыл бұрын

    ln(A) makes sense because of the power series. If you compute the series A + A^2/2 + A^3/3 + ... you will get ln(I + A) as long as the series converges. Without this information, ln of a matrix looks so arbitrary and useless. But viewing ln(A) or exp(A) or sin(A) or whatever smooth function you want as a short-hand notation for a series expansion of a specific square matrix helps a lot. It's also consistent with regular notation since scalars are 1 by 1 matrices.

  • @user-dl8nk5bf8v
    @user-dl8nk5bf8v Жыл бұрын

    We can calculate logarithm by integration ln X = ∫_{ I }^{ X } T^{ - 1 }dT. We choose integral path as T = ( 1 - t )I + tX dT = ( X - I )dt Then we can express ln X as ln X = ∫_{ 0 }^{ 1 } ( ( 1 - t )I + tX )^{ - 1 }( X - I )dt

  • @ElifnurKale-fj2ex
    @ElifnurKale-fj2ex Жыл бұрын

    Very nice🥰🥰

  • @michaelbaum6796
    @michaelbaum6796 Жыл бұрын

    Thanks a lot for this nice video👌

  • @drpeyam

    @drpeyam

    Жыл бұрын

    Most welcome 😊

  • @jakemoll
    @jakemoll Жыл бұрын

    1:55 could you please explain why taking ln of the matrix on the left means you take ln of each element in the diagonal matrix?

  • @IdunDied

    @IdunDied

    Жыл бұрын

    it's because it's the inverse of e^(Matrix). When you take e to the power of matrix, and do the diagonalized matrix form with eigenvalues diagonal in middle, and eigenvector matrices on each side, you take e to the power of each of the elements in diagonal matrix part and leave the eigenvector matrices on the outsides. So the inverse of that is to take ln of the elements in the diagonal matrix. Explanation of why that works is in dr peyam "e to a matrix" video. It's due to power series definition of exponential. TLDR is it's a sum and the eigenvector matrices multiply each term but aren't affected by the value of n you are on in the sum so can be taken out as constants. And then how the exponential power series (sum) works on diagonal(eigenvector) matrix is same as taking the exponential of the diagonal elements individually. So when you do inverse of that you do inverse exponential (ln) of each element.

  • @Fetrose
    @Fetrose Жыл бұрын

    Great video. Why the Ln function applied to the eign value matrix?

  • @sauzerfenicedinanto

    @sauzerfenicedinanto

    Жыл бұрын

    It is a consequence of Cayley Hamilton's theorem applied to matrix functions en.wikipedia.org/wiki/Cayley%E2%80%93Hamilton_theorem

  • @jayyan4210
    @jayyan4210 Жыл бұрын

    great work! I also want to know what if the matrix is not diagonalizable? what condition is necessary for logarithm of a non-diagonalizable matrix? it confused me for a while.

  • @drpeyam

    @drpeyam

    Жыл бұрын

    You can always use Jordan form 😁 And it works as long as the eigenvalues are >= 1

  • @jayyan4210

    @jayyan4210

    Жыл бұрын

    @@drpeyam thank you!

  • @brendanlawlor2214
    @brendanlawlor2214 Жыл бұрын

    so the e(A) is a power series coz I'm wondering what is the point of an exponential matrix ? are they're physics applications ? saludos mi amigo favorito ! 😅

  • @markorfv252
    @markorfv252 Жыл бұрын

    Woohooo 🎉

  • @SpreeAlex
    @SpreeAlex Жыл бұрын

    But what if the matrix has at least one negative eigenvalue (non positive definite) ?

  • @drpeyam

    @drpeyam

    Жыл бұрын

    Imaginary!

  • @SpreeAlex

    @SpreeAlex

    Жыл бұрын

    @@drpeyam For all x

  • @ymchen362
    @ymchen362 Жыл бұрын

    Dr Peyam, can you further explain what a matrix is and how does it work? I love your videos so much

  • @ymchen362

    @ymchen362

    Жыл бұрын

    Btw could you please make a video about "cos(x) in Deutsch" XD

  • @colindickson6099

    @colindickson6099

    Жыл бұрын

    check out the linear algebra series on the channel 3Blue1Brown

  • @drpeyam

    @drpeyam

    Жыл бұрын

    See playlists

  • @ymchen362

    @ymchen362

    Жыл бұрын

    @@drpeyam 🙏

  • @sgcyt
    @sgcyt Жыл бұрын

    Are you alright man? We missed you lots!

  • @drpeyam

    @drpeyam

    Жыл бұрын

    Everything is well!!! Just tons of work, that’s all!

  • @NurHadi-qf9kl
    @NurHadi-qf9kl Жыл бұрын

    Ln2

  • @antoniocampos9721
    @antoniocampos9721 Жыл бұрын

    What can I say !!? Cool ......

  • @ILoveMaths07
    @ILoveMaths07 Жыл бұрын

    Why can't you just calculate the ln of each entry of the matrix right from the start? ln ((4 -2) (3 -1)) = ((ln 4 ln -2) (ln 3 ln -1))... the only problem is that the ln of negative numbers doesn't exist.

  • @cannonfodder8287
    @cannonfodder82873 ай бұрын

    Is this Calculus?

  • @drpeyam

    @drpeyam

    3 ай бұрын

    Linear algebra

  • @purim_sakamoto
    @purim_sakamoto Жыл бұрын

    いいね!

  • @joshuagutierrez9201
    @joshuagutierrez9201 Жыл бұрын

    First!

  • @maddscientist1050
    @maddscientist1050 Жыл бұрын

    It is usefule rotation matrix in quantum mechanics, expressing e rather than ln

  • @Eggontheconker
    @Eggontheconker2 ай бұрын

    I don't think I was supposed to see this given I'm just in 12th standard preparing for jee 💀💀💀

  • @drpeyam

    @drpeyam

    2 ай бұрын

    👍

Келесі