Results 1 to 6 of 6

Math Help - trapezoid rule approximation?

  1. #1
    Newbie
    Joined
    Sep 2009
    Posts
    19

    trapezoid rule approximation?

    How to do trapezoid rule approximation of integral of sec xdx from -1 to 1 and n= 4? Also what is the error bound? Thanks.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Super Member Matt Westwood's Avatar
    Joined
    Jul 2008
    From
    Reading, UK
    Posts
    807
    Thanks
    27
    Should be everything you need here:

    Trapezoidal rule - Wikipedia, the free encyclopedia
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Sep 2009
    Posts
    19
    Thanks, but that didnt help that much.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Super Member Matt Westwood's Avatar
    Joined
    Jul 2008
    From
    Reading, UK
    Posts
    807
    Thanks
    27
    So what you do is decide how many trapezoids to divide your integral into (the more trapezoids, the more accurate your answer will be, but then the more work you have to do). At each of these points on the interval, calculate sec x. Then just feed those numbers into the "composite trapezoidal rule" equation.
    Follow Math Help Forum on Facebook and Google+

  5. #5
    MHF Contributor
    skeeter's Avatar
    Joined
    Jun 2008
    From
    North Texas
    Posts
    11,621
    Thanks
    426
    Quote Originally Posted by shah4u19 View Post
    How to do trapezoid rule approximation of integral of sec xdx from -1 to 1 and n= 4? Also what is the error bound? Thanks.
    \int_{-1}^1 \sec{x} \, dx \approx \frac{1-(-1)}{2\cdot4} \left[\sec(-1) + 2\sec\left(-\frac{1}{2}\right) + 2\sec(0) + 2\sec\left(\frac{1}{2}\right) + \sec(1) \right]

    error bound ...

    |e| \le \frac{M(b-a)^3}{12n^2}

    where ...

    f''(c) \le M \, ; \, c \in [a,b]
    Last edited by skeeter; September 16th 2009 at 05:29 PM. Reason: approximation
    Follow Math Help Forum on Facebook and Google+

  6. #6
    Newbie
    Joined
    Sep 2009
    Posts
    19
    Thanks you all for your reply. Really helps.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Trapezoid Rule
    Posted in the Calculus Forum
    Replies: 6
    Last Post: September 1st 2009, 08:01 AM
  2. Trapezoid Rule..
    Posted in the Calculus Forum
    Replies: 1
    Last Post: December 12th 2008, 06:50 AM
  3. The trapezoid rule
    Posted in the Calculus Forum
    Replies: 0
    Last Post: October 29th 2008, 04:24 PM
  4. trapezoid rule
    Posted in the Calculus Forum
    Replies: 7
    Last Post: June 30th 2008, 01:46 AM
  5. Trapezoid Rule/Simpson's Rule
    Posted in the Calculus Forum
    Replies: 1
    Last Post: May 16th 2007, 06:52 PM

Search Tags


/mathhelpforum @mathhelpforum