Graph of a Sine Function Increased on One Side

2,019

Plot[ x (1 - Sin[x]), {x, -1, 45}, GridLines -> Automatic] enter image description here

You can adjust the slope $m$ of envelope, time period etc as:

$$ y= m x \;(1- \sin \dfrac{2 \pi x }{\lambda})$$

To reflect about x-axis making it go down, equation can be changed as:

Plot[ x (-1 + Sin[x]), {x, -1, 45}, GridLines -> Automatic]
Share:
2,019

Related videos on Youtube

Nursultan Tulyakbay
Author by

Nursultan Tulyakbay

Guy continuously looking for a way to achieve perfection academically.

Updated on August 01, 2022

Comments

  • Nursultan Tulyakbay
    Nursultan Tulyakbay over 1 year

    If we want something looks like this sine wave, what is a function that will satisfy this: enter image description here

    Further, how can we make this go both ways, meaning either 1) a sine wave staying the same at the bottom but going upwards linearly as it progresses (as shown) or 2) a sine wave staying the same at the bottom but going downwards linearly as it progresses?

    I have tried, for example, $x/2(\sin x)$, which gives us a linear increase, but I want it to increase on the top while staying the same on the bottom.

    Thanks!

    • Admin
      Admin over 9 years
      Your link doesn't work, but try $f(x)(1+\sin x)$ where $f(x)$ is an increasing positive function like say $\exp(x/20)$.
  • Nursultan Tulyakbay
    Nursultan Tulyakbay over 9 years
    I have, and it works for increase. now how do I do decrease on the positive x-axis? In other words, I need a positive diminuting function. I used x for increasing, now I need decreasing.
  • geodude
    geodude over 9 years
    I'd say something like $(10-x)(1+\sin x)$. Replace $10$ with the length you want...