Quadratic Equations
Quadratic Equations
Learning objectives
After completing this chapter students should be able to:
• Use factorization to solve quadratic equations with one unknown variable.
• Use the quadratic equation solution formula.
• Identify quadratic equations that cannot be solved.
• Set up and solve economic problems that involve quadratic functions.
• Construct a spreadsheet to plot quadratic and higher order polynomial functions.
ax 2 + bx + c = 0
where x is an unknown variable and a, b and c are constant parameters with a != 0. For
example,
6x 2 + 2.5x + 7 = 0
A quadratic equation that includes terms in both x and x 2 cannot be rearranged to get a single
term in x, so we cannot use the method used to solve linear equations.
There are three possible methods one might try to use to solve for the unknown in a
quadratic equation:
(i) by plotting a graph
(ii) by factorization
(iii) using the quadratic ‘formula’
In the next three sections we shall see how each can be used to tackle the following question.
If a monopoly can face the linear demand schedule
p = 85 − 2q (1)
TR = pq (2)
So, substituting the function for p from (1) into (2), we get
This is a quadratic function that cannot be ‘solved’ as it stands. It just tells us the value of
TR for any given output. What the question asks is ‘at what value of q will this function be
equal to 200’? The mathematical problem is therefore to solve the quadratic equation
All three solution methods require like terms to be brought together on one side of the equality
sign, leaving a zero on the other side. It is also necessary to put the terms in the order given
in the above definition of a quadratic equation, i.e.
2q 2 − 85q + 200 = 0
It is this quadratic equation that each of the three methods explained in the following sections
will be used to solve.
Before we run through these methods, however, you should note that an equation involving
terms in x 2 and a constant, but not x, can usually be solved by a simpler method. For example,
suppose that
5x 2 − 80 = 0
5x 2 = 80
x 2 = 16
x=4
Example 6.1
Show graphically that a solution does exist for the quadratic equation
2q 2 − 85q + 200 = 0
Solution
We first need to define a new function
y = 2q 2 − 85q + 200
If the graph of this function cuts the q axis then y = 0 and we have a solution to the
quadratic equation specified in the question. Next, we calculate a few values of the function
to get an approximate idea of its shape.
and so it must cut the q axis as y has gone from a positive to a negative value.
and so the value of y rises again and must cut the q axis a second time.
These values indicate that the graph is a U-shape, as shown in Figure 6.1. This cuts the
horizontal axis twice and so there are two values of q for which y is zero, which means that
there are two solutions to the question. The precise values of these solutions, 2.5 and 40, can
be found by the other two methods explained in the following sections or by computation of
y for different values of q. (See spreadsheet solution method below.)
If we slightly change the problem in Example 6.1 we can see why there may not always
be a solution to a quadratic equation.
Example 6.2
Find out if there is an output level at which total revenue is 1,500 for the function
TR = 85q − 2q 2
550
200
–10 10 20 30 40 50 60 q
–700
Figure 6.1
Solution
The quadratic equation to be solved is
1,500 = 85q − 2q 2
2q 2 − 85q + 1,500 = 0
y = 2q 2 − 85q + 1,500
and calculate a few values, we can see that it falls and then rises again but never cuts the
q axis, as Figure 6.2 shows.
There are therefore no solutions to this quadratic equation, i.e. there is no output at which
total revenue will be 1,500.
1,500
600
–10 10 20 30 40 50 60 q
Figure 6.2
Although one would never try to plot the whole graph of a quadratic function manually,
one may of course get a computer plot. The accuracy of the answer you obtain will depend
on the graphics package that you use.
This spreadsheet can easily be amended to calculate values and plot graphs of other
quadratic functions by entering different values for the parameters a, b and c in cells C2,
E2 and G2. For example, to calculate values for the function from Example 6.2
y = 2q 2 − 85q + 1,500
the value in cell G2 should be changed to 1,500. A computer plot of this function should
produce the shape shown in Figure 6.2 above, confirming again that this function will not cut
the horizontal axis and that there is no solution to the quadratic equation
0 = 2q 2 − 85q + 1,500
6.3 Factorization
In Chapter 3 factorization was explained, i.e. how some expressions can be broken down into
terms which when multiplied together give the original expression. For example,
a 2 − 2ab + b2 = (a − b)(a − b)
If a quadratic function which has been rearranged to equal zero can be factorized in this way
then one or the other of the two factors must equal zero. (Remember that if A × B = 0 then
either A or B, or both, must be zero.)
200
0
0 4 8 12 16 20 24 28 32 36 40
–200
–400
–600
–800
q
Figure 6.3
Example 6.3
Therefore
2q − 5 = 0 or q − 40 = 0
giving solutions
q = 2.5 or q = 40
As expected, these are the same solutions as those found by the graphical method.
It may be the case that mathematically a quadratic equation has one or more solutions with
a negative value that will not apply in an economic problem. One cannot have a negative
output, for example.
Example 6.4
2x 2 − 6x − 20 = 0
Solution
Therefore
2x − 10 = 0 or x + 2 = 0
x = 5 or x = −2
If a quadratic equation cannot be factorized then the formula method in Section 6.5 below
must be used. The formula method can also be used, however, when an equation can be
factorized. Therefore, if you cannot quickly see a way of factorizing then you should use the
formula method. Factorization is only useful as a short-cut way of solving certain quadratic
equations. It defeats the object of the exercise if you spend half an hour trying to find a way
of factorizing an expression when it would be quicker to use the formula.
© 1993, 2003 Mike Rosser
It should also go without saying that quadratic equations for which no solutions exist
cannot be factorized. For example, it is not possible to factorize the equation
2q 2 − 85q + 1,500 = 0
which we have already shown to have no solution.
p = 70 − q
AC = 40x −1 + 10x
TC = 6 − 2q + 2q 2
Example 6.5
These are, of course, the same as the solutions found by factorization in Example 6.3
above.
What happens if you try to use the quadratic formula when no solution exists? We can find
out by applying the formula to the quadratic equation in Example 6.2 above, where a sketch
graph showed that there was no solution.
Example 6.6
2q 2 − 85q + 1,500 = 0
Solution
In this example a = 2, b = −85 and c = 1,500. Therefore
!
−(−85) ± (−85)2 − 4 × 2 × 1,500
q=
2×2
√
85 ±7,225 − 12,000
=
4
√
85 ± −4,775
=
4
We are now stuck! It is impossible to find the square root of a negative number. In other
words, no solution exists.
It will always be the case that the quadratic formula will require the square root of a negative
number if no solution exists.
Example 6.7
Find the equilibrium values of p and q in a competitive market where the demand schedule is
p = 200q −1
p = 30 + 2q
Solution
In equilibrium, demand price equals supply price. Therefore
200q −1 = 30 + 2q
Multiplying through by q,
200 = 30q + 2q 2
0 = 2q 2 + 30q − 200
0 = (2q − 10)(q + 20)
Therefore 2q − 10 = 0 or q + 20 = 0
q=5 or q = −20
p = 30 + 2 × 5 = 40
You should now be able to link the different mathematical techniques you have learned so far
to tackle more complex problems. If you have covered the theory of perfect competition in
your economics course, then you should be able to follow the analysis in the example below.
Example 6.8
p = 70 − 0.08Q
(i) What will be the short-run price, industry output and profit for each firm?
(ii) What will happen to price, industry output and the number of firms in the long run?
(Assume new entrants have the same cost structure.)
Solution
(i) The industry supply schedule is the horizontal sum of the individual firms’ marginal cost
schedules. Given the marginal cost function
MC = 1.2q 2
MC 0.5
" #
=q
1.2
There are 100 firms, and so the amount supplied by the whole industry is
#0.5
MC
"
Q = 100q = 100 (1)
1.2
In perfect competition MC corresponds to the price at which any given quantity will be
supplied, and so (1) can be rewritten as
$ p %0.5
Q = 100
1.2
© 1993, 2003 Mike Rosser
Therefore
$ p %0.5
0.01Q =
1.2
p
(0.01Q)2 =
1.2
p
0.0001Q2 =
1.2
0.00012Q2 = p (2)
The function (2) will be the industry supply schedule. The demand schedule given in the
question is
p = 70 − 0.08Q (3)
In equilibrium, demand price equals supply price. Thus equating (3) and (2) we get
70 − 0.08Q = 0.00012Q2
0 = 0.00012Q2 + 0.08Q − 70 (4)
p = 70 − 0.08(500) = 70 − 40 = £30
TR − TC = pq − (40 + 0.4q 3 )
= 30(5) − (40 + 50)
= 150 − 90 = £60
(ii) If existing firms are making a profit then in the long run new entrants will be attracted into
the industry. This will shift the supply schedule to the right and price will be driven down
2y + 4x 2 + 10x − 36 = 0
and
4y − 10x 2 + 24x = 24
MC = 40 + 0.5q 2
How much should it sell in each market, and at what price, in order to maximize
profit?
5. A firm’s marginal cost schedule is MC = 2.3 + 0.00012q 2 and it sells its output
in two separate markets with demand schedules
What prices and quantities will maximize profits if this firm is a price-
discriminating monopoly?
6.6 Polynomials
Quadratic equations are a special case of polynomial equations. The general format of a
polynomial function is
y = a0 + a1 x + a2 x 2 + a3 x 3 + · · · + an x n
Example 6.9
where q is output level and TC is measured in pounds. If the firm’s management is given a
budget of £43,000, what output can it produce?
Table 6.3
CELL Enter Explanation
A1 Ex.6.9 Label to remind you what example this is
B2 CUBIC POLYNOMIAL Title of spreadsheet
SOLUTION TO
B3 TC =a + bq + cq^2 + dq^3 (Note that this is not an actual Excel
formula.)
F2 Parameter Labels that tell you that the parameter values
F3 Values will be shown below
E4 a= These are labels that tell you that the
E5 b= parameter values will go in the cells next to
E6 c= them.
E7 d= Right justify these cells.
F4 420 These are the actual parameter values for
F5 32.5 a,b,c and d, respectively, for this example.
F6 -6.25
F7 0.8
A3 q Column heading labels
B3 TC
C3 MC
A4 0 Initial value for q
A5 =A4+1 Calculates a one unit increment in q
A6 to Copy formula from cell A5 Calculates a series of values of q in one unit
A45 down column A increments
B4 =F$4+F$5*A4+F$6*A4^2+ Formula to calculate value of TC
F$7*A4^3 corresponding to value of q in cell A4 and
parameter values in cells F4, F5, F6 and F7.
Note the $ sign used to anchor row
references for when this formula is copied
down row B.
B5 to Copy formula from cell B4 Calculates values for TC in each row
B45 down column B corresponding to values of q in column A.
C5 =B5-B4 Calculates values MC as the change in TC
from a one unit increment in q.
C6 to Copy formula from cell C5 Calculates MC of a unit of q corresponding
C45 down column C to increment in TC shown in column B.
B4 to Highlight these columns and TC and MC are both monetary values
C45 format to 2 decimal places measured in £ so use numerical format 0.00
Your spreadsheet should now look like Table 6.4, which shows that when q is 40, TC will
be 42,920. Thus, if output is constrained to whole units, 40 is the maximum output that the
firm’s management can produce for a budget of £43,000.
This spreadsheet also confirms that MC declines in value then increases, but is never
negative. This is what we would expect. Save your spreadsheet for use with other examples.
© 1993, 2003 Mike Rosser
This example was constructed for a range of values of q that contained the answer we
were seeking. If you had no idea where the solution to this cubic polynomial lay then you
could get a ‘ball park’ estimate by producing a range of values in jumps of 10 in the column
headed q by entering the formula = A4 + 10 in cell A5 and then copying it down the column
for a few dozen rows. This would tell you that when q = 31, TC = £19,254.05, and when
q = 41, TC = £46,383.05. Therefore, TC = £43,000 must lie somewhere between these
values of q. Once you have a rough idea of where the solution value for q will lie, you can
change the q column so that values increase in only one unit increments, or smaller units if
necessary, until the actual solution is pinpointed.
To solve other cubic polynomials, one simply enters the corresponding parameters into the
spreadsheet set up for Example 6.9 above and adjusts the range of the independent variable
(q) until the solution is found.
Example 6.10
Table 6.5
A B C D E F
1 Ex 6.10 CUBIC POLYNOMIAL SOLUTION TO
2 TC =a + bq + cq^2 + dq^3 Parameter
3 q TC MC Values
4 0 880.00 a= 880
5 1 939.00 59.00 b= 72
6 2 978.00 39.00 c= -14.5
7 3 1006.00 28.00 d= 1.5
8 4 1032.00 26.00
9 5 1065.00 33.00
10 6 1114.00 49.00
11 7 1188.00 74.00
12 8 1296.00 108.00
13 9 1447.00 151.00
14 10 1650.00 203.00
15 11 1914.00 264.00
16 12 2248.00 334.00
17 13 2661.00 413.00
18 14 3162.00 501.00
19 15 3760.00 598.00
20 16 4464.00 704.00
21 17 5283.00 819.00
22 18 6226.00 943.00
23 19 7302.00 1076.00
24 20 8520.00 1218.00
25 21 9889.00 1369.00
26 22 11418.00 1529.00
This spreadsheet can also be adjusted to cope with more complex polynomials. Its crucial
part is the formula in cell B4. This needs to be amended to calculate the value of the new
polynomial function if more terms are added. Note, however, that large polynomial equations
may have several solutions. In particular, if there are both positive and negative coefficients,
a polynomial function may equal zero at more than two values of the independent variable.
You can usually deduce the number of solutions from the format of the equation, or get a plot
from your spreadsheet to see how many times the function crosses the horizontal axis. On
the other hand, no solutions may exist, in which case a graph will not cut the axis; e.g. there
is no positive value of x which will satisfy the equation
0 = 8 + 32x + 6x 2 + 0.9x 3
Example 6.11
Assuming x < 1,000, is there a positive value of x that is a solution to the function
Solution
To solve this equation we need to calculate values of the polynomial function
and find the value(s) of x where this function equals zero. To do this, call up the spreadsheet
created for Example 6.9 and then follow the instructions in Table 6.6 to add two new terms
so that it will be able to calculate values for polynomials in the format
y = a + bx + cx 2 + dx 3 + ex 4 + f x 5
Once the basic spreadsheet has been created, the ball-park method explained above can be
used to narrow down the possible solution range to between 30 and 40. This should give you
a spreadsheet that looks like Table 6.7. This clearly shows that y is zero when x is 38 and so
this is the solution. (If you try increasing the range of x you will see that there are no other
solutions in the range 0 < x < 1,000.)
Table 6.7
A B C D E F
1 Ex 6.11 CUBIC POLYNOMIAL SOLUTION TO
2 y =a + bx + cx^2 + dq^3 + ex^4 + fx^5 Parameter
3 x y Values
4 30 -99817.60 a = -770077.6
5 31 -59993.15 b= 262
6 32 -24823.20 c= -74
7 33 4298.75 d= 12
8 34 25835.20 e= 2
9 35 38098.65 f= -0.05
10 36 39245.60
11 37 27270.55
12 38 0.00
13 39 -44913.55
14 40 -109997.60