Duffing oscillator problem