MATLAB: How to find x value in an integration equation

equation integration find x

I have an equation with limits 0 to x. I want to find x in the integration function. The function is
e^(-A*x)/(q/k+e^(-A*x)) with limits o to x. I want to find the x value.
Thank you.

Best Answer

It appears from your question that you want to find the limits of integration such that the output of integral is a given number. If yes, then try this.
A = 1;
q = 1;
k = 2;
x = 0.3; % integral limit
I = @(X) integral(@(x) exp(-A*x)./(q/k+exp(-A*x)), 0, x);