I am desperatly looking for the mistake I did when completing the square.
I have a function $f(x)=-4.905x^2+5x+6$
Nothing special. So when I was trying to find the peak of the curve I ran into a problem and couldn't figure out why this happens, since I have repeated the task about 5 times.
I used the form: $(x+\frac{b}{2a})^2=(\frac{b}{2a})^2-\frac{c}{a}$
When I solve left hand side to get the value of -0.509683996 which seems to fit for the x value of the peak. When I put in this value for x into the original equation I also receive the correct value of about y=7.53 for the peak.
But when I try to read of the the peak by using the RHS my equation seems to crash: I received after serial trials always something that is not equal to the y values of the vertex :
what happened? Why is my right hand side not equal to 7.53?
I must do something extremely wrong when trying to calculate right hand side and receive the y value of the vertex.