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!

Try $f(x)=x + x\sin x$, or something similar.