Rotation matrix derivation (step-by-step prove)

Поділитися
Вставка
  • Опубліковано 20 вер 2024
  • 👉 In this video we derive the Rotation Matrix that represents a coordinate transformation by rotation over an angle.
    🚀 Related Topics:
    Matrix Multiplication: • Vector Algebra - Exerc...
    👩‍🔬 If you have any questions, remarks or suggestions, leave a comment :)
    🎥 Subscribe:
    ua-cam.com/users/timo...
    Thanks for watching!
    #RotationMatrix #Stepbystep #Derivation

КОМЕНТАРІ • 118

  • @PenandPaperScience
    @PenandPaperScience  Рік тому +1

    📣 Studying math and science? 👉Visit www.ai-tutor.io for your personal homework assistant! 🚀

    • @PRIYANSH_SUTHAR
      @PRIYANSH_SUTHAR 10 місяців тому +1

      I think if you only want to rotate the coordinate system by alpha, you can multiply Matrix of unit vectors of original system by rotation matrix. And then as someone said before, multiply the new rotated vector by the inverse of the rotation matrix to get the vector back.

    • @PenandPaperScience
      @PenandPaperScience  10 місяців тому +2

      Yes, you can also do that. I even think it boils down to the same thing. (: What you're doing in your scenario is basically transforming a matrix, instead of two vectors.@@PRIYANSH_SUTHAR

  • @liquidportal9082
    @liquidportal9082 5 місяців тому +8

    By far the best derivation for rotational matrices on UA-cam. Excellent work.

    • @PenandPaperScience
      @PenandPaperScience  5 місяців тому +2

      Thank you for the kind words!
      I'm glad I could help :))

  • @EnduroDEV
    @EnduroDEV 2 роки тому +13

    Thank you, I was looking for exactly this kind of explanation.

  • @godslain9941
    @godslain9941 10 місяців тому +1

    Wow! Ive never heard anyone actually using the correct pronuciation for plus and beta like that! As an italian and a greek/latin student I really appreciate that!

    • @PenandPaperScience
      @PenandPaperScience  10 місяців тому +1

      :D
      That's a nice comment to get, thanks!
      (Belgian btw)

    • @yobniares
      @yobniares 3 місяці тому

      as a russian i appreciate that too :^)

  • @breakdancerQ
    @breakdancerQ Рік тому +3

    Didn't understand about cos/sin identities yet, but when I got that and came back to this I finally understand the derivation of this whole thing!

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

      Awesome! That's what learning mathematics is about (:

    • @duckymomo7935
      @duckymomo7935 11 місяців тому +1

      they didn't teach this/mentioned this at all in trig classes that angle sums is the rotation matrix

  • @NateRiver-h4p
    @NateRiver-h4p Місяць тому +1

    Very instructive, thanks

  • @MOXTHEGAMER
    @MOXTHEGAMER 6 місяців тому +1

    This is a wonderful video. I tried using my textbook to learn this, but this video made it so easy to understand. Absolutely love this video.

    • @PenandPaperScience
      @PenandPaperScience  6 місяців тому +1

      Wow, thanks for the kind words! I motivates me to make more videos :))

  • @povdata
    @povdata 6 місяців тому +1

    Best explanation in the Internet!

  • @ilredeldeserto
    @ilredeldeserto Рік тому +12

    so if I understand, here we want rotate a vector counterclockwise keeping the reference system fixed and so I have to use matrix in the video. But if I want keeping the vector fixed and rotate the reference system I have to use the inverse matrix of the matrix showed at the end because it's like to take the vector rotated in the new system and rotate it back clockwise. Is for this reason that there is confusion about where to put the - sign in the sen() of the matrix, it depends on what I want to rotate: the reference system or the vector. Am I right?

    • @PenandPaperScience
      @PenandPaperScience  Рік тому +8

      You are completely right and put it nicely into words! Nice :)

  • @ameliedzinka
    @ameliedzinka 6 місяців тому +1

    Finally, a normal explanation. Because everybody starts with a vector rotated from 0 angle.

  • @sonic-ee1dd
    @sonic-ee1dd Місяць тому +1

    thanks man, i study physics and they always used the rotation matrixes but they never explained them. Thanks a lot for the explanation now i understand how i can know if its an sin or cos.

    • @PenandPaperScience
      @PenandPaperScience  Місяць тому

      You're very welcome! I agree that they should do better in most universities! (:

  • @MuhammadSadiq-gz8go
    @MuhammadSadiq-gz8go 5 місяців тому +1

    I am very lucky to found this video what a good explanation

    • @PenandPaperScience
      @PenandPaperScience  5 місяців тому +1

      Again, thanks for commenting! I am very happy I could help :)

  • @labloom5254
    @labloom5254 10 місяців тому +2

    Thank you, I am studying analytic geometry and this helped a lot

  • @xxxhristopher
    @xxxhristopher 3 місяці тому +1

    This was wonderful 🤧

  • @ProofDetectives
    @ProofDetectives 6 місяців тому +1

    Thank you.

  • @ian.ambrose
    @ian.ambrose 2 роки тому +2

    Thank you, mister.

  • @ranjankumarsahu998
    @ranjankumarsahu998 Місяць тому +1

    Thanks brother

  • @mirok4229
    @mirok4229 Рік тому +1

    Finally… many thanks. You saved me!

    • @PenandPaperScience
      @PenandPaperScience  Рік тому +2

      You're very welcome! Thanks for taking the time to let me know :D

  • @realdragon
    @realdragon 5 місяців тому +1

    Great video

  • @Jenny-kq9jv
    @Jenny-kq9jv 4 місяці тому +1

    Hi, I love the video, but I have one question: when I change the x and y values of a function to xcos(b)-ysin(b) and xsin(b)+ycos(b) on Desmos graphing calculator , where b is the degree we want to rotate the function by, the function actually rotates in a clockwise direction instead of anticlockwise like shown in the diagram in the video, and I’m very confused about why?

    • @PenandPaperScience
      @PenandPaperScience  4 місяці тому +2

      You raise an excellent point. The difference has to do with your point of view: In this video I show how to derive the rotation matrix if you want to rotate a vector within a fixed coordinate system (x-y). But: if you use this same matrix and apply it to your x and y axes, you are basically rotating your coordinate axis, and not the vector. Now imagine the following: rotating your coordinate axes clockwise over an angle b, then what that equivalently does is rotating any vector (or function) inside that coordinate system *counter clockwise* over the same angle.
      Does that make sense? :)

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

    thank u sir, was really helpful 😊

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

      My pleasure, I'm glad it helped you! Also, thank you for taking the time to comment :D

  • @MohammadIsrar-ck2qi
    @MohammadIsrar-ck2qi 10 місяців тому +1

    In Virginia university slides....the trig identity of y' = r sin() sin() + r cos() cos()
    And here is y' = r cos() sin() + r sin() cos()

    • @MohammadIsrar-ck2qi
      @MohammadIsrar-ck2qi 10 місяців тому

      Please Guide me

    • @PenandPaperScience
      @PenandPaperScience  10 місяців тому +1

      Are you sure that the y' in the slides is the same entity on the graph as the y' in this video? Because what you say for y' is what I have for x', perhaps the axes are different?

  • @oussama9040
    @oussama9040 Рік тому +1

    Great explanation thank you very much for this video

    • @PenandPaperScience
      @PenandPaperScience  11 місяців тому +2

      Thank you for taking to time to comment! I'm super glad the video was useful to you! :))

  • @catmatism
    @catmatism 11 місяців тому +1

    Love this style. Subscribed!

  • @jasonzhang7725
    @jasonzhang7725 5 місяців тому +1

    THANK YOU VERY MUCH!!!!

  • @mz3437
    @mz3437 Рік тому +1

    Thanks for your video - you made it extremely easy to understand :)

    • @PenandPaperScience
      @PenandPaperScience  Рік тому +1

      Awesome! I'm glad it had the effect I hoped for! :) Thanks for the comment.

  • @user-cd7rq2qj8n
    @user-cd7rq2qj8n Рік тому +1

    really good video, thank you so much!

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

      Thank you for taking to the time to say that. Really means a lot to me (:

  • @2fifty533
    @2fifty533 Рік тому +1

    makes a lot more sense to me now, thanks

    • @PenandPaperScience
      @PenandPaperScience  Рік тому +1

      You're very welcome! That's why I make these videos (:

    • @2fifty533
      @2fifty533 Рік тому

      @@PenandPaperScience yeah, from my experience, school just teaches us various formulas and concepts at face value without really going into how they work, which is a shame because there is usually a lot of cleverness and ingenuity behind it but all we see is a magic equation where you plug your numbers in and get stuff out no questions asked
      so it feels pretty nice to actually have an understanding of the thing that you are working with

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

    cool tut!!!

  • @rajesh321r
    @rajesh321r Рік тому +3

    It would be nice if you can make 3 dimensional matrix as well.

    • @PenandPaperScience
      @PenandPaperScience  Рік тому +1

      That would mean having two angles, and thus 3 dimensions. This becomes difficult to draw, but maybe I'll try Manim (:

  • @BCSFM-ku2fr
    @BCSFM-ku2fr 5 місяців тому +1

    loved ittttt

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

    super helpful

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

      Thank you for taking the time to comment! I'm glad I could help :)

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

    Excellent👍

  • @lmaohaha69
    @lmaohaha69 10 місяців тому +1

    thank you so much🙏🙏

  • @PenandPaperScience
    @PenandPaperScience  10 місяців тому +1

    👉🚀Concrete Example Exercise: ua-cam.com/video/EZufiIwwqFA/v-deo.html

  • @shravanchandravanshi9192
    @shravanchandravanshi9192 Рік тому +1

    Woow very very very helpful vedio

  • @barichm0
    @barichm0 Рік тому +2

    Why use trigonometric identities? The values in the matrix just represent the rotated axis. That is all you need.
    The trigonometric values are of the angles with respect to the axis, not the point. That is why you don't need to calculate the distance.
    The explanations I've seen of this are unnecessarily complex.

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

      I don't quite get what you mean. Could you point me to an explanation that is not overly complex like you mention?

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

      @@PenandPaperScience What I mean is, you don't need to know the trigonometric identities. If you understand how matrix transformations work, the values are just the trigonometric values of the rotated axis. What they are depends on how the axis are oriented.
      When I was 13 years old, before I learned the equations, I wrote a computer game that did rotation by calculating the distance and using the arc tangent to get the original angle. That was inefficient, and it had bugs.
      When I learned the equations, I was confused, because I thought that the trigonometric values were supposed to be multiplied by the radius. The programming book where I read about them didn't even explain how they were derived; it said, "Rather than explain the geometry that derives these equations, we'll look at them from a user standpoint."
      Many years later, I saw an explanation in another programming book of how they are derived. It explained that they work by rotating the axis themselves rather than the point, but it used polar coordinate rotation and trigonometric identities. I have felt that there should be a simpler explanation.
      I have since figured it out: The values just represent axis vectors that are rotated and added together.

    • @AlFredo-sx2yy
      @AlFredo-sx2yy Рік тому +2

      @@barichm0 in short your comment says "the rotation is obtained by making a rotation". You never really explain where you obtain the formulas from, just that you read them on programming books. Thats cool and all that you can apply highschool level math, everyone go ahead and clap, but like, the purpose of this video is to understand where the rotation matrix comes from so ... yeah?

  • @mr.chindo8570
    @mr.chindo8570 Рік тому +1

    in other videos the -sin theta is in 2nd row first column unlike your video where it is in 1st row second column.. any idea why?

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

      Rotation is always relative with respect to the axis, whether you rotate the vector over an angle beta, or you rotate the axis over an angle -beta is the same. Since the sine is an odd function, if you change beta with -beta, the sign in front of the sine changes.

    • @rudy7175
      @rudy7175 Рік тому +1

      There are two cases to consider. This transformation rotates a vector but keeps the coordinate system unchanged. The transformation you are referring to rotates the coordinate system and doesn’t change the vector.

  • @NITianBlood
    @NITianBlood 8 місяців тому +1

    Is it applicable to anti-clockwise rotation as well?

    • @PenandPaperScience
      @PenandPaperScience  8 місяців тому +1

      Yes, in that can you just apply the exact same dataframe, but change the angle to minus the angle: alpha -> -alpha.

  • @aimannafis6555
    @aimannafis6555 10 місяців тому +1

    if the question says it rotate 30 degrees clockwise does it mean i need to substract it from its origin degree?

    • @PenandPaperScience
      @PenandPaperScience  10 місяців тому +1

      Hello!
      I'm not sure what you mean with origin degree. 30 degrees clockwise would mean rotating over an angle of +30 degrees, and you can fill that in in the rotation matrix.

  • @cw9249
    @cw9249 9 місяців тому

    thank you. however i was hoping for a more visual proof with geometry of why x' is given by x * cos(beta) - y * sin(beta), or why y' is given by x* sin(beta) + y* cos(beta). i can't find this anywhere. is it possible for you to do this?

    • @PenandPaperScience
      @PenandPaperScience  9 місяців тому

      You're very welcome, and merry Christmas!
      I will try and think of a visual proof as I don't know one on the top of my head. If I find one, I will let you know through this comment :)

  • @oooooo5262
    @oooooo5262 9 місяців тому +1

    my teacher did such a bad explanation in this in linear algebra, thank you sir

  • @muthuraj3010
    @muthuraj3010 8 місяців тому

    Top Notch

  • @rumplewang2814
    @rumplewang2814 9 місяців тому +1

    学会了,太牛逼了,非常感谢❤

  • @leandrogcosta
    @leandrogcosta 5 місяців тому +1

    Very good!

  • @mr.chindo8570
    @mr.chindo8570 Рік тому +1

    how to write in terms of alpha instead of beta

    • @PenandPaperScience
      @PenandPaperScience  Рік тому +1

      Beta is the angle central to the problem: it is the angle over which we perform the transformation (rotation). Therefore, you cannot write the rotation over beta as something with alpha, beta must always be present.

  • @poorianaji3706
    @poorianaji3706 11 місяців тому +1

    thanks😄

  • @virozz1024
    @virozz1024 Рік тому +1

    Can you do the same for 3x3 ... Please

  • @vaibhavgadugale
    @vaibhavgadugale Рік тому +1

    ❤👍

  • @Rey-zb8el
    @Rey-zb8el Рік тому

    What if my starting point is not (1,0) for x ? Is the starting point fixed to be 1,0 ?

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

      I'm not sure what you mean with the starting point. Can you be more specific? (:

    • @Rey-zb8el
      @Rey-zb8el Рік тому +1

      I made an error in my calculation and I understand it now.
      keep up the good works ! Your explanation is excellent and the visualization provided is highly effective!

    • @PenandPaperScience
      @PenandPaperScience  Рік тому +1

      @@Rey-zb8el Good to hear! And thank you for the kind words (:

  • @dter706
    @dter706 Рік тому +1

    Ik kon direct horen dat je een belg was haha, moest dit even opfrissen voor bachelorproject robotica

  • @user02834
    @user02834 10 місяців тому +2

    why tf dont nobody just for once do this with numbers stop fkn yappin and start explaining instead of just repeatedly saying words nobody understands this is so frustrating all channels kinda the same

    • @PenandPaperScience
      @PenandPaperScience  10 місяців тому +1

      I can do an example with number if you like. Do you prefer a real-life example, or just one where I fill in a number for the angle and compute the end result?

    • @user02834
      @user02834 10 місяців тому +1

      @@PenandPaperScience would be really nice if you rotated a square or some 2d shape for better comprehension

    • @PenandPaperScience
      @PenandPaperScience  10 місяців тому +1

      @@user02834 Here you go :)
      ua-cam.com/video/ipTekpr9kx8/v-deo.html

  • @ahmetkarakartal9563
    @ahmetkarakartal9563 11 місяців тому +1

    thank you so much

    • @PenandPaperScience
      @PenandPaperScience  11 місяців тому +2

      You are very welcome! (:
      Good luck with your math endeavours!