Solving integral equation in matlab

3.3k Views Asked by At

I want solve the following equation using Matlab fsolve command but I am unable to write the code. The equation is as follows.

\begin{equation} \int_{0}^{1} \frac{e^{-xy}}{\log(x)}dx-y^2=0 \end{equation}

How I can write the code to solve it using Matlab. This is an example and may not have any solution.

1

There are 1 best solutions below

0
On BEST ANSWER

you can solve this like the following:

syms 'x' 'y'
r = int(exp(-x*y)/log(x),'x',0,1)
solve(r - y^2, 'y')