
Solution
Let us begin by naming these two expressions as MR and MC by typing
>MR:=500-0.5*Q^2;
and
>MC:=140+0.4*Q^2;
Total revenue is the integral of marginal revenue and this is achieved by typing
>TR:=int(MR,Q);
which gives
TR:=500.Q-0.1666666667Q
3
Notice that Maple forgets to include the constant of integration! As it happens, the constant of integration
is zero in this case because TR = 0 when Q = 0. However, when we integrate MC we need to add on the fixed
costs of 1000. We type
>TC:=int(MC,Q)+1000;
which gives
TC:=140.Q+0.1333333333Q
2
+1000
Profit is then found by subtracting TC from TR so we type:
>profit:=TR-TC;
which gives
profit:=360.Q-.3000000000Q
3
–1000
In order to sketch a graph of the profit function we need to specify the range of values of Q. Now total rev-
enue is defined as PQ, so the demand equation can be found by dividing TR by Q to get
P = 500 − Q
2
This equation is valid only when P ≥ 0, i.e. when
500 − Q
2
≥ 0
This will be so provided
Q
2
≤ 500 × 6 = 3000
so we require Q ≤ 3000 = 54.8.
If we now choose to sketch the graph between 0 and 50, we type
>plot(profit,Q=0..50);
which produces the diagram shown in Figure 6.1 (overleaf).
The firm makes a profit when the graph lies above the horizontal axis. Figure 6.1 shows that this happens
between Q = 3 and Q = 33 approximately. The diagram also shows that the maximum profit is roughly
$4000, which occurs when Q = 20.
If more precise values are required then these can easily be obtained by typing
>solve(profit=0,Q);
1
6
1
6
6.1 • Indefinite integration
433
MFE_C06a.qxd 16/12/2005 11:22 Page 433