Given the points $(1,1)$ and $(3,5)$, the vertex form would be: $1=(1-h)^2+k$ for $(1,1)$ and $5=(3-h)^2+k$ for $(3,5)$. With a system of equations, I obtain that $h = 1$ and $k = 1$, so the new formula of the shifted parabola would be: $y=(x-1)^2+1$
What I don't understand is the answer of my exercise sheet, which says that the new equation would be $y= -x^2+6x-4$
Can someone help me understand this? Thanks
If $f$ is a function, its graph has equation $$y=f(x).$$ Shifting this graph horizontally by $a\in \Bbb R$ and vertically by $b\in \Bbb R$ yields to the graph of equation $$ y = f(x-a)+b. $$ Here, you have the parabola of equation $y=f(x)$ with $f(x)=-x^2 + 4x + 8$. Its shift by $(a,b)$ has then equation $$ y = -(x-a)^2 + 4(x-a) + 8 + b. $$ You can now solve this exercise by substituting $(x,y) = (1,1)$ and $(x,y) = (3,5)$ and solve for $(a,b)$.