# Graph of a Sine Function Increased on One Side

2,019

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

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

Author by

### Nursultan Tulyakbay

Guy continuously looking for a way to achieve perfection academically.

Updated on August 01, 2022

• Nursultan Tulyakbay over 1 year

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

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!

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)$.
I'd say something like $(10-x)(1+\sin x)$. Replace $10$ with the length you want...