I need to find optimal curve between two given points, let's say $(1,1)$ and $(4,4)$ where the curve is second order polynomial. What would be the best way so that when remaining unknown coefficients are tweaked the shape of the curve changes but starting and end points stay the same?
I could do
$$ x = 1 + a_1 t + a_2 t^2 $$
$$ y = 1 + b_1 t + b_2 t^2 $$
where $0 \le t \le 10$ (the value 10 was chosen arbitrarily). This allows me to control the beginning of the curve and I can tweak the coefficients that give me different shapes but I have no control over the end point. I guess I am looking for a "class" of parametrized curve that stil has unknown coefficients (for shape) but has given beginning and end points.
I could also work with a parameterized curve that passes through two given points (I could simply adjust $t$ to limit the curve to the area of interest).
I will be using this curve to find an optimal path, so I need to be able to adjust the shape through coefficients but the two end points must remain the same.
One idea I had after reading this was that, limit $t$ to $0 \le t \le 1$, then from $(1,1)$ we can find $a_0=1,b_0=1$. Then for $t=1$, the end point,
$$ 4 = 1 + a_1(1) + a_2(1)^2 $$
$$ 4 = 1 + b_1(1) + b_2(1)^2 $$
which means as long as I choose $a_1,a_1,b_1,b_2$ so that $a_1+a_2=3$ and $b_1+b_2=3$ this could work.

The approach I outlined seemed to work, the code
produces
For more complicated (higher degree) polynomials I could instruct my optimization routine for that specific sum $a_1+a_2+...+a_n = e_x$, same for $e_y$.