Tuesday, July 7, 2009

The Trapezoidal Rule

Let a function y(τ) and two time points: t and t + Δt.

Curve

We will now make an approximation by saying that if Δt is small enough, y(τ) is approximately constant over the interval [t, t + Δt] and equal to the average of y(t) and
y(t + Δt).

TrapezoidalApproximation

Based on this approximation, the integral of y(τ) over the interval [t, t + Δt] is given by

Integral

The previous equation is the integral form of the trapezoidal rule, we will now derive the differential form which will be used in the next posts.

Let

Let 

Substituting in the integral form of the trapezoidal rule

Substituting

NoWords  
Rearranging

Rearranging

The previous equation is the differential form of the trapezoidal rule. It will be used to replace the differential equations that appear in circuits containing energy storage elements by algebraic equations.

No comments: