Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Setting up Newton Raphson integral with matlab

  1. Jan 22, 2009 #1
    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:
    [tex] 1 = e^{-cy} \int_0^1 e^{-y(1-x)} dx [/tex]

    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!!!!!!!
  2. jcsd
  3. Jan 23, 2009 #2

    Gib Z

    User Avatar
    Homework Helper

    Well, look inside the integral. The variable is x, y is a constant inside the integral. We can easily solve that integral exactly, no need to approximate that integral.

    After that, you will have on the RHS some exponential terms divided by y, which is easy to apply Newtons Method to.
  4. Jan 25, 2009 #3
    Thanks Gib.
    I figured where i went wrong.. i still have a question that i will post later today
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Setting up Newton Raphson integral with matlab
  1. Newton Raphson's (Replies: 1)

  2. Newton Raphson Method (Replies: 8)