Results 1 to 2 of 2

Math Help - Trapezoidal rule

  1. #1
    Newbie
    Joined
    Dec 2012
    From
    be
    Posts
    19

    Trapezoidal rule

    Hello!

    I want to approximate: 2π ∫ tan²x dx from x = 0 to π/4

    Can anyone check if i'm doing this right (i used n = 4)?

    f(x) =
    2π tan² x
    Δx = (b - a) / n = ((π/4) - 0 / 4) = π/16
    and (b - a) / 2n =
    π/32

    So we have to go from 0 to
    π/4 by steps of π/16 :

    π/32 [ f(0) + 2f(π/16) + 2f(π/8) + 2f(3π/16) + f(π/4)]
    e.g. 2f(
    π/16) = 2*(2π tan²(π/16)) = 0,497202 etc..

    π/32 [0 + 0,497202 + 2,156048 + 5,6104156 + 6,2831853]

    π/32 (14,54685122) = 1,428133779

    Thanks a lot!


    Last edited by jones123; December 30th 2012 at 11:12 AM.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    skeeter's Avatar
    Joined
    Jun 2008
    From
    North Texas
    Posts
    11,623
    Thanks
    428

    Re: Trapezoidal rule

    Numerical Integration utility
    Attached Thumbnails Attached Thumbnails Trapezoidal rule-trapsum2.png  
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Simpsons rule,Trapezoidal rule,check please
    Posted in the Geometry Forum
    Replies: 0
    Last Post: February 16th 2010, 06:06 AM
  2. Trapezoidal Rule
    Posted in the Calculus Forum
    Replies: 1
    Last Post: January 12th 2009, 11:05 AM
  3. Replies: 0
    Last Post: October 20th 2008, 07:12 PM
  4. Simpsons Rule and Trapezoidal Rule
    Posted in the Calculus Forum
    Replies: 5
    Last Post: July 28th 2008, 03:50 AM
  5. Replies: 3
    Last Post: August 31st 2006, 09:08 AM

Search Tags


/mathhelpforum @mathhelpforum