For a signal processing analysis, I need a function that behaves like the image below, but I cannot figure out which formula replicates this dynamics.
Features:
$y(x) = xk$ for some constant $k$ at each point $x\in\mathbb{Z}^{+}$
at each $x\in\mathbb{Z}^{+}$, $\frac{dy}{dt} = 0$
Given any range $[x, x+1]$ for $x\in\mathbb{Z}^{+}$, we should have $\frac{d^{2}y}{dt^{2}}>0$ within $[x, x+0.5]$ and $\frac{d^{2}y}{dt^{2}}<0$ in $[x+0.5, x+1]$.
