- Practice · 8 marks
Galerkin and collocation solution of an ODE
Short answer
Galerkin: weight x(1−x) gives a=5/18≈0.2778, u(0.5)=0.0694. Collocation at x=0.5: R(0.5)=0 gives a=2/7≈0.2857, u(0.5)=0.0714. Exact u(0.5)=0.06975. Galerkin, which averages the residual over the domain, is more accurate than single-point collocation.
Solve the boundary value problem
using the trial function by (a) the Galerkin method and (b) the point collocation method at . Compare with the exact solution .
Residual
With : . The trial function satisfies .
(a) Galerkin method
The weight function equals the trial function shape, , and .
Needed integrals: , , .
.
(b) Point collocation at
.
Comparison
Exact: .
| Method | Error | ||
|---|---|---|---|
| Galerkin | 0.2778 | 0.06944 | -0.4 % |
| Collocation | 0.2857 | 0.07143 | +2.4 % |
| Exact | - | 0.06975 | - |
Galerkin averages the residual over the whole domain, so it is more accurate than collocation, which forces zero residual only at one point.
Answer: Galerkin , ; collocation , ; exact .
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Ritz solution of beam under uniform load · Finite Element Method, chapter 4
- Compare weighted residual methods · Finite Element Method, chapter 4
- Simply supported beam with two elements · Finite Element Method, chapter 3
- Gauss quadrature numerical integration · Finite Element Method, chapter 7
- Solve ODE by Laplace transform y''+3y'+2y=e^(−t) · Mathematics III, chapter 3 · asked 18×
- Solve ODE by Laplace transform y''+4y'+3y=0 · Mathematics III, chapter 3 · asked 18×
- Solve ODE by Laplace transform x''+2x'+5x=e^(−t)sint · Mathematics III, chapter 3 · asked 17×
- Solve ODE by Laplace transform y''+2y'+2y=5sinx · Mathematics III, chapter 3 · asked 17×