Representation Theorems for indefinite quadratic forms and applications