Solve Integral equation with fsolve in Matlab

126 Views Asked by At

I'm trying to solve the following double integral equation with Matlab:

$$A(x)=\int_0^x \mathrm du\int_u^1\cos(B(v))\mathrm dv $$

where A is a set of discrete values, known between $0$ and $1$ ($x$ values) with the boundary condition $A(0)=0,B(0)=-\pi/2.$ Solving this equation corresponds to determine the values of $B$ for $x$-values between $0$ and $1$. I'm not sure what is the best way to solve this equation: using fsolve, iterative procedure or with a symbolic approach to find $B$, but the double integral seems difficult to calculate.

I greatly appreciate your help or advices to solve this equation.