An appliance manufacturer has the cost function
C(x)=4000+36x+0.5x² (in dollars)
where x is the number of a certain brand of microwave ovens produced each week. The revenue function for selling x microwave ovens is given by
R(x)-500x-4x² (in dollars)
The total profit function id P(x)=____