• NEET
      • Class 11th
      • Class 12th
      • Class 12th Plus
    • JEE
      • Class 11th
      • Class 12th
      • Class 12th Plus
    • Class 6-10
      • Class 6th
      • Class 7th
      • Class 8th
      • Class 9th
      • Class 10th
    • View All Options
      • Online Courses
      • Offline Courses
      • Distance Learning
      • Hindi Medium Courses
      • International Olympiad
    • NEET
      • Class 11th
      • Class 12th
      • Class 12th Plus
    • JEE (Main+Advanced)
      • Class 11th
      • Class 12th
      • Class 12th Plus
    • JEE Main
      • Class 11th
      • Class 12th
      • Class 12th Plus
  • NEW
    • JEE MAIN 2025
    • NEET
      • 2024
      • 2023
      • 2022
    • Class 6-10
    • JEE Main
      • Previous Year Papers
      • Sample Papers
      • Result
      • Analysis
      • Syllabus
      • Exam Date
    • JEE Advanced
      • Previous Year Papers
      • Sample Papers
      • Mock Test
      • Result
      • Analysis
      • Syllabus
      • Exam Date
    • NEET
      • Previous Year Papers
      • Sample Papers
      • Mock Test
      • Result
      • Analysis
      • Syllabus
      • Exam Date
    • NCERT Solutions
      • Class 6
      • Class 7
      • Class 8
      • Class 9
      • Class 10
      • Class 11
      • Class 12
    • CBSE
      • Notes
      • Sample Papers
      • Question Papers
    • Olympiad
      • NSO
      • IMO
      • NMTC
    • ALLEN e-Store
    • AOSAT
    • ALLEN for Schools
    • About ALLEN
    • Blogs
    • News
    • Careers
    • Request a call back
    • Book home demo
NCERT SolutionsCBSE NotesCBSE Exam
Home
Maths
Trapezoidal Rule

Trapezoidal Rule

Everyone knows that integration is used to find the area of irregular shapes, but did you know that some problems may still seem complex even with the help of integration? When a precise solution isn't straightforward, the Trapezoidal Rule provides a savvy and effective method to estimate the area under a curve. Reducing the problem into trapezoids provides a method to achieve numerical solutions for integrals that would be otherwise difficult to find.

Trapezoidal Rule

Understanding the Trapezoidal Rule: 

The Trapezoidal Rule estimates the integral of a function f(x) from an interval [a,b] by breaking up the region under the curve into small trapeziums, trapezoids. The numerical integration by the trapezoidal rule helps to calculate the value of these trapezoids, which ultimately provides an estimated value for the area of this region.

1.0The Formula for the Trapezoidal Rule: 

The Formula for the Trapezoidal Rule differs based on the number of intervals to be calculated. The formula for the single interval can be expressed as: 

∫ab​f(x)dx≈2b−a​(f(a)+f(b))

Here, 

  • a & b are the limits of integration (the interval).
  • f(a) and f(b) are the function values at the endpoints.
  • 2b−a​​ represents the width of the trapezoid base, and the average of f(a) and is the height of the trapezoid.

Formula of Trapezoidal Rule

2.0Trapezoidal Rule for Multiple Intervals: 

To increase the accuracy of the result, we can also divide the interval [a,b] into n smaller subintervals, with the width of each interval as h. Here: 

h=nb−a​

This is how the Trapezoidal Rule formula in numerical methods for multiple intervals is expressed: 

∫ab​f(x)dx≈21​h[f(a)+2∑i=1n−1​f(xi​)+f(b)]

Here:

  • xi = a + i ⋅ h for i = 1, 2, …, n–1.
  • The sum

∑i=1n−1​f(xi​)

  • is the sum of the function values at the intermediate points x1, x2,…,xn−1.
  • f(a) and f(b) are the function values at the endpoints, and they are not multiplied by 2, as they represent the bases of the trapezoids at the edges.

The above formula can be expanded as: 

∫ab​f(x)dx≈21​h[f(a)+2(f(x1​)+f(x2​)+…+f(xn−1​)+f(b)]

Trapezoidal

3.0Error Estimate for the Trapezoidal Rule:

The error in the value of the area of a region decreases with an increase in the number of intervals (n) of the region. Less error is also incurred if the second derivative of the function is small. The error term for the Trapezoidal Rule can be written as: 

ET​=−12n2(b−a)3​f′′(ξ)

Here, 

  • ξ is some point in the interval [a,b].
  • f′′(ξ) is the second derivative of f(x) at that point.
  • n is the number of subintervals.

4.0Trapezoidal Rule Derivation:

To derive the trapezoidal rule formula, take a curve described by the function ∫ab​f(x)dx with a definite integral and divide this integral into several trapezoids. 

Now, divide the interval [a,b] into n smaller subintervals, with the width h, which is given as: 

h=nb−a​

Thus, the points dividing the interval [a,b] are x0, x1, x2,…,xn​, where x0 = a and xn = b. The points x1, x2,…, xn−1​ are the intermediate points of division. 

Now, calculate the area of each trapezoid using the general formula for the area of a trapezium. Which is defined as the half of the sum of the parallel sides, say, y0 = f(x0) and y1 = f(x1), and height h, and it can be expressed as:  

A=21​×h×(f(x0​)+f(x1​))

For the first trapezoid, the area is: 

A1​=21​×h×(f(x0​)+f(x1​))

Similarly, for the subsequent trapezoid, the area is: 

​A2​=21​×h×(f(x1​)+f(x2​))A3​=21​×h×(f(x2​)+f(x3​))​

For the last trapezoid between xn-1 and xn, which has the area: 

An​=21​×h×(f(xn−1​)+f(xn​))

Now, sum the areas of all the trapezoids. This gives an approximation of the integral as: 

∫ab​f(x)dx≈21​h((f(x0​)+f(x1​))+(f(x2​)+f(x2​)+f(x3​))+…+(f(xn−1​)+f(xn​)))

Combine the like terms: 

∫ab​f(x)dx≈21​h(f(x0​)+2f(x1​)+2(f(x2​)+2f(x3​)+…+2(f(xn−1​)+f(xn​))

This gives the trapezoidal rule formula for numerical integration: 

∫ab​f(x)dx≈21​h[f(a)+2∑i=1n−1​f(xi​)+f(b)]

5.0Trapezoidal Rule Solved Examples: 

Problem 1: Approximate the integral of f(x) = x2 from a = 0 to b = 1 using the Trapezoidal Rule with 2 subintervals.

Solution: Given that f(x) = x2, a = 0 and  b = 1 

The width of each interval is 

h=nb−a​=21−0​=0.5

Now, calculating the values of the function, f(x) = x2, at each interval: 

f(x0​) = f(0) = 02 = 0
f(x1) = f(0.5) = (0.5)2 =0.25

f(x2) = f(1) = 12 = 1 

Using the formula:

​∫ab​f(x)dx≈21​h[f(x0​)+2f(x1​)+f(x2​)]∫ab​f(x)dx≈21​×0.5[0+2(0.25)+1]∫ab​f(x)dx≈0.25[0+0.5+1]∫ab​f(x)dx≈0.25[1.5]=0.375​

Now, the exact value of the integral is: 

∫ab​x2dx=[3x3​]01​=31​≈0.333

Here, the error for the value is: 

0.375-0.333=0.042

Problem 2: Approximate the integral the following integral using the Trapezoidal Rule with 6 subintervals: 

f(x)=∫0π​sin(x)

Solution: According to the question: 

Let f(x) = sin⁡(x), a = 0, b = π, n = 6

The width of each interval is

h=6π−0​=6π​

Now, calculate the values of function at each interval: 

​x0​=0→f=0​x1​=6π​→f=21​x0​=3π​→f=23​​x0​=2π​→f=1x0​=32π​→f=23​​x0​=65π​→f=21​x0​=π→f=0​​

Using the formula for trapezoidal rule: 

∫0π​sin(x)dx≈21​h[f(x0​)+2f(x1​)+f(x2​)+…+f(x5​)]∫0π​sin(x)dx=21​×6π​[0+2(0.5+0.866+1+0.866+0.5)+0]∫0π​sin(x)dx=12π​[2(3.732)]=12π​(7.464)=1.954​

The exact value for the function is: 

∫0π​sin(x)dx=sin(π)−sin(0)=2

Hence, the error in the value is 0.046. 

Problem 3: A car travels with varying velocity over 4 seconds. The velocity at different times is recorded below:

Time(s)

0

1

2

3

4

Velocity (m/s)

0

5

15

20

30

Estimate the total distance travelled using the Trapezoidal Rule.

Solution: According to the question; 

velocity = f(t), and distance = ∫f(t)dt from 0 to 4. 

Let width of interval h = 1 (since time intervals are 1 second apart), and n = 4

Now, using the trapezoidal rule formula: 

​∫04​f(t)dt≈21​h[f(0)+2f(1)+f(2)+f(3)+f(4)]∫04​f(t)dt≈21​(1)[0+2(5+15+20)+30]=1/2(110)=55 m​​

Hence, the estimated total distance covered is 55 metres.  

Table of Contents


  • 1.0The Formula for the Trapezoidal Rule: 
  • 2.0Trapezoidal Rule for Multiple Intervals: 
  • 3.0Error Estimate for the Trapezoidal Rule:
  • 4.0Trapezoidal Rule Derivation:
  • 5.0Trapezoidal Rule Solved Examples: 

Frequently Asked Questions

It estimates the integral by adding up the areas of trapezoids drawn between consecutive points along the function.

Yes, it can be applied to any continuous function within a closed interval.

No, it is applied mainly to definite integrals with defined limits.

Select the number of subintervals depending on the desired precision and function complexity.

Join ALLEN!

(Session 2025 - 26)


Choose class
Choose your goal
Preferred Mode
Choose State
  • About
    • About us
    • Blog
    • News
    • MyExam EduBlogs
    • Privacy policy
    • Public notice
    • Careers
    • Dhoni Inspires NEET Aspirants
    • Dhoni Inspires JEE Aspirants
  • Help & Support
    • Refund policy
    • Transfer policy
    • Terms & Conditions
    • Contact us
  • Popular goals
    • NEET Coaching
    • JEE Coaching
    • 6th to 10th
  • Courses
    • Online Courses
    • Distance Learning
    • Online Test Series
    • International Olympiads Online Course
    • NEET Test Series
    • JEE Test Series
    • JEE Main Test Series
  • Centers
    • Kota
    • Bangalore
    • Indore
    • Delhi
    • More centres
  • Exam information
    • JEE Main
    • JEE Advanced
    • NEET UG
    • CBSE
    • NCERT Solutions
    • NEET Mock Test
    • Olympiad
    • NEET 2025 Answer Key

ALLEN Career Institute Pvt. Ltd. © All Rights Reserved.

ISO