Superlinear indefinite equations on the real line and chaotic dynamics