| > | restart; problem #20 |
| > | p:=x->40/sqrt(x);
#define our price in terms of x (demand function)
C:=x->.4*x+1000; #define our cost in terms of x (cost function) |
| > | R:=x*p(x);
#revenue = quantity * price
R:=unapply(R,x); #make this a function |
| > | P:=R(x) - C(x);
#profie = revenue - cost
P:=unapply(P,x); #make this a function |
| > | P1:=D(P);
#find derivative
P2:=D(P1); #find second deriv |
| > | c:=solve(P1(x)=0,x); #find critical point(s) for x (quantity) |
| > | P2(c); #test concavity at critical point |
Conclusion: we have a MAX at x = c
| > | p(c); #find price correspoinding to this critical value of x. |
Conclusion: the price of $0.80 corresponds to maximal profit.
| > | plot(P(x),x=0..2*c); |
| > | P(c); |
Note that this company NEVER makes a positive profit. At best, it breaks even when x = 2500.