How to Integrate ?
2 views (last 30 days)
Show older comments
How to integrate this int(((log(x-t)/sqrt(x-t))*(sqrt(3)*(2*t-1))),t,0,x) in matlab? I tried but i am not getting the integrated part.
1 Comment
David Hill
on 14 Jan 2021
You will need to numerically integrate it for all x. What is your domain of x values?
Answers (1)
Daniel Pollard
on 14 Jan 2021
Wolfram alpha is useful here to show you what can be done. If you click that link you'll see that I asked it to do
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/487978/image.png)
which is one part of your integral. It returned a pretty horrible mess of an analytic function. If you ask it
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/487983/image.png)
which is the second part of your integral, you run out of computation time.
Now I'm sure Matlab is a more powerful piece of software than what is basically a free version of a webapp, but it makes me think that the integral likely can't be done analytically, since it's usually pretty good.
If you substitute x with some constant (e.g. 1), the integral may be possible to do numerically.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!