q(x)=-sin(π/2x)
It is an upside down sine cuve with a period of 2ππ/2=2∗2ππ=4
Here is the graph
https://www.desmos.com/calculator/dcla2ntdm4