The duffing oscillator: Analog solutions and a comparison with harmonic linearization