Fortunately, the above quantities are easy to evaluate for linear triangles. As a matter of fact, there are closed form solutions for the matrix elements :

Therefore,

and for the right hand side we have, assuming constant sources,