# What is a test function and why do we need them?

I'm taking a class right now (graduate level), an Introduction to Nodal Discontinuous Galerkin methods. I've got a little numerical analysis background, meaning I've covered a lot of topics over the last year but never got really in depth in any single topic. Anyway, the book I'm reading, develops these NDG methods by introducing test functions which are new to me. The book requires that the residual (does residual mean error?) of our approximated solutions (to whatever pde) is orthogonal to these test functions? Why? The only reason I can glean, is that test functions are just cleverly chosen functions, and the orthogonality requirement just makes the coefficient solving easier? Is that the case or is there something deeper here? As a note, the authors of my book chose the test functions to be in the same space as the proposed approximated polynomial solution, both locally and globally.

• We need test functions to be able to define functional concepts. This is usually done already when working with Fourier transforms, being able to get an identity convolver ( dirac delta distribution ), ensuring properties exist for the functions we are working on. – mathreadler Jun 4 '17 at 20:39