Colorful cupcakes
Seventeen cupcakes

Aunty Florrie's cupcakes

Aunt Florrie’s cupcakes were such a success at your cafe, that you decide to go into full time business selling her cupcakes state-wide! But you will have to make some important decisions to maximum your sales and profits.

In this step we will learn how the Demand and Supply curve analysis from step 2.6 allows us to analyse profits by analysing a quadratic optimisation problem – an excellent application of our knowledge of the geometry of the parabola.

A tasty optimization problem

Suppose that every week your new expanded cupcake bakery has fixed costs of and that it costs to make a dozen cupcakes.

How many dozen of Aunt Florrie’s cupcakes should you plan on making every week, and how should you price them? This is an optimization problem, with only one variable quantity, namely the number of dozens of cupcakes you will make per week.

To get some initial data, you conduct two experimental week-long “bake sales” across your state:

  • in one week, you price the cupcakes at per dozen and sell dozen cupcakes
  • in the other week, you price the cupcakes at per dozen and sell dozen cupcakes.

Q1 (E): Which bake sale was most profitable?

Here is the Quantity / Price Demand Line that you deduce from this:

Coordinate plane with price on y axis and quantity on x axis; plot of line passing through points [1000,8] and [3000,4]

Notice that this is a different Demand Line than when we were selling individual cupcakes in your cafe: it is now the line through the points and . It is also worth remarking that in Economics the axes are perhaps not what we might naively expect them to be: economists prefer to have Quantity along the horizontal axis, and Price along the vertical axis.

Q2 (E): How many dozen cupcakes would we expect to sell if the price was ?

The Demand Line has slope

and so an equation of the form

for some number . Please check that when we substitute one of the points, we determine that , so that our Demand Line is

Note that this equation could also be written as

We see that the lower is, the higher will be, and vice versa. Hopefully this makes sense: if we price our cupcakes lower, we can expect to sell more, and if we price them higher, we will sell less.

Coming to the crunch

Now how are we going to put this information together to actually make a business decision? If we sell dozen cupcakes, priced at per dozen, then our Sales Income will be . In terms of the price which we have control over, this can be written, using (1), as

Q3 (E): What is our Sales Income if we sell cupcakes for per dozen? How about at per dozen? How about at per dozen?

Q4 (M): What is our Sales Income if we end up selling dozen cupcakes?

We now want to maximize Sales Income, which we’ve seen is the quadratic function

of . Fortunately we know all about the shape of such functions–they are parabolas, and we know how to find the maximum values of a parabolic function!

Graph of S(P) as a function of P, with zeroes at [0,0] and [10,0] and maximum at x=5

This function will be zero when and when . So the maximum occurs when has the value exactly half way between the two zeroes, namely . Plugging this into the expression for and , we find that


Our conclusions

To maximize Sales Income, we aim at selling dozen cupcakes at per dozen, for an anticipated Sales Income of .

Hopefully this shows you that maximization problems that occur in real life often revolve around the geometry of a quadratic relation, and so knowing about this geometry can help us solve practical problems.


A1. Profit from the first bake sale was minus the cost of making dozen cupcakes minus the fixed cost:

Profit from the second bake sale was minus the cost of making dozen cupcakes minus the fixed cost

So the first bake sale was more profitable.

A2. Visually from the diagram we see that occurs at about .

A3. When our formula gives dollars. When we get the same value of dollars. If we check the value we find that we’ve over-priced, and only gotten dollars in sales.

A4. If we want to express Sales in terms of Quantity we use

Now if we get

Share this article:

This article is from the free online course:

Maths for Humans: Linear and Quadratic Relations

UNSW Sydney

Get a taste of this course

Find out what this course is like by previewing some of the course steps before you join: