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

MATHEMATICA[solve numerical integration and find min value]

  1. Jul 29, 2010 #1
    i want to find the minimum sum of this equation and find the t like using solver in Excel,but since the integration cannot be integrate directly,i didnt know how to use the numerical integration to apply for this problem.
    i want to find the value :let say when n=2, t_0=0 and t_n=1, so i need to find t_1 that will make the equation become minimum value.I hope that anyone can help me.

    Sum[Integrate[4.9*^6*E^(-0.03*t + 0.03*(t + Subscript[t, j]))*
    ((1 - 0.015*(6 + t))/E^(0.015*Subscript[t, j]) +
    (-0.91 + 0.015*Subscript[t, j])/E^(0.015*t))^2,
    {t, Subscript[t, -1 + j], Subscript[t, j]}], {j, 1, n}]
  2. jcsd
  3. Jul 29, 2010 #2
    write the equation you want to solve in normal way (like what written in your book) so i can help
  4. Jul 29, 2010 #3
    i had attached the equation.how can we use numerical integration in mathematica to solve the problem?or any other method can be used?

    Attached Files:

  5. Jul 30, 2010 #4
    Let us try to solve it step by step
    first I'll open the sum and get the following equation
    and x is t1

    press enter and get this answer

    now to find minimum you can take derivative and make it equal zero but i faced problem when trying solve function to zero i got the following massege

    olve::tdep: The equations appear to involve the variables to be \
    solved for in an essentially non-algebraic way

    so i have to find another way . I plot the function to see the shape

    as you notice the minimum value of x is around 0.5 corresponding to arround 1 as a value for cos t.
    I evaluated the function x at numbers between 0.4 to 0.6 with 0.00002 step and found that cos t = 0.894953
    see figure

    and by iteration you can find value of x

    x = 0.51219

    please this is not for sure the right answer but it could give an idea
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook