Loading [MathJax]/jax/output/HTML-CSS/jax.js

Modeling and Simulation

Laboratory exercise

A nonlinear oscillator

Exercise (Nonlinear oscillator for a complex field). Consider a field ψC satisfying the equation idψdt=ωψ+g|ψ|2ψ. (a) Find analytically a solution of this equation when (i) g=0 and (ii) g0. [Hint. Note that d|ψ|2/dt=0.]
(b) Show by explicit calculation that Eq. (1) can be written as idψdt=Eψ where star (*) denotes complex conjugation and E is an energy function, E=g2|ψ|4ω|ψ|2. (c) Write explicitely the equation idψdt=(1i)Eψ and prove that dE/dt0.
(d) Write code to solve numerically Eq. (3) with arbitrary initial condition ψ(t=0)=ψ0 and relate your result to the solution found in (a). [Hint. You may use Euler's method for numerical integration.]


Questions

Learning outcomes