Self-Adjoint Operator Question..

my question is if we can always choose a0 and a1 in a way that the Eigenvalues are the roots of a given function f(x) with f continous and differentiable... by the existence theorem for differential equations:

we must have that F and dF/dy must be continuous..so the existence theorem implies that we can always choose a a0 and a1 that satisify that the eigenvalues of the differential equation are the roots of f(x) on condition that a0 and a1 are continous and that a0 has no real roots...is that true?..