I'm looking for a way to (sort of) invert the area under the curve formula. Usually, given a function, you can calculate the area under the curve between a starting point and and ending point by calculating the definite integral of the function.
I want to use the function, the starting point, and the area to calculate the ending point.
Take the simple linear function y = mx + b as an example. In my case, I know x > 0 and y > 0.
If I want to calculate the area of under the curve between points a and z, I can use the definite integral: $$\int_a^z (m x+b) \, dx=-\frac{1}{2} (a-z) (m (a+z)+2 b)\ $$
Now let's assume I fix point "a" to a certain value. I want a formula that tells me what I need to set point "z" to in order to have the area under the curve equal a certain value.
For example, let's set m = 2, b = 100, and a = 10. I want the area under the curve to be equal to 1000. What do I need to set z to?
This is equivalent to solving: $$\left\{1000=-\frac{1}{2} ((a-z) (m (a+z)+2 b)),a=10,m=2,b=100\right\}$$
Solving for z gives: $z=-10 (5+\sqrt{46})$ and $z=10 (\sqrt{46}-5)$
And since I only care about positive values, the answer I'm looking for is $z=10 (\sqrt{46}-5)$.
When I try to solve for z more generally using WolframAlpha, it gives me an ungodly mess of formulae.
And this seems like an odd sequence of steps. I'd like to do this for multiple formulae (all strictly positive ones), e.g. exponential, sigmoid, etc.
I was hoping I could simply take a function inverse somewhere, but that doesn't seem to be the case either. I think this and this might be relevant, but don't understand them well enough to apply it to the example above.
I also think I might be able to take advantage of the inverse of the indefinite integral. Let's call the indefinite integral F(x).
We know the definite integral $\int_a^z f(x) \, dx = F(z) - F(a) = AUC$ (where AUC is area under the curve).
We know the AUC we're aiming for. We know a, so we can calculate F(a). We want to calculate z. We know AUC + F(a) = F(z). We can calculate the function inverse of F(x), let's call this F⁻¹(x).
Let's go back to y = mx + b. $$\int (b+m x) \, dx=\left(b x+\frac{m x^2}{2}\right)+C$$
The function inverse of this is: $$-\frac{2 (b x+C-m)}{x^2}$$
Put it all together...somehow...and can maybe get z?