Tutorials › AP Calculus › Optimization in Economics: Profit Maximization
← All AP Calculus Tutorials
AP Calculus AB & BC Intermediate

Optimization in Economics: Profit Maximization

Learn how derivatives turn an economic problem into a precise optimization problem: build revenue and cost functions, create the profit function, find critical points, and determine the production level that maximizes profit.

What Profit Maximization Is Really Asking

Many economics optimization problems can be translated directly into the language of calculus. A business produces and sells some quantity of a product. Producing more units usually changes both the money earned from sales and the cost of production. The goal is to determine the quantity that produces the greatest possible profit.

The central idea is simple: profit equals revenue minus cost. Once you have a function for profit, maximizing profit becomes an ordinary calculus optimization problem.

The variable usually represents the number of units produced and sold. Your job is to determine the value of that makes as large as possible.

Revenue, Cost, and Profit

Revenue

Revenue is the amount of money a business receives from selling its products. If units are sold at a price of dollars per unit, then revenue is:

If the price itself depends on the number of units sold, then is a function of , and revenue becomes a product of two functions.

Cost

The cost function describes how much it costs to produce units. It can include fixed costs, such as rent and equipment, as well as variable costs that increase with production.

Profit

Profit is what remains after subtracting the cost of production from revenue:

Therefore, if you are given revenue and cost functions, you can immediately construct the profit function and optimize it with derivatives.

The Calculus Behind Profit Maximization

To maximize a differentiable profit function, find its critical points by setting the derivative equal to zero:

This leads to one of the most important relationships in economic optimization: marginal revenue equals marginal cost.

Here, marginal revenue is the derivative of revenue and marginal cost is the derivative of cost:

So the condition for an interior profit maximum can be written as:

Intuitively, if the next unit adds more revenue than cost, producing another unit increases profit. If the next unit costs more than the revenue it generates, producing another unit decreases profit. The maximum occurs where those two marginal effects balance.

A Step-by-Step Method

  1. Define the quantity variable. Let represent the number of units produced and sold.
  2. Write the revenue function. Determine how much money the business receives from selling units.
  3. Write the cost function. Include both fixed and variable costs when appropriate.
  4. Construct the profit function. Subtract cost from revenue.
  5. Differentiate the profit function. Find .
  6. Find critical points. Solve .
  7. Verify that the critical point gives a maximum. Use the second derivative, a sign chart, or compare relevant endpoints.
  8. Interpret the answer. State the production level and, when requested, the maximum profit.

Worked Examples

Example 1: Maximizing Profit with a Given Price

A company sells a product for $50 per unit. Its cost of producing units is modeled by . How many units should the company produce to maximize profit?

Step 1: Write the revenue function. Since each unit sells for $50, .
Step 2: Write the profit function: .
Step 3: Differentiate: .
Step 4: Set the derivative equal to zero: .
Step 5: Solve: .
Step 6: Verify the maximum using the second derivative: . Because this is negative, the profit function is concave down, so the critical point gives a maximum.
Result: The company should produce 40 units to maximize profit.
Example 2: Maximizing Profit When Price Depends on Quantity

A company faces the demand equation , where is the number of units sold and is the price per unit. The company's cost is . Find the quantity that maximizes profit and the corresponding price.

Step 1: Write the revenue function. Revenue equals quantity times price: .
Step 2: Simplify: .
Step 3: Write the profit function: .
Step 4: Differentiate: .
Step 5: Set the derivative equal to zero: .
Step 6: Solve: .
Step 7: Find the price by substituting the optimal quantity into the demand equation: .
Step 8: Verify the maximum: . Since the second derivative is negative, the critical point is a maximum.
Result: The company should produce 20 units and charge $60 per unit.
Example 3: Using Marginal Revenue and Marginal Cost

Suppose a company's revenue and cost functions are and . Find the production level that maximizes profit.

Step 1: Find marginal revenue: .
Step 2: Find marginal cost: .
Step 3: Set marginal revenue equal to marginal cost: .
Step 4: Solve: .
Step 5: Confirm that profit is maximized. The profit function is , so . The second derivative is negative, confirming a maximum.
Result: The profit-maximizing production level is 20 units.
Example 4: Maximum Profit and Break-Even Points

A business has profit function . Determine the production level that maximizes profit and the maximum profit.

Step 1: Differentiate: .
Step 2: Find the critical point: .
Step 3: Verify that it is a maximum: .
Step 4: Evaluate the profit at the optimal quantity: .
Result: The maximum profit is $400, achieved when the company produces 20 units.

Why Marginal Revenue = Marginal Cost Makes Sense

The equation is more than a calculus trick. It describes the economic logic behind the optimum.

Suppose a company is producing at a quantity where marginal revenue is greater than marginal cost. Then producing one additional unit adds more to revenue than it adds to cost. Profit therefore increases.

On the other hand, if marginal cost is greater than marginal revenue, the next unit costs more to produce than it generates in revenue. Producing additional units decreases profit.

Therefore, at an interior profit maximum, the two marginal quantities balance. This is why so many economic optimization problems ultimately reduce to solving an equation involving marginal revenue and marginal cost.

Competitive Firms vs. Firms Facing a Demand Curve

The exact setup depends on the economic model in the problem.

When the Price Is Constant

If every unit is sold for the same fixed price , revenue is simply:

Therefore marginal revenue is constant:

The profit-maximizing condition becomes .

When Price Depends on Quantity

If the price falls as the quantity sold increases, then the price is a function of quantity, such as . Revenue must be calculated as quantity times price:

In this situation, marginal revenue is generally not equal to the price. You must differentiate the revenue function.

Common Mistakes

Maximizing revenue instead of profit

Revenue and profit are not the same thing. A production level that maximizes sales revenue may not maximize profit because production costs also change. Always check whether the question asks for maximum revenue or maximum profit.

Forgetting that revenue is price times quantity

If the price depends on quantity, do not automatically use the price function as the revenue function. If is price, then revenue is .

Using marginal cost = price when price is not constant

The familiar condition applies when the firm's marginal revenue equals its price, as in the constant-price competitive-firm case. When price depends on quantity, use .

Stopping after finding a critical point

Solving only gives a candidate for an optimum. You still need to verify that it produces a maximum, using the second derivative, a sign chart, or endpoint comparisons when appropriate.

Forgetting the economic interpretation

An answer such as is incomplete if the problem asks for a production quantity. State the meaning: the company should produce that many units.

Practice Problems

Question 1

A company sells a product for $40 per unit. Its cost function is . Find the production level that maximizes profit.

Show answer
Question 2

A company faces the demand equation and has cost function . Find the quantity that maximizes profit.

Show answer
Question 3

A company's revenue is and its cost is . Find the profit-maximizing quantity and the maximum profit.

Show answer
Question 4 (Economic Interpretation)

A firm's marginal revenue is and marginal cost is . Find the production level where profit is maximized and explain why.

Show answer

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon