Is there a simple function that can make sin into a line? [$sin(f(x)) = {2xoverpi}$ from $0$ to $piover2$]












1












$begingroup$


I'm currently working on a synth, and I'd like to find an equation that can go from a triangle wave to sine smoothly. In order to do this, I'm trying to find a function which can be put inside sine $(sin(f(x))$ that will make the output into a straight line from $(0,0)$ to $({piover2}, 1)$.



Unfortunately, my math is a bit rusty at them moment. I could have sworn there was a way to put arcsin, or arccos into sin and have it kind of cancel out the curve, but I can't remember it (or whether or not it was that simple).



Is there any such simple function $f(x)$ that can be put into sin() to result in a flat line from $(0,0)$ to $({piover2}, 1)$? $f(x)$ such that $sin(f(x)) = {2xover pi}$ from $0$ to $piover2$










share|cite|improve this question











$endgroup$

















    1












    $begingroup$


    I'm currently working on a synth, and I'd like to find an equation that can go from a triangle wave to sine smoothly. In order to do this, I'm trying to find a function which can be put inside sine $(sin(f(x))$ that will make the output into a straight line from $(0,0)$ to $({piover2}, 1)$.



    Unfortunately, my math is a bit rusty at them moment. I could have sworn there was a way to put arcsin, or arccos into sin and have it kind of cancel out the curve, but I can't remember it (or whether or not it was that simple).



    Is there any such simple function $f(x)$ that can be put into sin() to result in a flat line from $(0,0)$ to $({piover2}, 1)$? $f(x)$ such that $sin(f(x)) = {2xover pi}$ from $0$ to $piover2$










    share|cite|improve this question











    $endgroup$















      1












      1








      1





      $begingroup$


      I'm currently working on a synth, and I'd like to find an equation that can go from a triangle wave to sine smoothly. In order to do this, I'm trying to find a function which can be put inside sine $(sin(f(x))$ that will make the output into a straight line from $(0,0)$ to $({piover2}, 1)$.



      Unfortunately, my math is a bit rusty at them moment. I could have sworn there was a way to put arcsin, or arccos into sin and have it kind of cancel out the curve, but I can't remember it (or whether or not it was that simple).



      Is there any such simple function $f(x)$ that can be put into sin() to result in a flat line from $(0,0)$ to $({piover2}, 1)$? $f(x)$ such that $sin(f(x)) = {2xover pi}$ from $0$ to $piover2$










      share|cite|improve this question











      $endgroup$




      I'm currently working on a synth, and I'd like to find an equation that can go from a triangle wave to sine smoothly. In order to do this, I'm trying to find a function which can be put inside sine $(sin(f(x))$ that will make the output into a straight line from $(0,0)$ to $({piover2}, 1)$.



      Unfortunately, my math is a bit rusty at them moment. I could have sworn there was a way to put arcsin, or arccos into sin and have it kind of cancel out the curve, but I can't remember it (or whether or not it was that simple).



      Is there any such simple function $f(x)$ that can be put into sin() to result in a flat line from $(0,0)$ to $({piover2}, 1)$? $f(x)$ such that $sin(f(x)) = {2xover pi}$ from $0$ to $piover2$







      trigonometry






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Dec 14 '18 at 6:30









      user587054

      51911




      51911










      asked Dec 14 '18 at 5:45









      Seph ReedSeph Reed

      1187




      1187






















          3 Answers
          3






          active

          oldest

          votes


















          4












          $begingroup$

          The sin function has an inverse $sin^{-1}(x)$ defined on $-1<x<1$.
          $$sin(sin^{-1}(x)) = x.$$ I'm not sure if this is the answer you were looking for, but you can just scale the inverse sine like $sin((2/pi)x)$ so that at $x = pi/2$, you are still in the range of the inverse sine.






          share|cite|improve this answer









          $endgroup$





















            1












            $begingroup$

            Here my ideas:




            1. Start with differentiating both sides. $$cos(f(x))*f'(x)=1$$ or $f'(x)=frac{1}{cos(f(x))}$



            2. Integrate. I've used Maple to do it.



              de := diff(f(x), x) = 2/(Pi*cos(f(x)));
              d 2
              de := --- f(x) = ------------
              dx Pi cos(f(x))

              sol := dsolve(de, f(x));

              /2 (x + _C1)
              sol := f(x) = arcsin|-----------|
              Pi /



            3. Checking for result



              sol := dsolve(de, f(x), implicit);
              1
              sol := x - - Pi sin(f(x)) + _C1 = 0
              2


              So, for your quest, _C1 = 0. Then your function is $$f(x)=arcsin(frac{2x}{pi})$$
              enter image description here








            share|cite|improve this answer









            $endgroup$





















              1












              $begingroup$

              I feel dumb. It was really easy to solve:



              sin(arcsin(2x/pi))



              Also, in case anyone was wondering, I found the actual equation I was looking for. I'm trying to make it so a knob can change a curve from sin to a line incrementally, and found a good one for it.



              1-(1-2x/pi)^C. At C=1.757 you get a curve for which the integral of the absolute difference between it and sine from 0 to pi/2 of pretty low, which is more than close enough for my case. And then at C=1 you get a straight line. Pretty neat!






              share|cite|improve this answer











              $endgroup$













                Your Answer





                StackExchange.ifUsing("editor", function () {
                return StackExchange.using("mathjaxEditing", function () {
                StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
                StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
                });
                });
                }, "mathjax-editing");

                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "69"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                autoActivateHeartbeat: false,
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                noCode: true, onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                draft saved

                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3039001%2fis-there-a-simple-function-that-can-make-sin-into-a-line-sinfx-2x-ove%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                4












                $begingroup$

                The sin function has an inverse $sin^{-1}(x)$ defined on $-1<x<1$.
                $$sin(sin^{-1}(x)) = x.$$ I'm not sure if this is the answer you were looking for, but you can just scale the inverse sine like $sin((2/pi)x)$ so that at $x = pi/2$, you are still in the range of the inverse sine.






                share|cite|improve this answer









                $endgroup$


















                  4












                  $begingroup$

                  The sin function has an inverse $sin^{-1}(x)$ defined on $-1<x<1$.
                  $$sin(sin^{-1}(x)) = x.$$ I'm not sure if this is the answer you were looking for, but you can just scale the inverse sine like $sin((2/pi)x)$ so that at $x = pi/2$, you are still in the range of the inverse sine.






                  share|cite|improve this answer









                  $endgroup$
















                    4












                    4








                    4





                    $begingroup$

                    The sin function has an inverse $sin^{-1}(x)$ defined on $-1<x<1$.
                    $$sin(sin^{-1}(x)) = x.$$ I'm not sure if this is the answer you were looking for, but you can just scale the inverse sine like $sin((2/pi)x)$ so that at $x = pi/2$, you are still in the range of the inverse sine.






                    share|cite|improve this answer









                    $endgroup$



                    The sin function has an inverse $sin^{-1}(x)$ defined on $-1<x<1$.
                    $$sin(sin^{-1}(x)) = x.$$ I'm not sure if this is the answer you were looking for, but you can just scale the inverse sine like $sin((2/pi)x)$ so that at $x = pi/2$, you are still in the range of the inverse sine.







                    share|cite|improve this answer












                    share|cite|improve this answer



                    share|cite|improve this answer










                    answered Dec 14 '18 at 5:52









                    D.B.D.B.

                    1,25018




                    1,25018























                        1












                        $begingroup$

                        Here my ideas:




                        1. Start with differentiating both sides. $$cos(f(x))*f'(x)=1$$ or $f'(x)=frac{1}{cos(f(x))}$



                        2. Integrate. I've used Maple to do it.



                          de := diff(f(x), x) = 2/(Pi*cos(f(x)));
                          d 2
                          de := --- f(x) = ------------
                          dx Pi cos(f(x))

                          sol := dsolve(de, f(x));

                          /2 (x + _C1)
                          sol := f(x) = arcsin|-----------|
                          Pi /



                        3. Checking for result



                          sol := dsolve(de, f(x), implicit);
                          1
                          sol := x - - Pi sin(f(x)) + _C1 = 0
                          2


                          So, for your quest, _C1 = 0. Then your function is $$f(x)=arcsin(frac{2x}{pi})$$
                          enter image description here








                        share|cite|improve this answer









                        $endgroup$


















                          1












                          $begingroup$

                          Here my ideas:




                          1. Start with differentiating both sides. $$cos(f(x))*f'(x)=1$$ or $f'(x)=frac{1}{cos(f(x))}$



                          2. Integrate. I've used Maple to do it.



                            de := diff(f(x), x) = 2/(Pi*cos(f(x)));
                            d 2
                            de := --- f(x) = ------------
                            dx Pi cos(f(x))

                            sol := dsolve(de, f(x));

                            /2 (x + _C1)
                            sol := f(x) = arcsin|-----------|
                            Pi /



                          3. Checking for result



                            sol := dsolve(de, f(x), implicit);
                            1
                            sol := x - - Pi sin(f(x)) + _C1 = 0
                            2


                            So, for your quest, _C1 = 0. Then your function is $$f(x)=arcsin(frac{2x}{pi})$$
                            enter image description here








                          share|cite|improve this answer









                          $endgroup$
















                            1












                            1








                            1





                            $begingroup$

                            Here my ideas:




                            1. Start with differentiating both sides. $$cos(f(x))*f'(x)=1$$ or $f'(x)=frac{1}{cos(f(x))}$



                            2. Integrate. I've used Maple to do it.



                              de := diff(f(x), x) = 2/(Pi*cos(f(x)));
                              d 2
                              de := --- f(x) = ------------
                              dx Pi cos(f(x))

                              sol := dsolve(de, f(x));

                              /2 (x + _C1)
                              sol := f(x) = arcsin|-----------|
                              Pi /



                            3. Checking for result



                              sol := dsolve(de, f(x), implicit);
                              1
                              sol := x - - Pi sin(f(x)) + _C1 = 0
                              2


                              So, for your quest, _C1 = 0. Then your function is $$f(x)=arcsin(frac{2x}{pi})$$
                              enter image description here








                            share|cite|improve this answer









                            $endgroup$



                            Here my ideas:




                            1. Start with differentiating both sides. $$cos(f(x))*f'(x)=1$$ or $f'(x)=frac{1}{cos(f(x))}$



                            2. Integrate. I've used Maple to do it.



                              de := diff(f(x), x) = 2/(Pi*cos(f(x)));
                              d 2
                              de := --- f(x) = ------------
                              dx Pi cos(f(x))

                              sol := dsolve(de, f(x));

                              /2 (x + _C1)
                              sol := f(x) = arcsin|-----------|
                              Pi /



                            3. Checking for result



                              sol := dsolve(de, f(x), implicit);
                              1
                              sol := x - - Pi sin(f(x)) + _C1 = 0
                              2


                              So, for your quest, _C1 = 0. Then your function is $$f(x)=arcsin(frac{2x}{pi})$$
                              enter image description here









                            share|cite|improve this answer












                            share|cite|improve this answer



                            share|cite|improve this answer










                            answered Dec 14 '18 at 6:02









                            Kelly ShepphardKelly Shepphard

                            2298




                            2298























                                1












                                $begingroup$

                                I feel dumb. It was really easy to solve:



                                sin(arcsin(2x/pi))



                                Also, in case anyone was wondering, I found the actual equation I was looking for. I'm trying to make it so a knob can change a curve from sin to a line incrementally, and found a good one for it.



                                1-(1-2x/pi)^C. At C=1.757 you get a curve for which the integral of the absolute difference between it and sine from 0 to pi/2 of pretty low, which is more than close enough for my case. And then at C=1 you get a straight line. Pretty neat!






                                share|cite|improve this answer











                                $endgroup$


















                                  1












                                  $begingroup$

                                  I feel dumb. It was really easy to solve:



                                  sin(arcsin(2x/pi))



                                  Also, in case anyone was wondering, I found the actual equation I was looking for. I'm trying to make it so a knob can change a curve from sin to a line incrementally, and found a good one for it.



                                  1-(1-2x/pi)^C. At C=1.757 you get a curve for which the integral of the absolute difference between it and sine from 0 to pi/2 of pretty low, which is more than close enough for my case. And then at C=1 you get a straight line. Pretty neat!






                                  share|cite|improve this answer











                                  $endgroup$
















                                    1












                                    1








                                    1





                                    $begingroup$

                                    I feel dumb. It was really easy to solve:



                                    sin(arcsin(2x/pi))



                                    Also, in case anyone was wondering, I found the actual equation I was looking for. I'm trying to make it so a knob can change a curve from sin to a line incrementally, and found a good one for it.



                                    1-(1-2x/pi)^C. At C=1.757 you get a curve for which the integral of the absolute difference between it and sine from 0 to pi/2 of pretty low, which is more than close enough for my case. And then at C=1 you get a straight line. Pretty neat!






                                    share|cite|improve this answer











                                    $endgroup$



                                    I feel dumb. It was really easy to solve:



                                    sin(arcsin(2x/pi))



                                    Also, in case anyone was wondering, I found the actual equation I was looking for. I'm trying to make it so a knob can change a curve from sin to a line incrementally, and found a good one for it.



                                    1-(1-2x/pi)^C. At C=1.757 you get a curve for which the integral of the absolute difference between it and sine from 0 to pi/2 of pretty low, which is more than close enough for my case. And then at C=1 you get a straight line. Pretty neat!







                                    share|cite|improve this answer














                                    share|cite|improve this answer



                                    share|cite|improve this answer








                                    edited Dec 14 '18 at 15:03

























                                    answered Dec 14 '18 at 5:53









                                    Seph ReedSeph Reed

                                    1187




                                    1187






























                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Mathematics Stack Exchange!


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        Use MathJax to format equations. MathJax reference.


                                        To learn more, see our tips on writing great answers.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3039001%2fis-there-a-simple-function-that-can-make-sin-into-a-line-sinfx-2x-ove%23new-answer', 'question_page');
                                        }
                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        Index of /

                                        Tribalistas

                                        Listed building