Boundary Value Problems and Orthogonal Expansions