2 to a matrix

2 to a matrix. I calculate two to the power of a matrix using tools from linear algebra, more precisely diagonalization and eigenvalues and eigenvectors. This is related to matrix exponentials and logarithms, which are used to solve systems of differential equations and decouple particles. This is useful for college calculus and linear algebra students and anyone interested in data science. I also give a formula similar to the geometric series, and I'm wondering if this is useful in computer science and binary integer representations.
Subscribe to my channel: kzread.info
TikTok: www.tiktok.com/@drpeyam
Instagram: peyamstagram
Teespring merch: teespring.com/stores/dr-peyam

Пікірлер: 122

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

    Me: "Is this even possible?" Dr. Peyam:"What am I, an amateur?"

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

    One of calmest and coolest person I have never seen. Fantastic explanation. Thanks a lot Dr.

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

    Inverse function of the factorial

  • @Tanvir_Ahmed_Earth

    @Tanvir_Ahmed_Earth

    Жыл бұрын

    Can @DrPeyam do this?pls do this

  • @scooberdoom3502

    @scooberdoom3502

    Жыл бұрын

    @@Tanvir_Ahmed_Earth it's such a cool question. Best answer I could find involving sterlings formula with a lambert W popping up inside. No idea how to approach it for a matrix equation but I'm quite sure, if anyone, our man is capable

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

    LOVE YOU DR. PEYAM!! I am studying Mathematics at Imperial College London and your videos really help me get through the difficulty of the course. Thank you so much! Keep up the great content

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

    wow, cool edits!

  • @oximas-oe9vf
    @oximas-oe9vf Жыл бұрын

    This just looks like pure wizardry to me as I don't know linear algebra 😂

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

    Editing cool and smooth, professor!

  • @drpeyam

    @drpeyam

    Жыл бұрын

    Thank you!!!!

  • @theproofessayist8441

    @theproofessayist8441

    Жыл бұрын

    Yeah those transitions were really smooth - finding eigenvectors is just tedious row reduction so we can skip that!

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

    This is like every "what are eigenvalues and eigenvectors?" video but in reverse, and it's pretty nifty that you made it work. Like, I remembered that you've gotta use them to calculate matrix exponentiation, but I didn't remember how or why. And now I do. In about 5 minutes. Pretty sure that was about 2 full weeks of Linear Algebra you just refreshed for me.

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

    Good. The exponential of matrix is applied to ODE. u'( x ) = - ( log 2 )u( x ) + 2( log 2 )v( x ) v'( x ) = - 6( log 2 )u( x ) + 6( log 2 )v( x )

  • @drpeyam

    @drpeyam

    Жыл бұрын

    Oooh that’s a nice application with the log(2)

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

    Binary matrices are commonly used for encryption.

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

    Lovely as always! Again for those rusty in linear algebra. Diagonal matrix form A=PDP^-1 where P is orthogonal matrix is made up of columns of your eigenvectors and D is diagonal matrix whose diagonal entries are the eigenvalues and everything else is zero. Stuff prior that is solving for characteristic polynomial to find eigenvalues and then plug them in and solve for when the matrix A-\lambda*(Identity Matrix) maps to the zero vector - then just lots of row reduction. *the yucky part for me - just my opinion lol*.

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

    matrix exponentials are also used to test the stability of LTI control systems

  • @oximas-oe9vf

    @oximas-oe9vf

    Жыл бұрын

    What's an LTI control system ? If you may explain please

  • @vidhanp482

    @vidhanp482

    Жыл бұрын

    @@oximas-oe9vf a physical system whose change in state i.e like change in position depends only on the previous state. If these quantities vary linearly and don't vary with time( only due to the previous state) they are linear time invariant, more formally any physical system whose laplace transfer function can be written as a proper fraction of two polynomial transfer functions.

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

    Lovely video as usual Professor. Matrices are my happy place 😊🤍💭🔡

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

    Should show that with Jordan form (and with any analytic function for that matter) to make it more general + work with any matrices - including non diagonalizable ones.

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

    Nice video, also a nice exercise to work out from the more general context of functional calculus/spectral theory on operator algebras

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

    Matrices in general behave like a scalar value within a special context; that is, when the matrix is operating on some vectors called the Eigenvectors of that matrix assuming that such exist for that particular matrix. So the idea of raising a scalar to another scalar is well defined in algebra. And the idea is even less strange if the initial problem is converted in terms of a logarithmic equation.

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

    e^x can be defined whenever x is an element in a Banach algebra

  • @MC-zv2zu
    @MC-zv2zu Жыл бұрын

    Sir, you are inspirational. Everyone who have some proximity to mathematics will benefit a lot from you. Thank you.

  • @drpeyam

    @drpeyam

    Жыл бұрын

    Thanks so much!!

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

    I like the way you present yourself

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

    Really nice, we feel your passion

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

    Loved it! 😇💐

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

    Wow that's interesting😮.... You always come up with great content💖

  • @marcelob.5300
    @marcelob.5300 Жыл бұрын

    Thanks Dr Peyam.

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

    Suprised to see such a freindly matrix.

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

    this is really cool, i like it!

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

    me encantan tus videos , te felicito

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

    Matrix exponentials are extremely useful in the field of statistics statistics. The density function of the multivariate Gaussian distribution has one of these babies in it.

  • @locallyringedspace3190

    @locallyringedspace3190

    Жыл бұрын

    In that case, the positive definite matrix generates an inner product (mapping vectors from the sample space to R) - so the exponential is scalar-valued. This is important in a lot of proofs since the scalar exponential is monotonic while the matrix exponential is not.

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

    Always excited to watch your videos 😍😍 Love from India

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

    SIR, YOU ARE THE BEST IN THE WORD!

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

    That reminds me, in geometric algebra a multivector tranform of form uMu⁻¹ is link to the notion of rotor spinor algebra and lie algebra, that explain why the exponential function is the heart of algebra .

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

    This seems to be the general process of performing operations with matrices. Could this be generalised, for a diagonalisable matrix A=PDP^-1, f(A) = P f(D) P^-1 If so, What restrictions do we have for f?

  • @ammaral-hakim3313

    @ammaral-hakim3313

    Жыл бұрын

    f should be analytic

  • @unknownhero6187

    @unknownhero6187

    Жыл бұрын

    I didn’t get why it is allowed to do transition for applying the operation to the elements of the diagonal matrix? What is the idea behind this?

  • @alexandruandercou9851

    @alexandruandercou9851

    Жыл бұрын

    @@unknownhero6187 Taylor or MacLaurin series. Acording to these an analytic function can be writen as f(x)= sum i->infinity fdi(0)*x^i/i!. If you put a matrix inside f ,f(A) =sum fdi* A^i/I!. A^i=(P*D*P^-1)^i =P*D^i*P^-1 eg. A^2=P * D* P^-1 *P *D * P= P*D^2*P^-1 f(A) =sum fdi(0)* P * D^i/ i!* P ^-1 = sum P* ( fdi(0) * D^i / i !) *P^-1 = P* (sum ( fdi(0)*D^i / i !) ) * P^-1 = P * f(D)* P^-1 D^I if D is diagonal has on the diagonal D(a,a) ^ i and 0 everywhere else , if you multiply each element of D^i with fdi(0) and 1/ I! You get on diagonals D(a,a) ^i *fd(0)/ i ! . Call this matrix D(i) f(A) = P * (sum over i of D(i) ) * P ^-1 Last step is to perform the sum, the resulted value sumDi has sum fdi(0)*D(a,a) ^ i/ i ! on the main diagonal which is just f(D(a,a)) . f(A) = P* sumDi * P^ -1. For a 2×2 matrix sumDi =[ f(D(a,a) 0 0 f(D(a,a) ] note: fdi means the i th derivative of f.

  • @severoon

    @severoon

    Жыл бұрын

    Hmm KZread needs to support LaTeX. =D

  • @theproofessayist8441

    @theproofessayist8441

    Жыл бұрын

    @@severoon Hell yes

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

    Eigenvalue decomposition of channel matrix is needed all the time for Wireless channel..

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

    i love Dr Peyam

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

    I am once again asking for your video on the Matrix-th derivative of a matrix. I think it is possible… . . . Applying the Gamma function to diagonalizable matrices and using a rotation matrix as f (for example).

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

    You are so happy doing math! That's how I was when I finally "got it".

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

    very satisfying

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

    This was a treat, I had seen the matrix exponential for e but hadn't though about other bases. So there's the matrix representation of complex numbers, just a first thought but could we diagonalize the matrix for i and then give a similar argument for i^i using matrices? thank you Dr. Peyam!

  • @drpeyam

    @drpeyam

    Жыл бұрын

    I think I did something similar in my playlist! Indeed you get a real matrix in that case

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

    notice u can chech a^B=C by doing a^(TrB)=Det(C) in this case 32

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

    Curious 👏♥️

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

    Luv these powers to a matrix great use of linear algebra . any applications to random matrices or quantum mechanics ? eres el padrino!!👍

  • @KabeloMoiloa

    @KabeloMoiloa

    Жыл бұрын

    QM: well... solving the time-independent schrodinger equation is determining the eigenvalues of a matrix in the finite dimensional case or the spectrum of an infinite dimensional operator. The time dependent equation is basically saying that if you can diagonalise H then you can diagonalise exp(-it H) and in the eigenbasis you a diagonal operator that acts as |E_n> →exp(-itE_n)|E_n> where E_n are the eigenvalues/energies.

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

    Dr payem!!!! my lovely crazy mathman😆😆😆😆

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

    jamás me hubiera preguntado algo asi como un numero elevado a una matriz..... gracias por ese video

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

    Great !!!!!!

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

    This is so interesting! I recently watched 3blue1brown’s video on raising e to the power of a matrix, and in that video he said that e^A was basically shorthand for plugging A into the Taylor series for e. Would this method of computation work for computing e^A as well? This method seems a lot less cumbersome then figuring out what an infinite series of matrices converges to haha

  • @drpeyam

    @drpeyam

    Жыл бұрын

    Of course!

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

    1:18 nice editing

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

    As someone who hasn't taken linear algebra What is this wizardry

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

    Man, math is so great

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

    I'm trying to find more articles about the power of a Matrix, but I can't find a detailed article about this with more examples. Can you recommend articles and e-books with more examples about this?

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

    I learned that method in a transmission technology lecture but don’t remember the application.

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

    Can you upload a new video like this every day? Thanks a wounderful channel)

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

    Can a function be taken to a matrix derivative?

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

    Very easy to solve : 1. First find out the determinant value of the matrix. 2. Now raise 2 to the power of that determinant value

  • @drpeyam

    @drpeyam

    Жыл бұрын

    No?

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

    Hi Dr. Peyam!

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

    Exponential of a matrix is well defined because exponential of a linear operator has a convergent series due to operator norm. Then how do you define this 2 raised to power of a linear operator?

  • @Learnerz_isle

    @Learnerz_isle

    Жыл бұрын

    The exponential of a matrix comes from its series expansion. So if u take 2^x, its maclaurin series would contain ln2 terms. The convergent may not be a issue as per I think, but i guess the series won't be the same.

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

    At 1:25 there is a small error in the 2nd matrix, 6 - 3 = 3 not 4.

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

    I checked using Julia language and it worked fine.

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

    Next Time can you try matrix Power matrix?

  • @drpeyam

    @drpeyam

    Жыл бұрын

    Already done :)

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

    Dr i I'm having a question regarding non homogeneous second order differential equations What will be the particular integral if second order differential equation get equal function with natural logarithms

  • @drpeyam

    @drpeyam

    Жыл бұрын

    ?

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

    thanks. video mentioned in 3:05?

  • @drpeyam

    @drpeyam

    Жыл бұрын

    It’s in the playlist :)

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

    I didn’t get why it is allowed to do transition for applying the operation to the elements of the diagonal matrix? What is the idea behind this?

  • @drpeyam

    @drpeyam

    Жыл бұрын

    Check out my eigenvalues playlist :)

  • @joaobaptista4610

    @joaobaptista4610

    Жыл бұрын

    The Caley-Hamilton theorem. Check for any linear algebra textbook that covers functions of square matrices.

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

    2:32 why thats true ????

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

    3Blue1Brown did 'e' to the power of a matrix!

  • @drpeyam

    @drpeyam

    Жыл бұрын

    I did that too :)

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

    that is so cool ! i love this video! but i don't reallly know how to diagonalize a matrix :/

  • @buttercantfly2181

    @buttercantfly2181

    Жыл бұрын

    and i know how eigenvalues and vectors work but i don't know why

  • @drpeyam

    @drpeyam

    Жыл бұрын

    Check out my playlists

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

    Un vrai génie malheureusement on l’utilise pas en mécanique quantique :/

  • @AbouTaim-Lille
    @AbouTaim-Lille Жыл бұрын

    Why do you define the Characteristic polynomial of a matrix by det (A- λI) rather than φ(λ)= det (λI - A) ? I know the difference is just a signal (-1)^n and it is meaning less . But the definition is standard and the characteristic polynomial is Always a unitary polynomial (i.e. the coefficient of t^n is always 1) .

  • @drpeyam

    @drpeyam

    Жыл бұрын

    It depends on the textbook, some define it one way others define it the other way

  • @viktor-kolyadenko
    @viktor-kolyadenko Жыл бұрын

    exp{A} = / Jordan matrix / = ...

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

    What happens if the matrix is not diagonalizable ?

  • @drpeyam

    @drpeyam

    Жыл бұрын

    Jordan form

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

    Man i feel so behind. Used to talk with these singaporean dudes and they were saying they were doing this like freshman or sophomore year lol

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

    why when i write this into calculator I get [0.5 4 1/64 64]?

  • @drpeyam

    @drpeyam

    Жыл бұрын

    The calculator calculates it incorrectly

  • @eckhardtdom

    @eckhardtdom

    Жыл бұрын

    @@drpeyam Well for a moment I thought calculating with matrices is easy :) It looks like it takes a little more progress to calculate it :)

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

    Is there a use for this? Applied math? We don't need applications where we're going!

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

    If y = m x + c Then y cos(θ) = x sin(θ) + c cos(θ) Where θ be any angle and c = intercept

  • @drpeyam

    @drpeyam

    Жыл бұрын

    ?

  • @adrienanderson7439

    @adrienanderson7439

    Жыл бұрын

    Do you write this because you could write the slope, m, as sin(θ)/cos(θ), where θ is the angle that the line would make with the positive x axis? So y= x (sin(θ)/cos(θ)) + c => y cos(θ) = x sin (θ) + c cos(θ). Like you could define the slope of lines using an angle and these trig functions rather then a number for rise over run.

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

    electroboom?

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

    Clp

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

    Girls when they a Bad B*tch: 💄💇‍♀️💃💅 Boys when they a Bad B*tch:

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

    🙃

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

    my brain hurts

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

    So this is how they got Tate.

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

    Dude why HDR in a math video lol it hurts my eyes

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

    This is impossible... my calculator says error: bad argument types

  • @kabivose

    @kabivose

    Жыл бұрын

    Don't believe your calculator - mine can't factorise (10^100) +1

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

    행렬은 문제로 내면 쉽지? 엑셀화해봐라

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

    What the heck is a Matrix

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

    Hello, every beoble:)

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

    Did you get the jab?