Applying the Composite Trapezoidal Rule to Fredholm Integral Equations of the Second Kind
July 1, 2019
Fredholm integral equations of the second kind are of the form:
u(x)=f(x)+∫abK(x,t)u(t)dt
Given f(x) and K(x,t), can we find the solution for the unknown function u(x)? The most difficult part of this problem is evaluating the integral ∫abK(x,t)u(t)dt, which often has no analytical solution if the kernel function K(x,t) is complicated. It is helpful to approach these problems numerically.
One naive approach to this problem is to try to approximate ∫abK(x,t)u(t)dt. We will solve it using the composite trapezoidal rule. Assuming a uniform grid with n equal partitions and step-size h=nb−a, the composite trapezoidal rule is as stated:
∫abf(x)dx≈2h(f(x0)+2i=1∑n−1f(xi)+f(xn))
where xi∈[a,b] for i=0,1,…,n. When we apply the composite trapezoidal rule to our integral, we get
Let’s try this on an example problem. Let u(x)=ex−1+∫01tu(t)dt where f(x)=ex−1 and K(x,t)=t. The exact solution to this equation is u(x)=ex1. Let’s use n=4 intervals with a step-size of h=41. Our set of nodes will then be 0,41,21,43,1. The matrix equation is
Let’s look at a plot of our approximation versus the exact solution:
It looks okay. We can see that there is some error when we only use 4 intervals. Let’s see if we can do better when n=8:
The error is much smaller, which should make sense because the composite trapezoidal rule has error of order O(h3). So when we double our steps-size, our error is 81ed.
Avazzadeh, Z., et al. “Numerical Solution of Fredholm Integral Equations of the Second Kind by Using Integral Mean Value Theorem.” Applied Mathematical Modelling, vol. 35, no. 5, May 2011, pp. 2374–2383. ↩