Use the usual bounded Lipschitz domain assumptions so that the Sobolev trace is defined. Multiplication by and Green's first identity giveThe Robin boundary condition substitutes in the boundary integral. The resulting Weak formulation of the Robin Poisson problem is therefore: find such thatThe boundary values in the integral mean Sobolev traces; no classical normal derivative is required of the weak solution. For uniqueness, subtract two solutions and test by their difference . This yields . Thus , so is constant on each connected component, and its vanishing boundary Sobolev trace makes each constant zero. The weak solution is unique.
For a bilinear square finite element with corners numbered anticlockwise from the lower-left corner, introduce local coordinates , . The four shape functions areThe local stiffness matrix has entries . The factor from the area element cancels the two factors from the gradients. Symmetry leaves three types: diagonal, adjacent corners, and opposite corners. For representatives,ConsequentlyFor an element whose left edge lies on , the boundary term in the weak formulation adds . Only and are nonzero on that edge. Integrating , and gives the extra contributionIts entries are added at the corresponding global node numbers during finite element assembly. Additional boundary edges contribute their own analogous edge matrices. The Robin boundary condition is represented by these integrals, so boundary nodes remain unknowns.