This textbook is devoted to second order linear partial differential equations. The focus is on variational formulations in Hilbert spaces. It contains elliptic equations, including the biharmonic problem, some useful notes on functional analysis, a brief presentation of Sobolev spaces and their properties, some basic results on Fredholm alternative and spectral theory, saddle point problems, parabolic and linear Navier-Stokes equations, and hyperbolic and Maxwell equations. Almost 80 exercises are added, and the complete solution of all of them is included. The work is mainly addressed to students in Mathematics, but also students in Engineering with a good mathematical background should be able to follow the theory presented here. This second edition has been enriched by some new sections and new exercises; in particular, three important equations are now included: the biharmonic equation, the linear Navier-Stokes equations and the Maxwell equations.