Precalculus · Textbook draft · 10 minute reading

Quadratic Functions and Constraints

Connect completed squares, roots, discriminants, and feasible extrema.

Before you begin

  • Factoring, equations, and graph transformations.

Learning objectives

  • Convert between quadratic forms.
  • Derive and apply the quadratic formula.
  • Find a quadratic model’s optimum on a stated domain.

A rectangular enclosure against an existing wall needs fencing on three sides. If 48 metres of fencing are available and each side perpendicular to the wall has length xx, the third fenced side has length 48−2x48-2x. Its area is A(x)=x(48−2x)A(x)=x(48-2x) on 0≤x≤240\le x\le24. The resulting quadratic gives us a model whose best feasible value can be found by algebra.

The enclosure area rises from zero to a maximum of 288 square metres at width 12 metres, then falls to zero at width 24.

Three forms reveal different features

A quadratic has standard form ax2+bx+cax^2+bx+c with a≠0a\ne0. Its graph is a parabola. The sign of aa determines whether it opens upward or downward, and cc is its output at zero.

Completing the square gives

ax2+bx+c=a(x+b2a)2+c−b24a.ax^2+bx+c =a\left(x+\frac b{2a}\right)^2+c-\frac{b^2}{4a}.

Thus the vertex is at h=−b/(2a)h=-b/(2a) with output k=c−b2/(4a)k=c-b^2/(4a). In vertex form a(x−h)2+ka(x-h)^2+k, the squared term is nonnegative. If a>0a>0, the minimum is kk; if a<0a<0, the maximum is kk, provided the domain includes hh.

When real zeros r1,r2r_1,r_2 exist, factored form a(x−r1)(x−r2)a(x-r_1)(x-r_2) reveals the intercepts. Expanding and completing the square connect these descriptions of the same function.

Solving a quadratic by completing the square

Starting with ax2+bx+c=0ax^2+bx+c=0, divide by nonzero aa, move the constant term, and complete the square:

(x+b2a)2=b2−4ac4a2.\left(x+\frac b{2a}\right)^2 =\frac{b^2-4ac}{4a^2}.

Taking both signs of the square root yields

x=−b±b2−4ac2a.x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}.

The discriminant D=b2−4acD=b^2-4ac decides the number of distinct real roots. Positive DD gives two, zero gives one repeated root, and negative DD gives none. The complex-number chapter will extend the last case.

For 2x2−3x−2=02x^2-3x-2=0, D=25D=25 and the roots are (3±5)/4(3\pm5)/4, namely 2 and −1/2-1/2. The factorization (2x+1)(x−2)(2x+1)(x-2) provides an independent check.

Feasible domains decide whether a vertex is available

For the enclosure,

A(x)=48x−2x2=288−2(x−12)2.A(x)=48x-2x^2=288-2(x-12)^2.

The vertex x=12x=12 lies in [0,24][0,24], giving parallel side 24 and maximum area 288 square metres. Both endpoints give area zero. Completing the square has established the maximum across the entire feasible interval.

If the site requires x≤10x\le10, the unconstrained vertex is no longer feasible. On [0,10][0,10], increasing xx moves closer to 12 and reduces (x−12)2(x-12)^2, so the maximum occurs at x=10x=10, with area 280. We cannot report the vertex without checking the model’s restrictions.

Quadratic inequalities follow the zeros

For x2−5x+6≤0x^2-5x+6\le0, factor (x−2)(x−3)(x-2)(x-3). The upward-opening parabola is nonpositive between its two zeros, giving [2,3][2,3]. For x2+1>0x^2+1>0, the completed square is already a square plus a positive constant, so the inequality holds for every real input without any real zeros.

A root and an inequality boundary are related but distinct objects. A repeated root such as that of (x−2)2(x-2)^2 touches zero without changing the expression’s sign.

Recovering a quadratic model

If a quadratic has zeros 1 and 5 and passes through (0,10)(0,10), write f(x)=a(x−1)(x−5)f(x)=a(x-1)(x-5). The additional point gives 5a=105a=10, hence a=2a=2. Its symmetry axis is halfway between the roots, x=3x=3, and f(3)=−8f(3)=-8. Using a form that matches the given information avoids solving an unnecessary three-coefficient system.

Exercises

  1. Complete the square for x2−6x+11x^2-6x+11 and give its minimum.
  2. Solve 3x2+2x−1=03x^2+2x-1=0.
  3. Determine the number of real roots of 2x2+x+4=02x^2+x+4=0.
  4. Solve x2−x−6<0x^2-x-6<0.
  5. Maximize A(x)=30x−x2A(x)=30x-x^2 on [0,10][0,10].
  6. Find the quadratic with zeros −1,3-1,3 that passes through (0,−6)(0,-6).
Worked solutions
  1. (x−3)2+2(x-3)^2+2, with minimum 2 at x=3x=3.
  2. The factorization (3x−1)(x+1)=0(3x-1)(x+1)=0 gives x=1/3,−1x=1/3,-1.
  3. The discriminant is 1−32=−311-32=-31, so there are no real roots.
  4. (x−3)(x+2)<0(x-3)(x+2)<0 between the roots, giving (−2,3)(-2,3).
  5. The unrestricted vertex is 15, outside the domain. The function increases toward it throughout [0,10][0,10], so the maximum is A(10)=200A(10)=200.
  6. Write a(x+1)(x−3)a(x+1)(x-3). At zero, −3a=−6-3a=-6, giving a=2a=2 and f(x)=2(x+1)(x−3)f(x)=2(x+1)(x-3).
Your study progress · Optional

Keep your place

Mark this lesson complete after you've read it, attempted its exercises, and explained its central idea in your own words.

Progress is not saved unless you choose to mark the lesson complete.

Saved only in this browser's local storage. No required account, server transmission, or analytics. You can reset your saved progress on the course page. Clearing browser data also clears the record.