Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Optimization

Finding the “best” way to do a specific task in economics often involves what is called an optimization problem.

I — Univariate Optimization

Stationary Points

Generally, we say that xx^* is a stationary point of a differentiable function f(x)f(x) when its slope evaluated at xx^* is zero, i.e., when

f(x)=0.f'(x^*) = 0.

Necessary First-Order Condition (F.O.C)

More formally, suppose a function f(x)f(x) is differentiable in some interval II and that xx^* is an interior point of II. Then for x=xx = x^* to be a maximum or minimum point for f(x)f(x) in II, a necessary condition is that it is a stationary point for f(x)f(x), i.e., x=xx = x^* satisfies

f(x)=0.f'(x^*) = 0.

Example 1

Let

h(x)=x2+8x15.h(x) = -x^2 + 8x - 15.

F.O.C:

2x+8=0.-2x + 8 = 0.

So the stationary point is x=4x^* = 4 and y=1y^* = 1.

Example 2

Let

z(x)=x28x+17.z(x) = x^2 - 8x + 17.

F.O.C:

2x8=0.2x - 8 = 0.

So the stationary point is x=4x^* = 4 and y=1y^* = 1.

We have the same stationary point, but clearly these are different functions. The former is \cap-shaped and the latter is \cup-shaped.

Sufficient Second-Order Condition (S.O.C) for Maximum/Minimum

Following the two examples above, we can characterize a stationary point as a maximum or minimum by taking the second derivative.

Example 1

h(x)=2.h''(x) = -2.

Since this is negative, the stationary point (4,1)(4,1) is a maximum.

Example 2

z(x)=2.z''(x) = 2.

Since this is positive, the stationary point (4,1)(4,1) is a minimum.


Example 3

Let

p(x)=13x312x22x+20.p(x) = \frac{1}{3}x^3 - \frac{1}{2}x^2 - 2x + 20.

The F.O.C gives

p(x)=x2x2=0,p'(x) = x^2 - x - 2 = 0,

which implies x=1x^* = -1 and x=2x^* = 2.

The S.O.C gives

p(x)=2x1.p''(x) = 2x - 1.

S.O.C Is Sufficient but Not Necessary

Consider

y=x4.y = x^4.

The F.O.C gives x=0x^* = 0.

The S.O.C also gives 0, which is neither positive nor negative. Yet, x=0x^* = 0 is clearly a minimum.

Global and Local Minimum/Maximum

We must distinguish between global and local extrema.

Global Maximum

If f(x)f(x) is everywhere differentiable and has stationary point xx^*, then xx^* is a global maximum if

f(x)0 for all xx,andf(x)0 for all xx.f'(x) \ge 0 \text{ for all } x \le x^*, \quad \text{and} \quad f'(x) \le 0 \text{ for all } x \ge x^*.

That is, the function increases up to xx^* and decreases afterward.

Global Minimum

Similarly, xx^* is a global minimum if

f(x)0 for all xx,andf(x)0 for all xx.f'(x) \le 0 \text{ for all } x \le x^*, \quad \text{and} \quad f'(x) \ge 0 \text{ for all } x \ge x^*.

Local Maximum / Minimum

We speak of a local maximum or minimum if xx^* is a stationary maximum or minimum only in a neighborhood of xx^*, not over the entire domain.

Concavity and Convexity

Conversely,

Inflection Points

Consider the function

k(x)=1+(x4)3.k(x) = 1 + (x - 4)^3.

The F.O.C gives a stationary point (4,1)(4,1).

The S.O.C evaluated at this point is 0, so it is inconclusive.

We must then take higher-order derivatives.

If the first nonzero higher-order derivative evaluated at the stationary point is:

If the first non-zero derivative at the stationary point cc is of even order (n=2,4,6...n = 2, 4, 6...):

Derivative SignResultVisual Intuition
f(n)(c)>0f^{(n)}(c) > 0Local MinimumThe function “curves up” away from the point in all directions.
f(n)(c)<0f^{(n)}(c) < 0Local MaximumThe function “curves down” away from the point in all directions.

For this example,

k(4)0,k'''(4) \ne 0,

which is the third (odd) derivative. Hence, (4,1)(4,1) is an inflection point.

Try these ^^

Stationary Points and Higher-Order Derivative Test

Find the stationary points of the following functions and determine whether you have a minimum, maximum, or inflection point by determining whether at the stationary point the function is convex or concave (or neither).

(i) f(x)=x3+6x2+15x32f(x) = -x^3 + 6x^2 + 15x - 32

(ii) f(x)=(2x7)3f(x) = (2x - 7)^3

(iii) f(x)=(x+2)4f(x) = (x + 2)^4

(iv) f(x)=2(x6)6f(x) = -2(x - 6)^6

(v) f(x)=x4f(x) = x^4


Answers

(i) f(x)=3x2+12x+15f'(x) = -3x^2 + 12x + 15

Setting f(x)=0f'(x)=0:

x=1andx=5x = -1 \quad \text{and} \quad x = 5

Second derivative:

f(x)=6x+12f''(x) = -6x + 12
f(1)=18>0minimumf''(-1) = 18 > 0 \Rightarrow \text{minimum}
f(5)=18<0maximumf''(5) = -18 < 0 \Rightarrow \text{maximum}

Inflection point:

f(x)=0x=2f''(x)=0 \Rightarrow x=2

(ii) f(x)=6(2x7)2f'(x) = 6(2x - 7)^2

Hence, x=3.5\text{Hence, }x = 3.5
f(x)=24(2x7)f''(x) = 24(2x - 7)
f(3.5)=0f''(3.5) = 0
f(x)=48f'''(x) = 48

Since the first nonzero derivative at the critical point is of odd order, we have an inflection point at x=3.5x=3.5.

(iii) f(x)=4(x+2)3f'(x) = 4(x+2)^3

x=2x = -2
f(2)=0,f(2)=0,f(4)(2)=24>0f''(-2)=0, \quad f'''(-2)=0, \quad f^{(4)}(-2)=24>0

The first nonzero derivative is even and positive, hence we have a minimum.

(iv) f(x)=12(x6)5f'(x) = -12(x-6)^5

x=6x=6

All derivatives up to order 5 vanish.

f(6)(6)=1440<0f^{(6)}(6) = -1440 < 0

The first nonzero derivative is even and negative, hence we have a maximum.

(v) f(x)=4x3f'(x) = 4x^3

x=0x=0

All derivatives up to order 3 vanish.

f(0)(4)=24>0f^{(0)}(4) = 24 > 0

The first nonzero derivative is of even order and it’s value is positive, hence we have an local minimum.


Economic Applications


II — Multivariate Optimization

We now generalize the univariate techniques to multivariate optimization.

Multivariate First-Order Condition

If we have a function

y=f(x1,x2,,xn)y = f(x_1, x_2, \ldots, x_n)

that is differentiable with respect to each of its arguments and has a stationary point at (x1,x2,,xn)(x_1^*, x_2^*, \ldots, x_n^*), then each of the partial derivatives at that point equals zero.

That is,

f1(x1,x2,,xn)=0f2(x1,x2,,xn)=0fn(x1,x2,,xn)=0f_1(x_1^*, x_2^*, \ldots, x_n^*) = 0 \\ f_2(x_1^*, x_2^*, \ldots, x_n^*) = 0 \\ \vdots \\ f_n(x_1^*, x_2^*, \ldots, x_n^*) = 0

Example 1

Consider the bivariate function

g(x1,x2)=6x1x12+16x24x22g(x_1, x_2) = 6x_1 - x_1^2 + 16x_2 - 4x_2^2

The first-order conditions are

g1(x1,x2)=62x1=0g2(x1,x2)=168x2=0g_1(x_1, x_2) = 6 - 2x_1 = 0 \\ g_2(x_1, x_2) = 16 - 8x_2 = 0

The single stationary point is therefore

x1=3,x2=2x_1^* = 3, \quad x_2^* = 2

and the value of the function at this point is

g(3,2)=25.g(3,2) = 25.

We will show later using the second-order condition that this stationary point represents a maximum.

Let’s visualize the equation and its stationary point.

Stationary Point

If we take a slice of the function g(x1,x2)g(x_1, x_2) at x2=2x_2 = 2, the stationary point is achieved at x1=3x_1 = 3. Similarly, taking a slice at x1=3x_1 = 3 shows a stationary point at x2=2x_2 = 2. Visually, we have

Stationary Point

Example 2

Consider the function

h(x1,x2)=x12+4x222x116x2+x1x2h(x_1, x_2) = x_1^2 + 4x_2^2 - 2x_1 - 16x_2 + x_1 x_2

The first-order conditions give

h1(x1,x2)=2x12+x2=0h2(x1,x2)=8x216+x1=0h_1(x_1, x_2) = 2x_1 - 2 + x_2 = 0 \\ h_2(x_1, x_2) = 8x_2 - 16 + x_1 = 0

Hence the single stationary point is

x1=0,x2=2x_1^* = 0, \quad x_2^* = 2

and the value of the function at this point is

h(0,2)=16.h(0,2) = -16.

Below is a visualization of this function with the plane tangent and stationary point.

Stationary Point

Second-Order Condition in the Bivariate Case

For the univariate case, the second differential of a function can be considered as the differential of the first differential and denoted as

d(dy)=d2y.d(dy) = d^2 y.

For y=f(x)y = f(x), the second differential is

d2y=f(x)(dx)2,d^2 y = f''(x)(dx)^2,

which is nonnegative for any dxdx.

Second Differential in the Bivariate Case

For a bivariate function y=f(x1,x2)y = f(x_1, x_2), the total differential is

dy=f1(x1,x2),dx1+f2(x1,x2),dx2.dy = f_1(x_1, x_2),dx_1 + f_2(x_1, x_2),dx_2.

Taking the total derivative of this expression yields the second total differential:

d2y=f11(dx1)2+f22(dx2)2+2f12dx1dx2.d^2 y = f_{11}(dx_1)^2 + f_{22}(dx_2)^2 + 2f_{12}dx_1 dx_2.

Sufficient Conditions for Local Maxima and Minima

A necessary condition for a minimum is

f11>0andf22>0,f_{11} > 0 \quad \text{and} \quad f_{22} > 0,

and for a maximum,

f11<0andf22<0.f_{11} < 0 \quad \text{and} \quad f_{22} < 0.

However, the cross-partial derivative f12f_{12} must also be considered.

Completing the Square

By completing the square, the second differential can be rewritten, leading to the condition:

f11f22>(f12)2.f_{11} f_{22} > (f_{12})^2.

Second-Order Condition for a Maximum

If y=f(x1,x2)y = f(x_1, x_2) has a stationary point (x1,x2)(x_1^*, x_2^*) and

f11(x1,x2)<0andf11f22>(f12)2,f_{11}(x_1^*, x_2^*) < 0 \quad \text{and} \quad f_{11} f_{22} > (f_{12})^2,

then the function reaches a maximum at that point.

Second-Order Condition for a Minimum

If

f11(x1,x2)>0andf11f22>(f12)2,f_{11}(x_1^*, x_2^*) > 0 \quad \text{and} \quad f_{11} f_{22} > (f_{12})^2,

then the function reaches a minimum.

Let’s continue with the example above.

The second partial derivatives of

h(x1,x2)=x12+4x222x116x2+x1x2h(x_1,x_2) = x_1^2 + 4x_2^2 - 2x_1 - 16x_2 + x_1x_2

are

h11(x1,x2)=2andh22(x1,x2)=8h_{11}(x_1,x_2) = 2 \quad \text{and} \quad h_{22}(x_1,x_2) = 8

Both are positive. The cross-partial derivative is

h12(x1,x2)=1.h_{12}(x_1,x_2) = 1.

Since

h11h22>(h12)2,h_{11} h_{22} > (h_{12})^2,

that is,

16>1,16 > 1,

the stationary point (0,2)(0,2) is a minimum.

As another example, consider

g(x1,x2)=6x1x12+16x24x22.g(x_1,x_2) = 6x_1 - x_1^2 + 16x_2 - 4x_2^2.

The second partial derivatives are

g11(x1,x2)=2andg22(x1,x2)=8,g_{11}(x_1,x_2) = -2 \quad \text{and} \quad g_{22}(x_1,x_2) = -8,

and the cross-partial derivative is

g12(x1,x2)=0.g_{12}(x_1,x_2) = 0.

Since the second partial derivatives are both negative and

g11g22>(g12)2,g_{11} g_{22} > (g_{12})^2,

that is,

16>0,16 > 0,

we have the conditions for a maximum.

Second-Order Condition in the General Multivariate Case

Let us use the tools of matrix algebra to develop a set of conditions that enables us to find the sign of the second total differential of a multivariate function.

First, assume a bivariate case for which the second total differential is given by

d2y=f11(dx1)2+f22(dx2)2+2f12(dx1)(dx2).d^2 y = f_{11}(dx_1)^2 + f_{22}(dx_2)^2 + 2 f_{12}(dx_1)(dx_2).

This expression can be written in matrix form as the quadratic form of the two variables dx1dx_1 and dx2dx_2 as follows:

d2y=[dx1dx2][f11f12f21f22][dx1dx2].d^2 y = \begin{bmatrix} dx_1 & dx_2 \end{bmatrix} \begin{bmatrix} f_{11} & f_{12} \\ f_{21} & f_{22} \end{bmatrix} \begin{bmatrix} dx_1 \\ dx_2 \end{bmatrix}.

In other words, the second total differential (or second total derivative) for a multivariate function can be written more generally as

d2y=dxHdx=[dx1dx2dxn][f11f12f1nf21f22f2nfn1fn2fnn][dx1dx2dxn].d^2 y = dx' H dx = \begin{bmatrix} dx_1 & dx_2 & \cdots & dx_n \end{bmatrix} \begin{bmatrix} f_{11} & f_{12} & \cdots & f_{1n} \\ f_{21} & f_{22} & \cdots & f_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ f_{n1} & f_{n2} & \cdots & f_{nn} \end{bmatrix} \begin{bmatrix} dx_1 \\ dx_2 \\ \vdots \\ dx_n \end{bmatrix}.

Here, HH is the Hessian matrix, and dxdx is the column vector of differentials.

All that remains is to determine the sign definiteness of the quadratic form by determining the sign definiteness of the Hessian.

Interpreting the Second-Order Condition

The sign of the second total differential d2yd^2 y determines the local curvature of the function and therefore whether a critical point is a local maximum, minimum, or neither.

Because

d2y=dxHdx,d^2 y = dx' H dx,

the problem reduces to determining the sign definiteness of the Hessian matrix HH.

Positive and Negative Definiteness

These cases correspond to the curvature of the function at a critical point.

Second-Order Conditions for Optimization

Suppose y=f(x1,,xn)y = f(x_1, \ldots, x_n) and f=0\nabla f = 0 at a point xx^*.


Sylvester’s Criterion (Practical Test)

In practice, definiteness is checked using principal minors of the Hessian.

Bivariate Case (n=2n = 2)

Let

H=[f11f12f21f22].H = \begin{bmatrix} f_{11} & f_{12} \\ f_{21} & f_{22} \end{bmatrix}.

Then:

This criterion is widely used in economics because it avoids computing the quadratic form directly.


Example

Consider the function

y=x122x22+4x1x2.y = -x_1^2 - 2x_2^2 + 4x_1 x_2.

The Hessian matrix is

H=[2444].H = \begin{bmatrix} -2 & 4 \\ 4 & -4 \end{bmatrix}.

Compute the determinant:

det(H)=(2)(4)16=8<0.\det(H) = (-2)(-4) - 16 = -8 < 0.

Since the determinant is negative, the Hessian is indefinite, and the critical point is a saddle point.

Economic Interpretation

Try these ^^

Optimizing Multivariate Functions


The Hessian Test Procedure

To classify a stationary point (x,y)(x, y) for a function f(x,y)f(x, y):

  1. Find Stationary Points: Set first partial derivatives to zero: fx=0f_x = 0 and fy=0f_y = 0.

  2. Calculate the Hessian Matrix (HH):

    H=[fxxfxyfyxfyy]H = \begin{bmatrix} f_{xx} & f_{xy} \\ f_{yx} & f_{yy} \end{bmatrix}
  3. Evaluate the Determinant (DD):

    D=fxxfyy(fxy)2D = f_{xx} f_{yy} - (f_{xy})^2
  4. Classification Rules:

    • If D>0D > 0 and fxx>0f_{xx} > 0: Local Minimum

    • If D>0D > 0 and fxx<0f_{xx} < 0: Local Maximum

    • If D<0D < 0: Saddle Point

    • If D=0D = 0: Inconclusive


Worked Solutions

i. f(x,y)=3x2xy+2y24x7y+12f(x,y) = 3x^2 - xy + 2y^2 - 4x - 7y + 12

a. Find Stationary Points

  • fx=6xy4=0f_x = 6x - y - 4 = 0

  • fy=x+4y7=0f_y = -x + 4y - 7 = 0

Solving the system: From fyf_y, x=4y7x = 4y - 7. Substitute into fxf_x: 6(4y7)y4=06(4y - 7) - y - 4 = 0 24y42y4=0    23y=46    y=224y - 42 - y - 4 = 0 \implies 23y = 46 \implies \mathbf{y = 2} Substituting back: x=4(2)7    x=1x = 4(2) - 7 \implies \mathbf{x = 1}

Note that you can actually use x=A1bx=A^{-1}b, which is recommended for more complex system of equations.

b. Hessian Classification

  • fxx=6f_{xx} = 6

  • fyy=4f_{yy} = 4

  • fxy=1f_{xy} = -1

  • D=(6)(4)(1)2=23D = (6)(4) - (-1)^2 = 23

Conclusion: Since D>0D > 0 and fxx>0f_{xx} > 0, the point (1,2)(1, 2) is a minimum.


ii. f(x,y)=60x+34y4xy6x23y2+5f(x, y) = 60x + 34y - 4xy - 6x^2 - 3y^2 + 5

a. Find Stationary Points

  • fx=604y12x=0    3x+y=15f_x = 60 - 4y - 12x = 0 \implies 3x + y = 15

  • fy=344x6y=0    2x+3y=17f_y = 34 - 4x - 6y = 0 \implies 2x + 3y = 17

Solving the system: Multiply first equation by 3: 9x+3y=459x + 3y = 45. Subtract second equation: (9x2x)=4517    7x=28    x=4(9x - 2x) = 45 - 17 \implies 7x = 28 \implies \mathbf{x = 4}. Then 3(4)+y=15    y=33(4) + y = 15 \implies \mathbf{y = 3}.

b. Hessian Classification

  • fxx=12f_{xx} = -12

  • fyy=6f_{yy} = -6

  • fxy=4f_{xy} = -4

  • D=(12)(6)(4)2=7216=56D = (-12)(-6) - (-4)^2 = 72 - 16 = 56

Conclusion: Since D>0D > 0 and fxx<0f_{xx} < 0, the point (4,3)(4, 3) is a maximum.


iii. f(x,y)=48y3x26xy2y2+72xf(x,y) = 48y - 3x^2 - 6xy - 2y^2 + 72x

a. Find Stationary Points

  • fx=6x6y+72=0    x+y=12f_x = -6x - 6y + 72 = 0 \implies x + y = 12

  • fy=486x4y=0    3x+2y=24f_y = 48 - 6x - 4y = 0 \implies 3x + 2y = 24

Solving the system: From first eq, x=12yx = 12 - y. Substitute into second: 3(12y)+2y=24    363y+2y=24    y=12    y=123(12 - y) + 2y = 24 \implies 36 - 3y + 2y = 24 \implies -y = -12 \implies \mathbf{y = 12}. Then x=0\mathbf{x = 0}.

b. Hessian Classification

  • fxx=6f_{xx} = -6

  • fyy=4f_{yy} = -4

  • fxy=6f_{xy} = -6

  • D=(6)(4)(6)2=2436=12D = (-6)(-4) - (-6)^2 = 24 - 36 = -12

Conclusion: Since D<0D < 0, the point (0,12)(0, 12) is a saddle point.


iv. f(x,y)=5x23y230x+7y+4xyf(x, y) = 5x^2 - 3y^2 - 30x + 7y + 4xy

a. Find Stationary Points

  • fx=10x30+4y=0f_x = 10x - 30 + 4y = 0

  • fy=6y+7+4x=0f_y = -6y + 7 + 4x = 0

Hence, x=2,y=2.5x = 2, y = 2.5

b. Hessian Classification

  • fxx=10f_{xx} = 10

  • fyy=6f_{yy} = -6

  • fxy=4f_{xy} = 4

  • D=(10)(6)(4)2=6016=76D = (10)(-6) - (4)^2 = -60 - 16 = -76

Conclusion: Since D<0D < 0, this function results in a saddle point.


v. f(x,y)=x33x+y24yf(x,y) = x^3 - 3x + y^2 - 4y

a. Find Stationary Points

Compute the partial derivatives.

  • fx=3x23f_{x} = 3x^2 - 3

  • fy=2y4f_{y} = 2y - 4

Set both equal to zero.

From fx=0f_{x}=0:

3x23=0x2=1x=±1.3x^2 - 3 = 0 \quad\Rightarrow\quad x^2 = 1 \quad\Rightarrow\quad x = \pm 1.

From fx2=0f_{x_2}=0:

2y4=0y=2.2y - 4 = 0 \quad\Rightarrow\quad y = 2.

We therefore have two critical points:

(1,2)and(1,2).(1,2) \quad\text{and}\quad (-1,2).

Both are integers — nice and clean.

b. Hessian Classification

Compute the second partial derivatives.

  • fxx=6xf_{xx} = 6x

  • fyy=2f_{yy} = 2

  • fxy=fyx=0f_{xy} = f_{yx} = 0

The Hessian matrix is

H=[6x002].H = \begin{bmatrix} 6x & 0 \\ 0 & 2 \end{bmatrix}.

Note that the determinant is

H=(6x)(2)0=12x.|H| = (6x)(2) - 0 = 12x.

Classification

At (1,2)(1,2)

H1=6>0//H2=H=12(1)=12>0|H_1| = 6 > 0 // |H_2| = |H| = 12(1) = 12 > 0

So the Hessian is positive definite.

Local minimum at (1,2). \Rightarrow \textbf{Local minimum at } (1,2).

At (1,2)(-1,2)

H2=12(1)=12<0.|H_2| = 12(-1) = -12 < 0.

Since the determinant is negative, the Hessian is sign indefinite.

Saddle point at (1,2). \Rightarrow \textbf{Saddle point at } (-1,2).

Final Answer

  • (1,2)(1,2)local minimum

  • (1,2)(-1,2)saddle point


A monopolist sells two competitive products, A and B, with demand equations:

pA=352qA2+qB,andpB=20qB+qAp_A = 35 - 2q_A^2 + q_B, \quad \text{and} \quad p_B = 20 - q_B + q_A

The joint-cost function is:

c=82qA3+3qAqB+30qA+12qB+12qA2c = -8 - 2q_A^3 + 3q_A q_B + 30q_A + 12q_B + \frac{1}{2}q_A^2

Find

(a) Quantity for Maximum Profit (b) Selling Prices and Max Profit


Solution

First, we define the Profit function π=RevenueCost\pi = \text{Revenue} - \text{Cost} or π=(pAqA+pBqB)c\pi = (p_A q_A + p_B q_B) - c

π=  [(352qA2+qB)qA+(20qB+qA)qB](82qA3+3qAqB+30qA+12qB+12qA2)\begin{aligned} \pi = \;&[(35 - 2q_A^2 + q_B)q_A + (20 - q_B + q_A)q_B] \\ &- (-8 - 2q_A^3 + 3q_A q_B + 30q_A + 12q_B + \frac{1}{2}q_A^2) \end{aligned}

Simplified:

π=0.5qA2qAqB+5qAqB2+8qB+8\pi = -0.5q_A^2 - q_A q_B + 5q_A - q_B^2 + 8q_B + 8

Find Critical Points:

πqA=qAqB+5=0    qA+qB=5\frac{\partial \pi}{\partial q_A} = -q_A - q_B + 5 = 0 \implies q_A + q_B = 5
πqB=qA2qB+8=0    qA+2qB=8\frac{\partial \pi}{\partial q_B} = -q_A - 2q_B + 8 = 0 \implies q_A + 2q_B = 8

Solving the system gives qA=2q_A = 2 and qB=3q_B = 3.

Second, we perform the derivative test:

H=[fAAfABfBAfBB]=[1112]H = \begin{bmatrix} f_{AA} & f_{AB} \\ f_{BA} & f_{BB} \end{bmatrix} = \begin{bmatrix} -1 & -1 \\ -1 & -2 \end{bmatrix}

Since H=(1)(2)(1)2=1>0|H| = (-1)(-2) - (-1)^2 = 1 > 0 and fAA<0f_{AA} < 0, we have a negative definite Hessiand ans hence a relative maximum at (2,3)(2, 3).

(b) Substitute qA=2q_A = 2 and qB=3q_B = 3 back into the equations:

Price A: pA=352(2)2+3=30p_A = 35 - 2(2)^2 + 3 = \mathbf{30}
Price B: pB=203+2=19p_B = 20 - 3 + 2 = \mathbf{19}
Max Profit: π(2,3)=0.5(2)2(2)(3)+5(2)(3)2+8(3)+8=25\pi(2, 3) = -0.5(2)^2 - (2)(3) + 5(2) - (3)^2 + 8(3) + 8 = \mathbf{25}