Wirtinger Inequalities, Dirichlet Functional Inequalities, and the Spectral Theory of Linear Operators and Relations