Group Abstract Group Abstract

Message Boards Message Boards

How to efficiently compute the integral of a piecewise demand function?

Posted 1 year ago
2 Replies

Your problem depends on three variables pa, pb, pbdev and it has one equation and one inequality, all of them polynomial. It seems hard to solve symbolically. You can explore the solution set visually:

ContourPlot3D[Evaluate[D[pidev, pbdev] == 0],
 {pbdev, 0, 10}, {pa, 0, 10}, {pb, 0, 10},
 RegionFunction -> Function[{pbdev, pa, pb},
   Evaluate[D[D[pidev, pbdev], pbdev] < 0]],
 AxesLabel -> Automatic]
POSTED BY: Gianluca Gorni

I see, thank you very much! I wish I could compute the exact solution, but such a visual inspection is already very useful!

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard