Let’s consider the Galerkin method, which provides another approach to determining the coefficients in the approximation where for
We define the operator
Given that is the exact solution of the differential equation
we have
This implies that
However, since
in general, approximating by requires finding such that
This condition is equivalent to
Expanding the expression gives
Since , we are left with:
For , we define the coefficients
and
With these definitions, (*) can be expressed as a system of linear equations:
where is a matrix with entries and . Solving (**) yields the coefficients .
Fig. 1 solved by the Galerkin method with
Fig. 2 solved by the Galerkin method with
Exercise-1 Verify that
Exercise-2 Solve by the Galerkin method. (Hint: Fig. 1)