Find the Maximum or Minimum Value of a Quadratic Function Easily

For a variety of reasons, you may need to be able to define the maximum or minimum value of a selected quadratic function. You can find the maximum or minimum if your original function is written in general form, <math>f(x)=ax^2+bx+c</math>, or in standard form, <math>f(x)=a(x-h)^2+k</math>. Finally, you may also wish to use some basic calculus to define the maximum or minimum of any quadratic function.

Steps

Beginning with the General Form of the Function

  1. Set up the function in general form. A quadratic function is one that has an <math>x^2</math> term. It may or may not contain an <math>x</math> term without an exponent. There will be no exponents larger than 2. The general form is <math>f(x)=ax^2+bx+c</math>. If necessary, combine similar terms and rearrange to set the function in this general form.[1]
    • For example, suppose you start with <math>f(x)=3x+2x-x^2+3x^2+4</math>. Combine the <math>x^2</math> terms and the <math>x</math> terms to get the following in general form:
      • <math>f(x)=2x^2+5x+4</math>
  2. Determine the direction of the graph. A quadratic function results in the graph of a parabola. The parabola either opens upward or downward. If <math>a</math>, the coefficient of the <math>x^2</math> term, is positive, then the parabola opens upward. If <math>a</math> is negative, then the parabola opens downward. Look at the following examples:[2]
    • For <math>f(x)=2x^2+4x-6</math>, <math>a=2</math> so the parabola opens upward.
    • For <math>f(x)=-3x^2+2x+8</math>, <math>a=-3</math> so the parabola opens downward.
    • For <math>f(x)=x^2+6</math>, <math>a=1</math> so the parabola opens upward.
    • If the parabola opens upward, you will be finding its minimum value. If the parabola opens downward, you will find its maximum value.
  3. Calculate -b/2a. The value of <math>-\frac{b}{2a}</math> tells you the <math>x</math> value of the vertex of the parabola. When the quadratic function is written in its general form of <math>ax^2+bx+c</math>, use the coefficients of the <math>x</math> and <math>x^2</math> terms as follows:
    • For a function <math>f(x)=x^2+10x-1</math>, <math>a=1</math> and <math>b=10</math>. Therefore, find the x-value of the vertex as:
      • <math>x=-\frac{b}{2a}</math>
      • <math>x=-\frac{10}{(2)(1)}</math>
      • <math>x=-\frac{10}{2}</math>
      • <math>x=-5</math>
    • As a second example, consider the function <math>f(x)=-3x^2+6x-4</math>. In this example, <math>a=-3</math> and <math>b=6</math>. Therefore, find the x-value of the vertex as:
      • <math>x=-\frac{b}{2a}</math>
      • <math>x=-\frac{6}{(2)(-3)}</math>
      • <math>x=-\frac{6}{-6}</math>
      • <math>x=-(-1)</math>
      • <math>x=1</math>
  4. Find the corresponding f(x) value. Insert the value of x that you just calculated into the function to find the corresponding value of f(x). This will be the minimum or maximum of the function.
    • For the first example above, <math>f(x)=x^2+10x-1</math>, you calculated the x-value for the vertex to be <math>x=-5</math>. Enter <math>-5</math> in place of <math>x</math> in the function to find the maximum value:
      • <math>f(x)=x^2+10x-1</math>
      • <math>f(x)=(-5)^2+10(-5)-1</math>
      • <math>f(x)=25-50-1</math>
      • <math>f(x)=-26</math>
    • For the second example above, <math>f(x)=-3x^2+6x-4</math>, you found the vertex to be at <math>x=1</math>. Insert <math>1</math> in place of <math>x</math> in the function to find the maximum value:
      • <math>f(x)=-3x^2+6x-4</math>
      • <math>f(x)=-3(1)^2+6(1)-4</math>
      • <math>f(x)=-3+6-4</math>
      • <math>f(x)=-1</math>
  5. Report your results. Review the question you have been asked. If you are asked for the coordinates of the vertex, you need to report both the <math>x</math> and <math>y</math> (or <math>f(x)</math>) values. If you are only asked for the maximum or minimum, you only need to report the <math>y</math> (or <math>f(x)</math>) value. Refer back to the value of the <math>a</math> coefficient to be sure if you have a maximum or a minimum.
    • For the first example, <math>f(x)=x^2+10x-1</math>, the value of <math>a</math> is positive, so you will be reporting the minimum value. The vertex is at <math>(-5,-26)</math>, and the minimum value is <math>-26</math>.
    • For the second example, <math>f(x)=-3x^2+6x-4</math>, the value of <math>a</math> is negative, so you will be reporting the maximum value. The vertex is at <math>(1,-1)</math>, and the maximum value is <math>-1</math>.

Using the Standard or Vertex Form

  1. Write your quadratic function in standard or vertex form. The standard form of a general quadratic function, which can also be called the vertex form, looks like this:[2]
    • <math>f(x)=a(x-h)^2+k</math>
    • If your function is already given to you in this form, you just need to recognize the variables <math>a</math>, <math>h</math> and <math>k</math>. If your function begins in the general form <math>f(x)=ax^2+bx+c</math>, you will need to complete the square to rewrite it in vertex form.
    • To review how to complete the square, see Complete the Square.
  2. Determine the direction of the graph. Just as with a quadratic function written in its general form, you can tell the direction of the parabola by looking at the coefficient <math>a</math>. If <math>a</math> in this standard form is positive, then the parabola opens upward. If <math>a</math> is negative, then the parabola opens downward. Look at the following examples:[2]
    • For <math>f(x)=2(x+1)^2-4</math>, <math>a=2</math>, which is positive, so the parabola opens upward.
    • For <math>f(x)=-3(x-2)^2+2</math>, <math>a=-3</math>, which is negative, so the parabola opens downward.
    • If the parabola opens upward, you will be finding its minimum value. If the parabola opens downward, you will find its maximum value.
  3. Identify the minimum or maximum value. When the function is written in standard form, finding the minimum or maximum value is as simple as stating the value of the variable <math>k</math>. For the two example functions given above, these values are:
    • For <math>f(x)=2(x+1)^2-4</math>, <math>k=-4</math>. This is the minimum value of the function because this parabola opens upward.
    • For <math>f(x)=-3(x-2)^2+2</math>, <math>k=2</math>. This is the maximum value of the function, because this parabola opens downward.
  4. Find the vertex. If you are asked for the coordinates of the minimum or maximum value, the point will be <math>(h,k)</math>. Note, however, that in the standard form of the equation, the term inside the parentheses is <math>(x-h)</math>, so you need the opposite sign of the number that follows the <math>x</math>.
    • For <math>f(x)=2(x+1)^2-4</math>, the term inside the parentheses is (x+1), which can be rewritten as (x-(-1)). Thus, <math>h=-1</math>. Therefore, the coordinates of the vertex for this function are <math>(-1, -4)</math>.
    • For <math>f(x)=-3(x-2)^2+2</math>, the term inside the parentheses is (x-2). Therefore, <math>h=2</math>. The coordinates of the vertex are (2, 2).

Using Calculus to Derive the Minimum or Maximum

  1. Start with the general form. Write your quadratic function in general form, <math>f(x)=ax^2+bx+c</math>. If necessary, you may need to combine like terms and rearrange to get the proper form.[3]
    • Begin with the sample function <math>f(x)=2x^2-4x+1</math>.
  2. Use the power rule to find the first derivative. Using basic first-year calculus, you can find the first derivative of the general quadratic function to be <math>f^{\prime}(x)=2ax+b</math>.[3]
    • For the sample function <math>f(x)=2x^2-4x+1</math>, find the derivative as:
      • <math>f^{\prime}(x)=4x-4</math>
  3. Set the derivative equal to zero. Recall that derivative of a function tells you the slope of the function at that selected point. The minimum or maximum of a function occurs when the slope is zero. Therefore, to find where the minimum or maximum occurs, set the derivative equal to zero. Continue with the sample problem from above:[3]
    • <math>f^{\prime}(x)=4x-4</math>
    • <math>0=4x-4</math>
  4. Solve for x. Use basic rules of algebra to rearrange the function and solve the value for x, when the derivative equals zero. This solution will tell you the x-coordinate of the vertex of the function, which is where the maximum or minimum will occur.[3]
    • <math>0=4x-4</math>
    • <math>4=4x</math>
    • <math>1=x</math>
  5. Insert the solved value of x into the original function. The minimum or maximum value of the function will be the value for <math>f(x)</math> at the selected <math>x</math> position. Insert your value of <math>x</math> into the original function and solve to find the minimum or maximum.[3]
    • For the function <math>f(x)=2x^2-4x+1</math> at <math>x=1</math>,
      • <math>f(1)=2(1)^2-4(1)+1</math>
      • <math>f(1)=2-4+1</math>
      • <math>f(1)=-1</math>
  6. Report your solution. The solution gives you the vertex of the maximum or minimum point. For this sample function, <math>f(x)=2x^2-4x+1</math>, the vertex occurs at <math>(1,-1)</math>. The coefficient <math>a</math> is positive, so the function opens upward. Therefore, the minimum value of the function is the y-coordinate of the vertex, which is <math>-1</math>.[3]


Tips

  • The parabola's axis of symmetry is x = h.

Related Articles

Sources and Citations