I am looking for a familiy of quadratic functions with the following characteristics:
- the vertex is at y=1 and in the interval [2,4] for x
- the parabola runs through (0,0)
So my "leftmost" function is $-\frac{x^2}{4} +x $ and the "rightmost" one is $-\frac{x^2}{16} +\frac{x}{2} $.
Now I have a parameter z, which takes values between 0 and 99 (or 100 if that is more convenient). For z=0 I want the rightmost function, for z=99 the leftmost one. With growing z the vertices should move along the line y=1. Equal spacing would be fine, also closer spacing for low z and wider for bigger z.
The naive approach of $-\frac{x^2}{16-12\cdot\frac{z}{99}} +\frac{x}{2-\frac{z}{99}} $ does not work, because the vertices leave the y=1 line.