I need to determine the maximum value for y = ax^2 + bx + c, where I know the coefficients and the upper and lower x values.
Say the input values are:
- a = 5
- b = 1
- c = 2
- x lower limit = -5
- x upper limit = 5
Given these input, how do I determine the the maximum value for the quadratic equation above?
My goal is to implement a function in a computer programming language that has a signature such as funcMax(int a, int b, int c, int xUpper, int xLower). The part that is confusing me is that I have two x values for this signature but one x in the formula above.
But computer programming aside for now, mathematically, how do I get the max value for the above equation, using the above input (with two x values)?