MATH 150 · Mathematics for Economics I

Quadratic Functions, Revenue and Profit

Discover why revenue and profit curve like hills, and use factoring, the vertex and the quadratic formula to find peaks and break-even points.

Key takeaways

  • A quadratic function contains the unknown squared, and its graph is a U-shaped or upside-down U-shaped curve called a parabola.
  • With a straight demand line, revenue is a quadratic in quantity that starts at zero, rises to a peak and falls back to zero.
  • The peak of a parabola sits at x = −b / 2a, exactly halfway between the two points where it crosses any horizontal level.
  • Break-even quantities are where profit equals zero, and factoring or the quadratic formula will find them.
  • The quantity that maximizes revenue is usually not the quantity that maximizes profit, because profit also counts cost.

Nia pours candles in her garage and sells them at a weekend market. One slow morning she has a bright idea: raise the price, earn more. The next week she has the opposite idea: cut the price, sell more, earn more. Both ideas sound good. Both can be right. Both can be badly wrong.

If she charges nothing, candles fly off the table and she takes in zero dollars. If she charges a fortune, nobody buys and she takes in zero dollars. Somewhere in between, she takes in money. So the line from price to revenue cannot be straight. It has to go up and come back down, like a hill.

The simplest equation that draws a hill is a quadratic. Learn to read it, and you can find the top of Nia's hill without climbing it by trial and error.

What makes a function quadratic

A quadratic function has the form

y = ax² + bx + c

where a is not zero. The little 2 means x times x. The numbers a, b and c are fixed. Its graph is a smooth curve called a parabola.

The sign of a decides which way it opens. If a is positive, the curve opens upward, like a cup, and has a lowest point. If a is negative, it opens downward, like a cap, and has a highest point. That highest or lowest point is the vertex.

Compare a line and a parabola. A line adds the same amount to y at every step. A parabola changes its step size as you go. Watch y = x²: it takes the values 0, 1, 4, 9, 16. The gaps are 1, 3, 5, 7. The gaps grow steadily. That steady change in the change is the signature of a quadratic.

Where revenue gets its curve

Nia estimates that the highest price at which she can sell q candles a day is

p = 20 − 0.5q

This is an inverse demand line, the kind drawn in lines, slopes and intercepts. To sell one more candle, she must shave 50 cents off the price of all of them, since she charges everyone the same.

Revenue is price times quantity.

R = p × q = (20 − 0.5q) × q = 20q − 0.5q²

There is the squared term, born from multiplying a price that depends on q by q itself. Here a = −0.5, b = 20 and c = 0.

Look at some values.

Candles (q) Price Revenue
0 $20 $0
10 $15 $150
20 $10 $200
30 $5 $150
40 $0 $0

Two forces are fighting. Selling more candles adds revenue from the new sales. Cutting the price loses revenue on every candle she would have sold anyway. Early on, the first force wins. Past 20 candles, the second one does.

Nia's revenue hill
Revenue ($) 20 $200 Revenue Peak $150 $150 Candles per day Revenue ($) 20 $200 Revenue Peak $150 $150 Candles per day

The curve is symmetric around 20 candles.

Finding the top

Notice the table is a mirror: 10 and 30 candles earn the same $150. Parabolas are symmetric, meaning the two halves match. So the peak must sit halfway between any two points at the same height. Halfway between 0 and 40 is 20.

There is a formula that gives the same answer for any quadratic:

x at the vertex = −b / (2a)

For revenue, −20 / (2 × −0.5) = −20 / −1 = 20 candles. Plug 20 back in: R = 400 − 200 = $200. The price there is 20 − 10 = $10.

Completing the square, once

Why does the formula work? Rewrite the revenue function:

R = −0.5q² + 20q
R = −0.5 (q² − 40q)
R = −0.5 (q² − 40q + 400) + 200
R = −0.5 (q − 20)² + 200

This rewriting is called completing the square. The term (q − 20)² can never be negative. It is multiplied by −0.5, so it can only take money away from 200. It takes away nothing when q = 20. That is why 200 is the maximum, with no graph needed.

Try q = 24: (4)² = 16, half is 8, so R = $192. Direct check: 20 × 24 − 0.5 × 576 = 480 − 288 = 192.

What each extra candle adds

You can see the hill another way, by asking what one more step is worth. Going from 0 to 10 candles added $150 of revenue. Going from 10 to 20 added only $50. Going from 20 to 30 took away $50. Going from 30 to 40 took away $150.

The extra revenue from selling more is called marginal revenue. Here it shrinks by the same amount with each equal step: 150, 50, −50, −150, dropping 100 each time. A quadratic revenue curve always behaves this way, which means its marginal revenue follows a straight line.

The peak is where marginal revenue changes sign. Before it, another candle brings money in. After it, another candle takes money out, because the price cut on all the others costs more than the new sale brings.

This also explains why a seller with a downward-sloping demand line cannot think of the price of a candle as what one more candle earns. At 10 candles the price is $15. To sell an eleventh, she must charge $14.50 for all eleven. Revenue goes from $150 to $159.50, a gain of only $9.50. The new candle brought in $14.50, and the ten others each lost 50 cents.

Adding cost: from revenue to profit

Revenue is not what Nia takes home. Suppose her table fee is $56 a day and each candle costs $4 in wax, wick and jar.

Cost:    C = 56 + 4q
Profit:  π = R − C = 20q − 0.5q² − 56 − 4q
         π = −0.5q² + 16q − 56

Profit is also a parabola that opens downward. Its vertex is at

q = −16 / (2 × −0.5) = 16
π = −0.5 × 256 + 16 × 16 − 56 = −128 + 256 − 56 = 72
p = 20 − 0.5 × 16 = 12

Nia does best making 16 candles, charging $12 and earning $72. The revenue peak was at 20 candles and $10. At 20 candles, profit is only −200 + 320 − 56 = $64. The last four candles added revenue, but less than the $4 each they cost to make.

Revenue and cost on one grid
Dollars 4 28 Revenue Cost Break-even Break-even Best profit Candles per day Dollars 4 28 Revenue Cost Break-even Break-even Best profit Candles per day

Profit is the vertical gap between the curves, widest at 16 candles.

A worked example: where does she break even?

Break-even means π = 0.

Step 1: Write the equation.

−0.5q² + 16q − 56 = 0

Step 2: Tidy it. Multiply every term by −2 so the squared term is plain.

q² − 32q + 112 = 0

Step 3: Factor. To factor a quadratic is to write it as a product of two brackets. You want two numbers that multiply to 112 and add to 32. They are 4 and 28.

(q − 4)(q − 28) = 0

Step 4: Use the zero rule. If two things multiply to zero, at least one of them is zero. So q = 4 or q = 28. These solutions are called the roots.

Step 5: Check. At q = 4: revenue is 80 − 8 = 72, and cost is 56 + 16 = 72. At q = 28: revenue is 560 − 392 = 168, and cost is 56 + 112 = 168.

Nia makes money between 4 and 28 candles and loses money outside that band. The midpoint of 4 and 28 is 16, the profit peak, just as symmetry promised.

When factoring is not friendly

Most real numbers refuse to factor neatly. The quadratic formula always works for ax² + bx + c = 0:

x = (−b ± √(b² − 4ac)) / (2a)

The sign ± means you compute it twice, once adding and once subtracting. Using q² − 32q + 112 = 0:

b² − 4ac = 1024 − 448 = 576
√576 = 24
q = (32 ± 24) / 2   which gives 28 or 4

The quantity under the square root is the discriminant, and it works as a forecast. If it is positive, there are two roots. If it is zero, the curve just touches the axis once. If it is negative, there are no real roots: the hill never reaches zero, and in a profit model that means Nia loses money at every quantity.

What the discriminant tells Nia
Two break-even points Profit between them when the curve opens down One touching point The best she can do is exactly break even No break-even point With a hill shaped profit curve, a loss everywhere positive zero negative Compute b² − 4ac For profit set equal to zero Compute b² − 4ac For profit set equal to zero positive: Two break-even points Profit between them when the curve opens down zero: One touching point The best she can do is exactly break even negative: No break-even point With a hill shaped profit curve, a loss everywhere

What would put Nia in the last branch? A higher table fee. Her profit peak before the fee is −128 + 256 = $128. Any fee above $128 sinks the whole hill below zero. At a fee of exactly $128, she breaks even only at 16 candles.

Notice something else. Changing the fee slides the profit curve up or down, but the peak stays at 16 candles. A fixed fee changes how much she earns, not how many candles are best to make, so long as it is still worth showing up.

A change in cost

Now suppose wax gets more expensive and each candle costs $8 instead of $4. The table fee stays at $56.

π = 20q − 0.5q² − 56 − 8q
π = −0.5q² + 12q − 56
Vertex: q = −12 / (2 × −0.5) = 12
π = −72 + 144 − 56 = 16
p = 20 − 0.5 × 12 = 14

Her best quantity falls from 16 to 12. Her best price rises from $12 to $14. Profit drops from $72 to $16.

Look closely at the price. Cost per candle rose by $4, but the best price rose by only $2. With a straight demand line and a constant cost per unit, the seller who maximizes profit passes along half of a cost increase. She absorbs the rest, because pushing the whole $4 onto buyers would lose too many of them. This half rule belongs to this particular setup. Different demand curves give different answers, so do not carry it everywhere.

Compare the two kinds of cost. A change in the fee moved profit but left the best quantity alone. A change in the cost per candle moved both. The reason is visible in the formula −b / (2a): the cost per unit is part of b, while the fee sits in c, and c does not appear in the formula at all.

The common mistake: maximizing the wrong thing

The most frequent error is finding the revenue peak when the question asked about profit. Selling to the top of the revenue hill ignores that candles cost something. Unless the cost of an extra unit is zero, the best profit quantity is smaller than the best revenue quantity.

Here are three algebra slips to watch for.

  • Dropping the minus in −b / 2a. With a = −0.5 and b = 16, the two negatives cancel to give +16. A negative quantity is your alarm bell.
  • Squaring a negative carelessly. (−32)² is +1024, not −1024.
  • Confusing the vertex with its value. The vertex position, 16, is a number of candles. The value there, 72, is dollars. Answer the question that was asked.

Later you will find peaks of much stranger curves with calculus, in finding maximums and minimums. The idea stays the same: the top of the hill is where going one step further stops paying. Economists call that thinking at the margin.

Words to know

Quadratic function a function whose highest power of the unknown is two.

Parabola the U-shaped or upside-down U-shaped graph of a quadratic function.

Vertex the highest or lowest point of a parabola.

Root a value of the unknown that makes the function equal zero.

Factoring a quadratic rewriting it as a product of two simpler brackets.

Discriminant the quantity b² − 4ac, which shows how many real roots exist.

Profit total revenue minus total cost.

Check yourself

  1. Does the graph of y = −3x² + 12x open upward or downward, and why?
  2. For y = −3x² + 12x, find the x value and the height of the vertex.
  3. Demand is p = 30 − q. Write revenue as a function of q and find the revenue-maximizing quantity.
  4. With that demand and cost C = 10q + 75, find the break-even quantities.
  5. For the same firm, find the profit-maximizing quantity and the profit.
  6. Explain why a rise in a fixed fee does not change the profit-maximizing quantity, as long as the firm stays open.
Show the answers
  1. It opens downward because the coefficient on x² is negative.
  2. x = −12 / (2 × −3) = 2, and y = −12 + 24 = 12.
  3. R = 30q − q², which peaks at q = −30 / −2 = 15.
  4. Profit is −q² + 20q − 75 = 0, so q² − 20q + 75 = (q − 5)(q − 15) = 0, giving q = 5 or 15.
  5. The vertex is at q = 10, where profit is −100 + 200 − 75 = 25.
  6. A fixed fee lowers profit by the same amount at every quantity, so the whole curve slides down and its peak stays at the same horizontal position.

A free self-study program written for 4Economics with AI writing tools and not reviewed line by line by a person. It is not an accredited degree and awards no credit. Check anything you rely on against a textbook or primary source. Report an error.

In this unit: Algebra and functions

  1. Why Economists Use MathSee why economists turn stories into equations, what a model is, and how a few lines of algebra can settle a real argument.11 min
  2. Numbers, Percentages and Percentage PointsMaster percent change, percentage points, reversing a change and weighted averages so that economic headlines stop fooling you.11 min
  3. Solving Linear EquationsLearn to isolate an unknown, rearrange economic formulas and solve break-even problems with steps you can check yourself.11 min
  4. Lines, Slopes and InterceptsRead and build straight lines, interpret slope and intercept with units, and see how budget and demand lines tell economic stories.10 min
  5. Systems of Equations and Market EquilibriumSolve two equations at once by substitution or elimination, then use the method to find market prices and measure the effect of a tax.11 min
  6. Quadratic Functions, Revenue and ProfitDiscover why revenue and profit curve like hills, and use factoring, the vertex and the quadratic formula to find peaks and break-even points.10 min
  7. Exponents and PowersLearn the rules of exponents, including negative and fractional powers, and see why they describe production, scale and growth.11 min

In the news