How to Rotate a Function | Using Desmos

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024

ความคิดเห็น • 64

  • @kaydenl3
    @kaydenl3 4 หลายเดือนก่อน +8

    The sin graph rotated makes an unfortunate shape lol

  • @sirmexicanelmo
    @sirmexicanelmo 4 ปีที่แล้ว +6

    Is there a way to make this so I am rotating a point. Like say I have a point (2,1) and I want to rotate it 90 clockwise around the origin. I want to create a visual for students

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  4 ปีที่แล้ว

      Yes, I don't have time to make a video right now, but here is what I have worked out. www.desmos.com/calculator/ka2serahn2

  • @sibbyeskie
    @sibbyeskie 2 ปีที่แล้ว +1

    I actually need this solution for an application I'm working on. The trouble I'm having is how to map the base function (linear, sine, whatever) to the modifying rotation function. Though this video is good for showing how to model that in Desmos, it's really unclear how those two separate functions are being combined. Perhaps a step-by-step would have shown this better?

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  2 ปีที่แล้ว

      Take your original equation, for example 3x+2y=5 and replace the x with xcos30-ysin30 and replace the y with xsin30+ycos30 This should rotate the equation 30 degrees counter-clockwise and you will have a specific equation for doing so. Should work with any angle.

  • @hillbilly3772
    @hillbilly3772 ปีที่แล้ว

    This may be a bit late, but I was wondering what the algebra was behind finding the g(x,y) function as it looks like it uses the idea that to rotate a function around the origin you replace x with xcos(A)-ysin(A), but I am unsure about how the x-sin(a) and dividing the whole equation by cos(A) changes how to function works.

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  ปีที่แล้ว

      I made that video quite a while ago now and I have lost the algebra that I did to build what was going on. I recall that the equation in desmos that you see is a simplification of many lines of code and that is what it came out to so that it could be done in one line instead of many. However, this file was an earlier version that might be more instructive for how it works to rotate a function by manipulating the variables. www.desmos.com/calculator/gtdg39ojud

  • @hriday7185
    @hriday7185 ปีที่แล้ว +1

    Hello, I'd really like some help in this matter. So I have gotten the rotated function, but it is in terms of G(x,y). how do i integrate this function (the function is only a 2d function yet it has 2 variables)

    • @ianyourgod
      @ianyourgod ปีที่แล้ว

      try "y=g(x,y)"

    • @ianyourgod
      @ianyourgod ปีที่แล้ว

      oh wait thats not what you're asking sorry

    • @hriday7185
      @hriday7185 ปีที่แล้ว

      @@ianyourgod exactly lol. I have tried researching and asking many people about this and they have been confused

    • @ianyourgod
      @ianyourgod ปีที่แล้ว

      @@hriday7185 I think how it works is that you pass in an x and a y and then you see if the y you passed is equal to the thing that you got returned

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  ปีที่แล้ว

      Perhaps this will help: th-cam.com/video/V7ZSQUHAYRo/w-d-xo.html

  • @heathercrisp6500
    @heathercrisp6500 ปีที่แล้ว

    Hi, just a quick question, can you have this series of equations appear on the same document more then once or should it need some changed variables to adjust? I can't see to make two lines with the series of equations used in the first link of the description.

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  ปีที่แล้ว

      Try using this method instead. I used capital X and Y to do the rotation, but you could easily add lines defining any other corresponding variables to rotate a second equation. www.desmos.com/calculator/gtdg39ojud

  • @chicoandreolaguer6809
    @chicoandreolaguer6809 3 ปีที่แล้ว

    May I ask how may one rotate a relation, with the same freedom as presented in this video?

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  3 ปีที่แล้ว

      There is a link to the desmos file I am using in the description and you can drag the slider on the left side to change the angle.

  • @FaiadAbdullah78
    @FaiadAbdullah78 ปีที่แล้ว

    I was wondering how I could do this with a non function. The specific equation is sin^2(x)-sin^2(y)=0.99

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  ปีที่แล้ว

      Sorry it took me a while to get back to you. In order to rotate a graph like yours you should replace the x with xcosA - ysinA and replace the y with xsinA + ycosA where A is the angle that you want to rotate counterclockwise with the rotation centered at the origin. Here is a link to a graph doing this. Hope this helped. www.desmos.com/calculator/sjrdqyvgf4

  • @alleahjanna4809
    @alleahjanna4809 3 ปีที่แล้ว

    how can I rotate an equation with it ennpoint?

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  3 ปีที่แล้ว

      That is going to be a little tricky. I will look into it.

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  3 ปีที่แล้ว +1

      Oh, when I looked into it, it should already work. Just attach the restriction to the end of the original equation like {x

    • @alleahjanna4809
      @alleahjanna4809 3 ปีที่แล้ว

      @@mr.h.heretohelp6541 why thank u, u deserve to be known bigrespect to u

  • @lucasborage8764
    @lucasborage8764 2 ปีที่แล้ว +1

    what if I want to set it to rotate around a different axes other than 0?

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  ปีที่แล้ว

      I really need to make a video of the changes to do that. It is the most common question that I get. Here is a desmos graph link of how... video will hopefully come soon. www.desmos.com/calculator/ldhfhkqgkw

  • @realcygnus
    @realcygnus 2 ปีที่แล้ว +1

    Nifty ! How might you go about rotating around ANY point that is perhaps already following a curve ? I'd think you could just add to the x & y such as "y = g(x + p1.x, y + p1.y)" but something is not right.

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  ปีที่แล้ว +1

      I get this question often. Check out this small change to the file that should allow you to rotate around any point. Video coming soon. www.desmos.com/calculator/ldhfhkqgkw

  • @Gordy-io8sb
    @Gordy-io8sb 4 หลายเดือนก่อน

    I just describe the equation in parametric form, and multiply it by a unit complex number w, with my desired angle. Works like a charm. Doesn't work for implicits (not to my knowledge), though. I wrote my own complex number lib in Desmos kinda for this purpose.

  • @hotdogmech
    @hotdogmech ปีที่แล้ว +1

    Hi this equation worked really well for me, but I was wondering how you found out that xcosa-ysina and xsina-ycosa was what you had to replace x and y with to make a function rotate? Is there a derivation or was it mostly just guess and checking?

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  ปีที่แล้ว +1

      I can't derive it all in a comment but here is a link to a paper that does a fantastic job of it. math.sci.ccny.cuny.edu/document/Rotation+of+Axes#:~:text=Coordinate%20Rotation%20Formulas&text=x%20%3D%20%CB%86xcos%20%CE%B8%20%E2%88%92%20%CB%86y%20sin%CE%B8,x%20sin%CE%B8%20%2B%20y%20cos%20%CE%B8.

    • @kingofskillissue
      @kingofskillissue 8 หลายเดือนก่อน

      It's a bit late, but I think it is a rotation matrix.

  • @chicoandreolaguer6809
    @chicoandreolaguer6809 3 ปีที่แล้ว +1

    Excuse me, how may I rotate a polar equation that is labeled as r=csc(6theta)+6? I have subscribed, and I thank you, Professor.

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  3 ปีที่แล้ว

      Replace theta with (theta +A) where A is the amount you would like to rotate counterclockwise.

    • @chicoandreolaguer6809
      @chicoandreolaguer6809 3 ปีที่แล้ว

      @@mr.h.heretohelp6541 , many thanks!

  • @gopats1464
    @gopats1464 7 หลายเดือนก่อน

    Hello. This is super helpful in general, but I am in the middle of a project where I need to do this to one side of an inequality. I’m making a flame-shape and it moves along a sine function. I’m trying to make the flame “blow in the wind” essentially.

  • @SRAVANAM_KEERTHANAM_SMARANAM
    @SRAVANAM_KEERTHANAM_SMARANAM 4 ปีที่แล้ว +2

    Excellent Sir. Salute to you.

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  4 ปีที่แล้ว

      Kamalakar B thanks. Let me know if there are other things you are interested in tutorials about.

  • @o.om.m5632
    @o.om.m5632 3 ปีที่แล้ว +1

    How do you get the play of the angle on the screen?

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  3 ปีที่แล้ว

      Open the link in the description to the desmos file that I made for this and drag the slider on the left side labelled A_ngle.

  • @mynt4033
    @mynt4033 8 หลายเดือนก่อน

    How would I set this up if I wanted to reflect points or a function across any arbitrary line, say y=2x?

  • @RobertLamar
    @RobertLamar 3 ปีที่แล้ว

    What is going on with the syntax for the s(x,y)=g(x,y{y=0}) line? I'm not sure I understand what it's supposed to do. When I change it, odd things show up. When I remove it, it doesn't seem to make a difference.

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  3 ปีที่แล้ว

      Good job noticing that line. I had left that in from when I was tinkering around trying to get it to work. It is not needed in the final version. What it was meant to do originally was to graph the function separately when y=0 whenever it would normally be undefined by replacing it with the g function. This wasn't needed in the end though and I just forgot to remove that line.

  • @rowantwine
    @rowantwine 2 ปีที่แล้ว

    is there a way to do this for multiple functions individually?

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  2 ปีที่แล้ว

      Take your original equation, for example 3x+2y=5 and replace the x with xcos30-ysin30 and replace the y with xsin30+ycos30 This should rotate the equation 30 degrees counter-clockwise and you will have a specific equation for doing so. Should work with any angle.

  • @dde335
    @dde335 2 ปีที่แล้ว

    Sir, just wanted to ask that is there a way to integrate a rotated sine function

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  2 ปีที่แล้ว

      Can you be more specific? I can't think of a method to do it in general.

  • @SCP--il8mu
    @SCP--il8mu 2 ปีที่แล้ว

    How do rotate a formula that has a< symbol.

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  2 ปีที่แล้ว

      Just replace the x with (xcosA-ysinA) and replace the original y with (ycosA+xsinA) then make a slider for A. Using the A slider will rotate your original inequality.

  • @jacobschaumann
    @jacobschaumann 2 ปีที่แล้ว

    So, this is great but how does it work?

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  2 ปีที่แล้ว

      Take your original equation, for example 3x+2y=5 and replace the x with xcos30-ysin30 and replace the y with xsin30+ycos30 This should rotate the equation 30 degrees counter-clockwise and you will have a specific equation for doing so. Should work with any angle.

  • @tommyiii579
    @tommyiii579 2 ปีที่แล้ว

    mine says s isnt defined

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  2 ปีที่แล้ว

      You may have a typo when putting in sinA. This happens sometimes if you have the s separated from the rest of the sinA function.

  • @athirahdayana397
    @athirahdayana397 3 ปีที่แล้ว

    Hi sir! thank u for this video, but are we able to know the function after rotating the angle? I'm trying to find a function with the points that I have plotted

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  3 ปีที่แล้ว

      Not really, the closest you could get is looking at line 11 in the desmos file linked in the description. Most of the time, your rotation will no longer be a function of one-variable [it won't pass the vertical line test, so you can't always have it in the form y=f(x)]. But, look at line 11 and see if you can build an equation for what you need. Otherwise, check out my video on regressions and that may actually be more of what you need in your example.

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  3 ปีที่แล้ว +1

      I was thinking this over again and I think that I thought of a way to do it. Take your original equation, for example 3x+2y=5 and replace the x with xcos30-ysin30 and replace the y with xsin30+ycos30 This should rotate the equation 30 degrees counter-clockwise and you will have a specific equation for doing so. Should work with any angle.

  • @crosswordguy3861
    @crosswordguy3861 3 ปีที่แล้ว

    How do you enter an equation that is implicitly defined in your program? The way you have set it up makes the user enter an explicitly defined function.

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  3 ปีที่แล้ว

      The way I have it set up in desmos will only allow explicitly defined equations to be evaluated this way. I guess a more accurate title would be "How to Rotate an Explicitly Defined Function | Using Desmos." I can't think of initially how that would be done.

  • @yeahuh4128
    @yeahuh4128 3 ปีที่แล้ว

    can i rotate an elipse?

    • @samuelsong6700
      @samuelsong6700 3 ปีที่แล้ว

      ax^2+bx^2+cx+dy+e=0
      Try changing the values of cx and dy in the equation, then you'll find them rotating.

    • @samuelsong6700
      @samuelsong6700 3 ปีที่แล้ว

      sorry for the confusion, actually, changing those two just makes translation of the elipse. My answer is quite incorrect.

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  2 ปีที่แล้ว

      Take your original equation and replace the x with xcos30-ysin30 and replace the y with xsin30+ycos30 This should rotate the equation 30 degrees counter-clockwise and you will have a specific equation for doing so. Should work with any angle.

    • @yeahuh4128
      @yeahuh4128 2 ปีที่แล้ว

      @@mr.h.heretohelp6541 wow! thank you for answering to my comment. I thought I wouldn't figure out how, but you responded. thank you again.

  • @siamkhansk5952
    @siamkhansk5952 4 ปีที่แล้ว +1

    How can I rotate any equation in contingent to any point in desmos??

    • @mr.h.heretohelp6541
      @mr.h.heretohelp6541  4 ปีที่แล้ว +1

      I added that feature to the graph after seeing your comment. Look in the description of the video. There is the original Desmos link and the new link named " *Rotate Any Equation Around Any Point.* "