I have this function $$f(x)=10x^2-5x+2, \qquad (1)$$ I plot it on the domain $(0,2)$ and this is the result
As can be seen, the function is symmetric over the domain $(0,0.5)$.
I need to know the form of the function which repeats this symmetric part over the domain like this
How can I use $(1)$ to find the explicit form of a function which gives the above plot?
Thanks in advance for any comments.


The function is:
$$f(g(x)) = 10(|x| \text{ mod } {0.5})^2 - 5(|x| \text{ mod } {0.5})^2 + 2$$
where $g(x) = |x| \text{ mod } {0.5}$.
The function $h(x) = 10|x|^2 - 5|x| + 2$ is an even function which reflects the $x ≥ 0$ part of the function across the $y$-axis, as $h(-x) = h(x)$. Adding the modulo $0.5$, the function is reflected across $x = 0.5k, k \in \mathbb Z$ which repeats the function every $0.5$ units. This works for any real number, not just $0.5$.