Prior to development of the Finite Element Method, there existed an approximation technique for solving differential equations called the Method of Weighted Residuals (MWR). For Galerkin's method, the test function w comes from the chosen trial function, i.e. w = du/da and the weighted average of the residual over the problem domain is set to zero. This program returns the trial function. It is shown plotted with the exact solution for 0<x<1. |