Rotation matrix derivation (step-by-step prove)

  Рет қаралды 66,478

Pen and Paper Science

Pen and Paper Science

Күн бұрын

👉 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:
kzbin.info...
Thanks for watching!
#RotationMatrix #Stepbystep #Derivation

Пікірлер: 127
@PenandPaperScience
@PenandPaperScience Жыл бұрын
📣 Studying math and science? 👉Visit www.ai-tutor.io for your personal homework assistant! 🚀
@PRIYANSH_SUTHAR
@PRIYANSH_SUTHAR 10 ай бұрын
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 ай бұрын
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 ай бұрын
By far the best derivation for rotational matrices on KZbin. Excellent work.
@PenandPaperScience
@PenandPaperScience 5 ай бұрын
Thank you for the kind words! I'm glad I could help :))
@anonymanonym5901
@anonymanonym5901 5 күн бұрын
Wow, thank you so much, this video is awesome. I watched so many videos about rotation matrices and I was so confused about how you compute the x' and y' (I didn't know if you multiply x' by everything in the rotation matrix and then what abt x and y, etc.). But now I understand it's split into rows. Thank you so much!
@PenandPaperScience
@PenandPaperScience 5 күн бұрын
You are very welcome, I'm super happy the video was helpful :)
@EnduroDEV
@EnduroDEV 2 жыл бұрын
Thank you, I was looking for exactly this kind of explanation.
@PenandPaperScience
@PenandPaperScience 2 жыл бұрын
Awesome to hear! It's my pleasure :)
@godslain9941
@godslain9941 10 ай бұрын
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 ай бұрын
:D That's a nice comment to get, thanks! (Belgian btw)
@yobniares
@yobniares 3 ай бұрын
as a russian i appreciate that too :^)
@chinnuchinnu966
@chinnuchinnu966 3 күн бұрын
Best mathematical explanation about rotation matrix, but i miss intuion bro 😢
@PenandPaperScience
@PenandPaperScience 3 күн бұрын
You found the example video yourself already! (: kzbin.info/www/bejne/n6G3lp6mp56erpo
@chinnuchinnu966
@chinnuchinnu966 2 күн бұрын
@@PenandPaperScience thanks bud 😀
@breakdancerQ
@breakdancerQ Жыл бұрын
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 Жыл бұрын
they didn't teach this/mentioned this at all in trig classes that angle sums is the rotation matrix
@MOXTHEGAMER
@MOXTHEGAMER 6 ай бұрын
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 ай бұрын
Wow, thanks for the kind words! I motivates me to make more videos :))
@ilredeldeserto
@ilredeldeserto Жыл бұрын
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 Жыл бұрын
You are completely right and put it nicely into words! Nice :)
@labloom5254
@labloom5254 10 ай бұрын
Thank you, I am studying analytic geometry and this helped a lot
@PenandPaperScience
@PenandPaperScience 10 ай бұрын
You are very welcome! (: Good luck!
@ProofDetectives
@ProofDetectives 7 ай бұрын
Thank you.
@PenandPaperScience
@PenandPaperScience 7 ай бұрын
You're very welcome! (:
@ian.ambrose
@ian.ambrose 2 жыл бұрын
Thank you, mister.
@PenandPaperScience
@PenandPaperScience 2 жыл бұрын
You are very welcome! :)
@harbhajanjutt
@harbhajanjutt Күн бұрын
impressive sir
@PenandPaperScience
@PenandPaperScience Күн бұрын
Thank you :)
@mirok4229
@mirok4229 Жыл бұрын
Finally… many thanks. You saved me!
@PenandPaperScience
@PenandPaperScience Жыл бұрын
You're very welcome! Thanks for taking the time to let me know :D
@realdragon
@realdragon 5 ай бұрын
Great video
@PenandPaperScience
@PenandPaperScience 5 ай бұрын
Thank you! (:
@catmatism
@catmatism Жыл бұрын
Love this style. Subscribed!
@PenandPaperScience
@PenandPaperScience Жыл бұрын
Thank you! :))
@user02834
@user02834 10 ай бұрын
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 ай бұрын
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 ай бұрын
@@PenandPaperScience would be really nice if you rotated a square or some 2d shape for better comprehension
@PenandPaperScience
@PenandPaperScience 10 ай бұрын
@@user02834 Here you go :) kzbin.info/www/bejne/n6G3lp6mp56erpo
@Jenny-kq9jv
@Jenny-kq9jv 5 ай бұрын
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 5 ай бұрын
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? :)
@mz3437
@mz3437 Жыл бұрын
Thanks for your video - you made it extremely easy to understand :)
@PenandPaperScience
@PenandPaperScience Жыл бұрын
Awesome! I'm glad it had the effect I hoped for! :) Thanks for the comment.
@oussama9040
@oussama9040 Жыл бұрын
Great explanation thank you very much for this video
@PenandPaperScience
@PenandPaperScience Жыл бұрын
Thank you for taking to time to comment! I'm super glad the video was useful to you! :))
@MohammadIsrar-ck2qi
@MohammadIsrar-ck2qi 11 ай бұрын
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 11 ай бұрын
Please Guide me
@PenandPaperScience
@PenandPaperScience 11 ай бұрын
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?
@leandrogcosta
@leandrogcosta 6 ай бұрын
Very good!
@PenandPaperScience
@PenandPaperScience 6 ай бұрын
Thanks! :D
@lmaohaha69
@lmaohaha69 11 ай бұрын
thank you so much🙏🙏
@PenandPaperScience
@PenandPaperScience 11 ай бұрын
You are very welcome! (:
@Kiran77808
@Kiran77808 2 жыл бұрын
Excellent👍
@PenandPaperScience
@PenandPaperScience 2 жыл бұрын
Thank you :D
@drallisimo34
@drallisimo34 2 жыл бұрын
cool tut!!!
@PenandPaperScience
@PenandPaperScience 2 жыл бұрын
Thanks Dan :D
@ahmetkarakartal9563
@ahmetkarakartal9563 Жыл бұрын
thank you so much
@PenandPaperScience
@PenandPaperScience Жыл бұрын
You are very welcome! (: Good luck with your math endeavours!
@barichm0
@barichm0 Жыл бұрын
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 Жыл бұрын
@@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?
@PenandPaperScience
@PenandPaperScience 10 ай бұрын
👉🚀Concrete Example Exercise: kzbin.info/www/bejne/e4vYl5x_rNykfKM
@marcbennet4346
@marcbennet4346 5 күн бұрын
concise, complete, accurate: elegant
@PenandPaperScience
@PenandPaperScience 5 күн бұрын
Thank you so much for the kind words! (:
@mr.chindo8570
@mr.chindo8570 Жыл бұрын
how to write in terms of alpha instead of beta
@PenandPaperScience
@PenandPaperScience Жыл бұрын
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.
@rajesh321r
@rajesh321r Жыл бұрын
It would be nice if you can make 3 dimensional matrix as well.
@PenandPaperScience
@PenandPaperScience Жыл бұрын
That would mean having two angles, and thus 3 dimensions. This becomes difficult to draw, but maybe I'll try Manim (:
@xxxhristopher
@xxxhristopher 3 ай бұрын
This was wonderful 🤧
@PenandPaperScience
@PenandPaperScience 3 ай бұрын
Thank you! :D Much appreciated :)
@mr.chindo8570
@mr.chindo8570 Жыл бұрын
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 Жыл бұрын
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.
@oooooo5262
@oooooo5262 10 ай бұрын
my teacher did such a bad explanation in this in linear algebra, thank you sir
@PenandPaperScience
@PenandPaperScience 10 ай бұрын
You are very welcome! :))
@ahnaftahmid8219
@ahnaftahmid8219 2 жыл бұрын
thank u sir, was really helpful 😊
@PenandPaperScience
@PenandPaperScience 2 жыл бұрын
My pleasure, I'm glad it helped you! Also, thank you for taking the time to comment :D
@sonic-ee1dd
@sonic-ee1dd 2 ай бұрын
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! (:
@ranjankumarsahu998
@ranjankumarsahu998 Ай бұрын
Thanks brother
@PenandPaperScience
@PenandPaperScience Ай бұрын
You're very welcome! 👊
@virozz1024
@virozz1024 Жыл бұрын
Can you do the same for 3x3 ... Please
@PenandPaperScience
@PenandPaperScience Жыл бұрын
I will put it on my list! Keep an eye out ;)
@muthuraj3010
@muthuraj3010 9 ай бұрын
Top Notch
@PenandPaperScience
@PenandPaperScience 9 ай бұрын
Thank you! :))
@BCSFM-ku2fr
@BCSFM-ku2fr 5 ай бұрын
loved ittttt
@PenandPaperScience
@PenandPaperScience 5 ай бұрын
Awesome! (:
@aimannafis6555
@aimannafis6555 11 ай бұрын
if the question says it rotate 30 degrees clockwise does it mean i need to substract it from its origin degree?
@PenandPaperScience
@PenandPaperScience 11 ай бұрын
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.
@MuhammadSadiq-gz8go
@MuhammadSadiq-gz8go 6 ай бұрын
I am very lucky to found this video what a good explanation
@PenandPaperScience
@PenandPaperScience 6 ай бұрын
Again, thanks for commenting! I am very happy I could help :)
@ameliedzinka
@ameliedzinka 6 ай бұрын
Finally, a normal explanation. Because everybody starts with a vector rotated from 0 angle.
@PenandPaperScience
@PenandPaperScience 6 ай бұрын
I'm super glad I could help :))
@ameliedzinka
@ameliedzinka 6 ай бұрын
Thank you!
@shamelsinha1626
@shamelsinha1626 2 жыл бұрын
super helpful
@PenandPaperScience
@PenandPaperScience 2 жыл бұрын
Thank you for taking the time to comment! I'm glad I could help :)
@NITianBlood
@NITianBlood 8 ай бұрын
Is it applicable to anti-clockwise rotation as well?
@PenandPaperScience
@PenandPaperScience 8 ай бұрын
Yes, in that can you just apply the exact same dataframe, but change the angle to minus the angle: alpha -> -alpha.
@NateRiver-h4p
@NateRiver-h4p 2 ай бұрын
Very instructive, thanks
@PenandPaperScience
@PenandPaperScience 2 ай бұрын
You're very welcome :)
@AryanAgarwal-u7q
@AryanAgarwal-u7q Жыл бұрын
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 (:
@shravanchandravanshi9192
@shravanchandravanshi9192 Жыл бұрын
Woow very very very helpful vedio
@PenandPaperScience
@PenandPaperScience Жыл бұрын
Thank you very very very much! :D Share the love for science
@jasonzhang7725
@jasonzhang7725 5 ай бұрын
THANK YOU VERY MUCH!!!!
@PenandPaperScience
@PenandPaperScience 5 ай бұрын
You are very much welcome! :))
@povdata
@povdata 7 ай бұрын
Best explanation in the Internet!
@PenandPaperScience
@PenandPaperScience 7 ай бұрын
Thank you
@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 :)
@vaibhavgadugale
@vaibhavgadugale Жыл бұрын
❤👍
@PenandPaperScience
@PenandPaperScience Жыл бұрын
🙏👌
@poorianaji3706
@poorianaji3706 Жыл бұрын
thanks😄
@PenandPaperScience
@PenandPaperScience Жыл бұрын
You're very welcome!! :D
@rumplewang2814
@rumplewang2814 9 ай бұрын
学会了,太牛逼了,非常感谢❤
@PenandPaperScience
@PenandPaperScience 9 ай бұрын
I don't read Mandarin, but I can recognise the
@2fifty533
@2fifty533 Жыл бұрын
makes a lot more sense to me now, thanks
@PenandPaperScience
@PenandPaperScience Жыл бұрын
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
@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 Жыл бұрын
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 Жыл бұрын
@@Rey-zb8el Good to hear! And thank you for the kind words (:
@dter706
@dter706 Жыл бұрын
Ik kon direct horen dat je een belg was haha, moest dit even opfrissen voor bachelorproject robotica
@PenandPaperScience
@PenandPaperScience Жыл бұрын
Succes! :D
Coordinate Transformation: Rotations - Exercises
14:22
Pen and Paper Science
Рет қаралды 9 М.
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 60 МЛН
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 71 МЛН
Robotics 1 U1 (Kinematics) S3 (Rotation Matrices) P1 (Rotation Matrices)
22:01
A math GENIUS taught me how to LEARN ANYTHING in 3 months (it's easy)
8:52
Python Programmer
Рет қаралды 425 М.
Rotation Matrix
10:40
Dr Peyam
Рет қаралды 125 М.
Rotation Matrix for Coordinate Transformation
8:24
Physics Ninja
Рет қаралды 45 М.
Quaternions and 3d rotation, explained interactively
5:59
3Blue1Brown
Рет қаралды 1,2 МЛН
Why is the determinant like that?
19:07
broke math student
Рет қаралды 172 М.
Ch 1: Why linear algebra? | Maths of Quantum Mechanics
11:18
Quantum Sense
Рет қаралды 248 М.
Bresenham's Line Algorithm - Demystified Step by Step
16:10
NoBS Code
Рет қаралды 52 М.
Introduction to Rotation Matrices in Robotics
16:08
Aleksandar Haber PhD
Рет қаралды 11 М.
The deeper meaning of matrix transpose
25:41
Mathemaniac
Рет қаралды 374 М.
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 60 МЛН