You can check this paper. Is the one my advisor recommended when I started my PhD. Is a FEM implementation in 50 lines of MATLAB.
https://www.math.hu-berlin.de/~cc/cc_homepage/download/1999-...
https://www.math.hu-berlin.de/~cc/cc_homepage/download/1999-...
Some of this is summarised in this paper in 2. model problem & 3. Galerkin discretisation of the problem, but not in a way that will communicate the mathematical ideas to anyone who hasn't already taken a course on the theory -- probably need a couple of courses on real analysis & a course on PDE as pre-reqs.
It's clear the underlying techniques are very powerful any time you have a thing whose rate of change varies as other things change. Once I understand everything better I will try it on e.g. capacity planning cloud resources and such.