
In Finite element analysis, we turn a differential equation into its weak form by multiplying both sides of the DE by a test function and integrate over small sections of the interval of interest.
I know that one reason we use the weak form is that there are now less restrictions in the solution; the solution to the weak form of the problem doesn't have to be as many times differentiable as a solution to the original function, for example.
But this can't be the only reason why weak forms are used. Solution to the weak form has to approximate the solution to the original problem as well. So why is this? Why does it make sense that a solution to the weak form of the problem is anywhere related to the solution of the original problem? If we multiply to sides of the equation by some function, integrate, and find a solution that satisfies this new relation, why does it seem to imply it approximately solves the original problem as well?
I don't need very deep mathematical reasoning for this. I am an engineering student, but I would like to have some intuition on this.
I read one explanation somewhere that if the test function has an integral of one over some interval around $x_0$ and we carry out the multiplication and integration procedure, the integral approximately equals the value of the function multiplied by the test function at $x_0$. I tried this with some functions and it seems to be true. I also remembered from a math lecture some years ago that the integral of a function multiplied by the Dirac delta over some point (and Dirac delta has an integral of one!) equals the value of the function at the point the Dirac is located. Does this have anything to do with the reason why the solution to the weak formulation works? But I still can't find a good intuition why the sum of the test/basis function approximates the solution over the interval.
Thank you!
Part 1: General Explanation
Your question is a pretty common one.
First the important part of finding weak solutions to PDEs is rewriting a PDE into the weak form aka \begin{align} L(x)=0 \Rightarrow \int L(x)v \ dx=0 \end{align} where $L$ is some differential operator (using the integration by parts bit makes finding numerical solutions easier but it is not strictly nessary). From the fundamental lemma of calculus of variations for the integral to be equal to zero for any continuously compactly supported function $v$, $L(x)$ must be equal to zero. By writing the PDE in this form any true solution is also a solution to the weak form, but not every weak form solution is a true solution to the original PDE problem. If you want a nice example of what I am talking about see the answer to this post. In general though the weak solution can be very different from the true solution (they do come from different function spaces very all). One of the major realizations in the practical applications of PDEs to real world problems was that the weak solution of a PDE is often "Good Enough". I had a book that talked about the history of this but I can't find it :( .
For many problems solutions that come from the Sobolev space (from which weak solutions come from) is "Good Enough". As nicely summarized in this post
In general the true solution is much more specific while the weak solution cares more about preserving areas and volumes rather than function values.
One thing that is not mentioned in your post but is really important is that once it the appropriate form you can discretize your weak solution using the Galerkin method (this is a really important part of the finite element). Applying the Galerkin method it reduces the problem of finding the weak solution to just finding the value of your unknown function on the nodes of your mesh (which is a linear algebra problem). If you are taking a course in FEM most of the time spent in the course is devoted to this. There are different ways discretizing a PDE or PDE that is independent of FEM (most of these fall under the umbrella of Finite difference methods). In general FEM is best if you have a simple PDE (or well studied PDE like the Naiver Stokes Equation) but have a very complex boundary (e.g. a 3D model of a bone, a map of a continent). This discretion step coupled with a weak formulation allows you to find a solution to most PDEs on any finite boundary.
Part 2: Answering Questions
In this section I am just going to answer some of the questions you raised.
Mainly it is (for engineers). For mathematicians putting a PDE into the weak form helps identify which function space a solution belongs to (odern PDE research is often devoted to understanding what functions make up the solutions to a PDE rather than finding the solution to a PDE). Applying the finite method refines it further, allowing you to look through a "smaller" functional space.
As explained previously it does as far as areas, volumes and potential energy is preserved. There are many ways to approximate a PDE(e.g. finite difference methods, spectral methods) weak solutions aren't the only way. For some PDEs the weak solution is a poor approximation of the true solution (this is beyond the scope of your question, unless you do graduate work in certain areas you will probably never see PDEs like this, just know that there are some really strange functions, ODEs, and PDEs).
There are two different ways of looking at this question
This is one way of thinking about the weak solution of a PDE.
This is related to the theory of distributions and how they can be thought of as generalizations of functions. It is a bit of a side note in the theory of PDEs and functional analysis, I would put this idea in a box for now and think about it in the future when you cover distributions (which you could study in their own course). The fundamental lemma of calculus of variations is more important for understanding how weak solutions work.
Additional Notes