# Setting up Newton Raphson integral with matlab

• MATLAB
Hi All.

I have an equation that i want to numerically find the root of by using Newton Raphson. However the equation involves an integral which i am using the trapazoidal rule to evaluate. And here is the simplified version of it:
$$1 = e^{-cy} \int_0^1 e^{-y(1-x)} dx$$

So i am supposed to integrate for x and then solve the resulting equation for values of y. How do i do that????????????

If i just wanted to do the integration, i would have used "syms" and found the result in terms of y.... but i am totally stumped with this... plz... SOS!!!!!!!