
Session 03-03 - Quadratic Functions & Basic Optimization
Section 03: Functions as Business Models
Entry Quiz
Review from Session 03-02
Work individually, then we discuss together as group
Find the market equilibrium for:
- Demand: \(Q_d = 200 - 2p\)
- Supply: \(Q_s = 50 + 3p\)
Write the equation of a line passing through points (2, 8) and (5, 20).
For the cost function \(C(x) = 500 + 12x\) and revenue \(R(x) = 25x\), find the profit when \(x = 100\).
Market equilibrium:
- \(200 - 2p = 50 + 3p\)
- \(150 = 5p\)
- \(p^* = 30\), \(Q^* = 200 - 60 = 140\) units
Line equation:
- Slope: \(m = \frac{20-8}{5-2} = \frac{12}{3} = 4\)
- Using point-slope: \(y - 8 = 4(x - 2)\)
- \(y = 4x\)
Profit at x = 100:
- \(P(100) = R(100) - C(100) = 2500 - 1700 = 800\text{ EUR}\)
Homework Discussion
Discussing Tasks 03-02
Let’s discuss the most difficult tasks from last lecture
- Problem 8: Strawberry market
- Supply function with the point-slope form?
- Problem 9: Beeswax wraps
- What does the contribution margin tell you?
- FSP Problem: Smart door locks
- From maximum price and saturation to \(p(x)\)?
Today we’ll learn the exact method to find the output with the highest profit!
Learning Objectives
Learning Objectives
By the end of this session, you can:
- Interpret the parameters \(a\), \(b\), \(c\) of a quadratic function
- Switch between standard, vertex, and factored form - and know when each helps
- Find the vertex with \(x_v = -\frac{b}{2a}\) and use it to optimize
- Distinguish revenue maximization from profit maximization
- Respect real-world constraints that may override the mathematical optimum
Quadratic Functions
From Linear to Quadratic
Quadratic functions model accelerating change
Linear vs. Quadratic:
- Linear: \(f(x) = mx + b\) → Constant rate of change
- Quadratic: \(f(x) = ax^2 + bx + c\) → Changing rate of change
- Graph shape: Quadratic → Parabola (U-shaped or ∩-shaped)
- Business meaning:
- Linear → Fixed relationships
- Quadratic → Optimization opportunities!
Standard Form
The foundation: f(x) = ax² + bx + c
Key components:
- a: Direction and width
- \(a > 0\): Opens upward (has minimum)
- \(a < 0\): Opens downward (has maximum)
- \(|a|\) larger → Narrower parabola
- b: Affects position of vertex
- c: y-intercept (value when \(x = 0\))
The Role of a
Larger \(|a|\) → narrower parabola; negative \(a\) flips it upside down.
Anatomy of a Parabola

Example: \(f(x) = x^2 - 4x + 3\) - every feature has a business meaning when \(f\) models profit or cost.
Factored Form
Third representation: f(x) = a(x - r₁)(x - r₂)
- Roots: \(r_1, r_2\) - directly visible!
- Direction: \(a\) (same as always)
- Vertex: halfway between the roots, \(x_v = \frac{r_1 + r_2}{2}\)
- Example: \(f(x) = 2(x - 1)(x - 3)\)
- Roots at \(x = 1\) and \(x = 3\), vertex at \(x = 2\)
- Expanded: \(f(x) = 2x^2 - 8x + 6\) (same function, standard form)
For a profit function, the roots are the break-even point (lower) and the profit limit (upper); between them lies the profit zone!
Example: Profit Function

Quick Practice
Work individually, then we discuss
- Determine: Does it open upward (U) or downward (∩)?
- Determine: Does it have a maximum or minimum?
- Determine: What is the y-intercept?
\(R(x) = -3x^2 + 120x - 500\)
\(C(x) = 2x^2 + 40x + 1000\)
\(P(x) = -x^2 + 50x - 300\)
Challenge: For c. find the break-even points.
\(R(x) = -3x^2 + 120x - 500\)
- \(a = -3\) (negative)
- Opens downward (∩)
- Has a maximum (revenue function - find optimal price/quantity)
- Y-intercept: \(c = -500\) (loss of 500 EUR at zero production)
\(C(x) = 2x^2 + 40x + 1000\)
- \(a = 2\) (positive)
- Opens upward (U)
- Has a minimum
- Y-intercept: \(c = 1000\) (fixed costs of 1000 EUR)
\(P(x) = -x^2 + 50x - 300\)
- \(a = -1\) (negative)
- Opens downward (∩)
- Has a maximum (profit function - find optimal production)
- Y-intercept: \(c = -300\) (loss of 300 EUR at zero production)
Challenge Solution: Break-even points: Solve \(-x^2 + 50x - 300 = 0\)
Multiply by -1: \(x^2 - 50x + 300 = 0\)
Using quadratic formula: \(x = \frac{50 \pm \sqrt{2500 - 1200}}{2} = \frac{50 \pm \sqrt{1300}}{2}\)
\(x = \frac{50 \pm 36.06}{2}\)
- \(x_1 = \frac{50 - 36.06}{2} \approx 6.97\) units
- \(x_2 = \frac{50 + 36.06}{2} \approx 43.03\) units
Break-even at approximately 7 and 43 units.
Finding the Vertex
The Vertex Formula
The key: x = -b/2a
For \(f(x) = ax^2 + bx + c\):
- Vertex x-coordinate: \(x_v = -\frac{b}{2a}\)
- Vertex y-coordinate: \(f(x_v) = f(-\frac{b}{2a})\)
- Vertex represents:
- Maximum if \(a < 0\) (parabola opens down)
- Minimum if \(a > 0\) (parabola opens up)
- Axis of symmetry: Vertical line \(x = x_v\)
Vertex Example: Optimal Revenue
A company’s revenue depends on price:
\[R(p) = -50p^2 + 2000p\]
- Find optimal price: \(p_v = -\frac{2000}{2(-50)} = -\frac{2000}{-100} = 20\) euros
- Maximum revenue: \(R(20) = 20000\) euros
- Interpretation: Charging 20 EUR maximizes revenue at 20,000 EUR
The axis of symmetry divides the parabola into mirror images. Points equidistant from it have equal revenue!
Visualization

Vertex Form
Alternative representation: f(x) = a(x - h)² + k
- Vertex: \((h, k)\) - directly visible!
- Direction: \(a\) (same as standard form)
- Advantage: Vertex immediately apparent
- Transformation from vertex:
- Horizontal shift by \(h\)
- Vertical shift by \(k\)
- Example: \(f(x) = 2(x - 3)^2 + 5\) → Vertex at \((3, 5)\), minimum
- Example: \(g(x) = -(x + 4)^2 + 10\) → Vertex at \((-4, 10)\), maximum
Recap: Completing the Square
From standard form to vertex form - you know this from Session 02-02
Example: \(f(x) = 2x^2 - 12x + 10\)
- Factor out 2: \(f(x) = 2(x^2 - 6x) + 10\)
- Add and subtract \((\frac{-6}{2})^2 = 9\): \(f(x) = 2((x - 3)^2 - 9) + 10\)
- Simplify: \(f(x) = 2(x - 3)^2 - 8\) → Vertex \((3, -8)\), minimum
The full technique was covered in Session 02-02 (Quadratic, Biquadratic & Cubic Equations) - here we only use it to read off the vertex.
Practice: From Graph to Formula
FSP-style: determine the function from its properties
A parabola has its vertex at \((2, -8)\) and passes through the point \((0, 4)\).
- Write \(f(x)\) in vertex form
- Expand to standard form and give the y-intercept
Vertex form with unknown \(a\): \(f(x) = a(x - 2)^2 - 8\)
- Insert \((0, 4)\): \(4 = a(0 - 2)^2 - 8 = 4a - 8\)
- \(4a = 12\), so \(a = 3\)
- \(f(x) = 3(x - 2)^2 - 8\)
Expand: \(f(x) = 3(x^2 - 4x + 4) - 8 = 3x^2 - 12x + 4\)
- y-intercept: \(f(0) = 4\) (consistent with the given point)
Break
Business Applications
Price-Dependent Demand
When price affects quantity: Revenue becomes quadratic!
Basic Scenario:
- Demand function: \(Q = a - bp\) (quantity depends on price)
- Revenue: \(R = p \times Q = p(a - bp)\)
- Expanded: \(R(p) = ap - bp^2 = -bp^2 + ap\)
- This is quadratic in \(p\)!
Remember, we have seen this in the past!
Example: Concert Venue
A venue (capacity: 1000) has ticket demand: \(Q = 1000 - 20p\)
- Revenue function: \(R(p) = p(1000 - 20p) = 1000p - 20p^2\)
- Optimal price: \(p^* = -\frac{1000}{2(-20)} = \frac{1000}{40} = 25\) euros
- Tickets sold: \(Q = 1000 - 20(25) = 500\)
- Maximum revenue: \(R(25) = 25 \times 500 = 12,500\)
- At 0 EUR: Demand = 1000 (full capacity if free)
- At 50 EUR: Demand = 0 (too expensive, no one buys)
Note: This maximizes revenue, not necessarily profit!
Example: Minimizing Unit Costs
Not all optima are maxima - upward parabolas have minima!
A workshop’s cost per unit depends on the batch size \(x\):
\[c(x) = 0.5x^2 - 20x + 350\]
- \(a = 0.5 > 0\) → opens upward → the vertex is a minimum
- Cost-minimizing batch size: \(x_v = -\frac{-20}{2(0.5)} = 20\) units
- Minimum unit cost: \(c(20) = 200 - 400 + 350 = 150\) euros
- Too-small batches waste setup time, too-large batches cause overtime - the parabola captures both
Guided Practice
Spot the Error
Three statements - each contains a mistake. Find them!
“For \(f(x) = x^2 - 6x + 5\), the vertex is at \(x_v = \frac{b}{2a} = \frac{-6}{2} = -3\).”
“Since \(a = 1 > 0\), the vertex of \(f(x) = x^2 - 6x + 5\) is its maximum.”
“The y-intercept of \(f(x) = 2(x - 1)(x - 3)\) is \(-3\), because the constant term is \(-3\).”
Sign error: the formula is \(x_v = -\frac{b}{2a} = -\frac{-6}{2} = +3\). Forgetting the minus sign is the single most common vertex mistake.
Max/min confusion: \(a > 0\) means the parabola opens upward, so the vertex is a minimum. A maximum requires \(a < 0\).
Factored form trap: the y-intercept is \(f(0) = 2(0-1)(0-3) = 2 \cdot (-1) \cdot (-3) = 6\). You must evaluate at \(x = 0\), not read off a “constant term” from factored form.
Individual Exercise Block
Work alone for 15 minutes, then we compare solutions
- For \(f(x) = x^2 - 8x + 12\):
- Find the vertex using the formula
- Determine if it’s a maximum or minimum and find the y-intercept
- A profit function is \(P(x) = -3x^2 + 240x - 3600\):
- Find the number of units that maximizes profit
- Calculate the maximum profit and the break-even points
Individual Exercise Block II
- Convert \(f(x) = 2x^2 - 12x + 14\) to vertex form by completing the square, then identify the vertex.
For \(f(x) = x^2 - 8x + 12\):
- Vertex: \(x_v = -\frac{-8}{2(1)} = 4\) \(f(4) = 16 - 32 + 12 = -4\) Vertex: \((4, -4)\)
- Since \(a = 1 > 0\), it’s a minimum
- y-intercept: \(f(0) = 12\)
Profit optimization:
- \(x = -\frac{240}{2(-3)} = \frac{240}{6} = 40\) units
- \(P(40) = -3(1600) + 240(40) - 3600 = -4800 + 9600 - 3600 = 1200\) euros
- Break-even: \(-3x^2 + 240x - 3600 = 0\) Divide by -3: \(x^2 - 80x + 1200 = 0\) Using quadratic formula: \(x = \frac{80 \pm \sqrt{6400 - 4800}}{2} = \frac{80 \pm 40}{2}\) \(x = 60\) or \(x = 20\)
Converting to vertex form: \(f(x) = 2x^2 - 12x + 14\)
Step 1: Factor out the coefficient of \(x^2\): \(f(x) = 2(x^2 - 6x) + 14\)
Step 2: Complete the square inside parentheses: Take half of the \(x\) coefficient: \((-6) ÷ 2 = -3\) Square it: \((-3)^2 = 9\)
Step 3: Add and subtract inside parentheses: \(f(x) = 2(x^2 - 6x + 9 - 9) + 14\) \(f(x) = 2((x - 3)^2 - 9) + 14\)
Step 4: Distribute and simplify: \(f(x) = 2(x - 3)^2 - 18 + 14\) \(f(x) = 2(x - 3)^2 - 4\)
Vertex form: \(f(x) = 2(x - 3)^2 - 4\) Vertex: \((3, -4)\)
Practice: Set Up a Profit Function
FSP-style: from words to optimum
A food stall sells \(x\) portions per day. The price per portion falls with quantity: \(p(x) = 20 - 0.5x\) euros. Daily costs are \(C(x) = 2x + 50\) euros.
- Set up the revenue function \(R(x)\)
- Set up the profit function \(P(x)\)
- How many portions maximize profit, and what is the maximum daily profit?
\(R(x) = p(x) \cdot x = (20 - 0.5x)x = 20x - 0.5x^2\)
\(P(x) = R(x) - C(x) = 20x - 0.5x^2 - (2x + 50) = -0.5x^2 + 18x - 50\)
Vertex: \(x_v = -\frac{18}{2(-0.5)} = 18\) portions
- \(P(18) = -0.5(324) + 324 - 50 = -162 + 324 - 50 = 112\) euros
- Selling 18 portions per day yields the maximum profit of 112 EUR
Projectile Motion
Product Launch Campaign
Marketing models new product awareness like projectile motion
\[A(t) = -2t^2 + 24t\] where \(A\) is awareness score and \(t\) is weeks after launch.
- Peak awareness time: \(t = -\frac{24}{2(-2)} = 6\) weeks
- Maximum awareness: \(A(6) = -72 + 144 = 72\) points
- Campaign ends when \(A(t) = 0\): at \(t = 0\) and \(t = 12\) weeks
Campaign follows symmetric pattern: builds to peak at 6 weeks, then decays at same rate.
Campaign Awareness

Area Optimization
Maximizing Area with Constraints
Classic problem: Maximum area with fixed perimeter
Rectangular Storage Area with 200 meters of fencing available. One side against a building (no fence). Maximize the storage area.
- Let \(x\) = width, \(y\) = length parallel to building
- Constraint: \(2x + y = 200\) (fencing)
- So: \(y = 200 - 2x\)
- Area: \(A = xy = x(200 - 2x) = 200x - 2x^2\)
- Maximum at: \(x = -\frac{200}{2(-2)} = 50\) meters
- Dimensions: 50m × 100m, Area = 5000 m²
Visualization

Too narrow or too wide both shrink the area - the optimum sits in the middle!
Team Problem-Solving
Business Optimization
The Scenario: Smart Tech Product Launch
Smart Tech is launching a new tablet. Market research indicates:
- At 200 EUR: would sell 8,000 units per month
- At 400 EUR: would sell 4,000 units per month
- At 600 EUR: would sell 0 units (too expensive)
- Production cost: 150 EUR per tablet
- Fixed monthly costs: 200,000 EUR
Assume linear demand relationship.
Your Tasks:
Work in groups of 3-4 students
Derive the demand function \(Q(p)\) where \(p\) is price
Express revenue \(R(p)\) as a function of price (this will be quadratic!)
Find the price that maximizes revenue
Your Tasks II:
Express profit \(\Pi(p)\) as a function of price
Find the price that maximizes profit (different from revenue-maximizing price!)
If the company can only produce 5,000 tablets per month, should they use the profit-maximizing price? Explain.
Demand function:
- Points: (200, 8000) and (600, 0)
- Slope: \(m = \frac{0-8000}{600-200} = \frac{-8000}{400} = -20\)
- \(Q - 8000 = -20(p - 200)\)
- \(Q(p) = -20p + 4000 + 8000 = 12000 - 20p\)
Revenue function:
- \(R(p) = p \cdot Q(p) = p(12000 - 20p) = 12000p - 20p^2\)
Revenue-maximizing price:
- \(p_R = -\frac{12000}{2(-20)} = \frac{12000}{40} = 300\) euros
- Quantity: \(Q(300) = 12000 - 6000 = 6000\) units
- Maximum revenue: \(R(300) = 300 \times 6000 = 1,800,000\) euros
Profit function:
- Cost per unit: 150 EUR
- Total cost: \(C = 200000 + 150Q = 200000 + 150(12000 - 20p)\)
- \(C(p) = 200000 + 1800000 - 3000p = 2000000 - 3000p\)
- Profit: \(\Pi(p) = R(p) - C(p) = 12000p - 20p^2 - (2000000 - 3000p)\)
- \(\Pi(p) = -20p^2 + 15000p - 2000000\)
Profit-maximizing price:
- \(p_\Pi = -\frac{15000}{2(-20)} = \frac{15000}{40} = 375\) euros
- Quantity: \(Q(375) = 12000 - 7500 = 4500\) units
- Maximum profit: \(\Pi(375) = -20(140625) + 15000(375) - 2000000\)
- \(= -2812500 + 5625000 - 2000000 = 812,500\) euros
Production constraint analysis:
- At profit-maximizing price (375 EUR): need 4,500 units - within capacity ✓
- At revenue-maximizing price (300 EUR): need 6,000 units - exceeds capacity ✗
- With 5,000 unit constraint, solve: \(12000 - 20p = 5000\)
- \(20p = 7000\), so \(p = 350\) euros
- Company should use 375 EUR (profit-maximizing) as it’s within production capacity
Coffee Break
FSP Workshop
Problem 1: Hand-Forged Knives
A small manufactory forges chef’s knives by hand and sells them to kitchen shops. Let \(x\) be the number of knives made per month. Every knife made is sold. The fixed costs are 42,000 EUR per month. In one month, the manufactory sold 240 knives and made a profit of 6,000 EUR. In another month, it sold 360 knives and made a profit of 19,200 EUR. The monthly profit in EUR is a quadratic function \(P(x) = ax^2 + bx + c\).
- Determine \(a\), \(b\) and \(c\). Interpret \(c\) in this context. [4 pts.]
- Without knives there is no revenue, but the fixed costs remain:
\[ c = P(0) = -42000 \]
In a month without production, the manufactory makes a loss of 42,000 EUR.
Insert both observations and divide by 240 and by 360:
\[ 57600a + 240b - 42000 = 6000 \iff 240a + b = 200 \]
\[ 129600a + 360b - 42000 = 19200 \iff 360a + b = 170 \]
Subtract the first equation from the second: \(120a = -30\), so \(a = -0.25\) and \(b = 200 - 240 \cdot (-0.25) = 260\).
\[ P(x) = -0.25x^2 + 260x - 42000 \]
- Check: \(P(240) = -14400 + 62400 - 42000 = 6000\) EUR
- Check: \(P(360) = -32400 + 93600 - 42000 = 19200\) EUR
Grading: 1 Pt. \(c = -42000\) with interpretation, 1 Pt. both equations, 1 Pt. solving the system, 1 Pt. \(P(x)\) with both checks.
Knives: Maximum and Break-Even
- Compute the maximum profit and prove that it really is a maximum. Give \(P(x)\) in vertex form. Determine the (lower) break-even point and the profit limit (upper break-even point) with the vertex form, and give \(P(x)\) in factored form. [5 pts.]
(for verification: \(P(x) = -0.25x^2 + 260x - 42000\))
- Vertex formula:
\[ x_v = -\frac{260}{2 \cdot (-0.25)} = 520 \]
\[ P(520) = -0.25 \cdot 270400 + 135200 - 42000 = 25600 \]
The maximum profit is 25,600 EUR per month at 520 knives. Proof: \(a = -0.25 < 0\), so the parabola opens downward and the vertex is a maximum.
Vertex form: \(P(x) = -0.25(x - 520)^2 + 25600\)
Zeros with the vertex form:
\[ -0.25(x - 520)^2 + 25600 = 0 \iff (x - 520)^2 = 102400 \iff x - 520 = \pm 320 \]
- Break-even point: 200 knives, profit limit: 840 knives
- Factored form: \(P(x) = -0.25(x - 200)(x - 840)\)
- Check: \(\frac{200 + 840}{2} = 520\) and \(P(0) = -0.25 \cdot (-200) \cdot (-840) = -42000\)
Grading: 1 Pt. \(x_v = 520\), 1 Pt. maximum profit with the reason \(a < 0\), 1 Pt. vertex form, 1 Pt. break-even point and profit limit, 1 Pt. factored form.
Knives: Too Small a Machine?
The manufactory’s grinding machine can finish at most 400 knives per month (its capacity).
- Determine the output and the price with the highest profit within this capacity. Justify your choice with the parabola and a test value. [3 pts.]
- Domain: \(0 \leq x \leq 400\). The vertex at \(x = 520\) lies outside.
Since \(a = -0.25 < 0\), the parabola opens downward, so the profit rises up to the axis of symmetry \(x = 520\). The whole domain lies left of it, so the best output is the capacity of 400 knives:
\[ P(400) = -0.25(400 - 520)^2 + 25600 = -3600 + 25600 = 22000\text{ EUR} \]
- Test value: \(P(380) = -4900 + 25600 = 20700 < 22000\) EUR
- Price: \(p(400) = 300 - 100 = 200\) EUR per knife
Grading: 1 Pt. reason with \(a < 0\) and the axis of symmetry, 1 Pt. 400 knives and 22,000 EUR with test value, 1 Pt. price of 200 EUR.
Knives: Lease a Second Machine?
A second, smaller grinding machine can be leased for 3,800 EUR per month. With both machines, the capacity rises to 600 knives per month. The variable costs per knife stay the same. The workshop manager argues: “With the second machine we sell more knives, and the extra revenue easily pays for the lease.”
- Determine the output with the highest profit with both machines and the monthly profit including the lease. Assess the manager’s argument. [3 pts.]
- The lease is a fixed cost: \(P_L(x) = P(x) - 3800\). It shifts the parabola down but does not move the vertex. The vertex \(x = 520\) now lies inside the domain \([0; 600]\), so the best output is 520 knives:
\[ P_L(520) = 25600 - 3800 = 21800\text{ EUR} < 22000\text{ EUR} \]
Producing at the new capacity is even worse: \(P_L(600) = 24000 - 3800 = 20200\) EUR.
The argument is false. Its first half holds: revenue rises by \(R(520) - R(400) = 88400 - 80000 = 8400\) EUR, more than the lease. But the 120 extra knives also cost \(120 \cdot 40 = 4800\) EUR, so the profit before the lease rises by only 3,600 EUR. With the lease, the monthly profit falls by 200 EUR.
Typical mistake: pricing the 120 extra knives at 170 EUR each (20,400 EUR). The lower price applies to all knives: the other 400 knives lose 30 EUR each, so revenue rises by only \(20400 - 12000 = 8400\) EUR.
Grading: 1 Pt. best output 520 with the reason, 1 Pt. 21,800 EUR compared with 22,000 EUR, 1 Pt. assessment with extra revenue and extra variable costs.
Wrap-Up & Takeaways
Key Takeaways
- The vertex formula \(x = -\frac{b}{2a}\) is your optimization tool
- Quadratic functions model scenarios with changing rates
- Maximum/minimum depends on sign of \(a\)
- Revenue maximization ≠ Profit maximization
- Completing the square reveals the vertex form
- Real constraints may override mathematical optima
Every parabola has a minimum or a maximum point!
Final Assessment
5 minutes - Individual work
A small bakery’s daily profit for chocolate cakes is modeled by: \[P(x) = -x^2 + 14x - 33\] where \(x\) is the price in euros.
- Find the price that maximizes profit
- Calculate the maximum daily profit
- Find the break-even prices
Optimal price: \(x = -\frac{14}{2(-1)} = 7\) euros
Maximum profit: \(P(7) = -49 + 98 - 33 = 16\) euros
Break-even: \(-x^2 + 14x - 33 = 0\)
- \(x^2 - 14x + 33 = 0\)
- \((x - 3)(x - 11) = 0\)
- Break-even at 3 EUR and 11 EUR
Next Session Preview
Session 03-04: Transformations, Composition & Inverses
- Shifting functions horizontally and vertically
- Stretching and reflecting graphs
- Combining functions through composition
- Inverse functions and when they exist
Homework Assignment: Complete Tasks 03-03!