As others have said. There is no equation for sales volume versus sales price to enable you to optimize revenue.
What there can be, *after you run a bunch of test sales, *is an empirical table of how many you sold at each price point you tried. And then armed with that data, you can use math to make a best-fit equation that you can use to project how sales would *probably *fare for prices above, below, or between your empirical data points.
On the cost side, it’s fairly straightforward to generate an equation for costs as a function of volume. Take fixed costs plus per-item costs times desired volume gives total cost. The devil is in the details. Some cost factors are easy to determine, others are much tougher. But …
“Fixed” costs are only really fixed over a narrow range of volume, so you need to understand your constraints thoroughly. Typically your “fixed” costs actually are variable but as a step function of vaolume, not a continuous function of volume.
e.g. Once you buy a machine which can make 1000 widgets per day, your cost for that machine is fixed whether you’re making 20 a day or 600 a day. And it stays fixed until you need to make 1001 widgets. Then you have to buy a second machine and your machine-related costs just doubled. And then they remain flat until you need a 3rd machine. etc.
And once you bought the first factory building which holds the widget-making machines you’ve got a fixed cost for the building … until you need 15 machines and the building only has room for 14. So now you need another building and again your “fixed” costs take a step increment with sales volume.
G&A expenses tend to behave like machinery & building expenses: a fixed number with a very small per-volume component, but with periodic significant step increments as volume goes up.
Because each component of machinery, building, G&A, etc., has its own scaling points and behavior, a total-factor cost curve in a complex (i.e. non-textbook) business will tend to behave a lot like a pure variable cost with a pretty small fixed component and a few percent of bumpiness in the slope as we grow the volume.
For a simple business willing to be constrained by its larger fixed-cost increments, costs behave much more as a fixed nut plus a very small variable component. e.g. a single retail location which provides a personal service is almost pure fixed costs.