The general form of a quadratic formula is
where a,b and c are constants. Also, note that a is a constant that helps to determine the shape of the function. As we want that the vertex is a minimum, we are in the following situation
so, this adds the restriction that a>0.
Now, we are given the points (-4,2) and (1,2). We can replace this values in our function. Let us do that with (-4,2). So we get
if we do that with the other point we get
so if we make this two equations equal, we have
so if we subtract c on both sides, we get
we can subtract a and b from both sides, so we get
so if we divide both sides by 5 we get
This means that we can give values to a and b freely. Recall that a must be positive. So let us choose a=1 and b=3. So our equation becomes
Now we need to give values for c. Note that if x = -4, we have that
so, we subtract c 4 from both sides and we get
So our equation becomes
Let us check that it passes through the other point. Note when x=1 we have
so this equation fulfills the task