Duration: 3 hours
Aids permitted: calculator, Maple
All answers must be recorded in full in the exam booklets provided. If you use Maple, you should explain what you used it for, although you need not write down every Maple command which you used to solve a problem.
Note the useful information at the end of this paper.
Answer all questions.
where
Calculate the average potential energy for a harmonic oscillator in its ground state. Express your answer in multiples of [10 marks]
Maple hints: Tell Maple that is positive but don't otherwise define this parameter. Do the substitution by hand in your test paper to complete the solution.
Maple hints: This time, define in terms of k, and before you do any calculations.
Maple hints: Enter the following two commands into your Maple session before attempting this part:
> beta := 'beta'; > assume(beta>0);These instructions undefine and instruct Maple to treat it as a positive parameter.
Using the variational wavefunction
find an approximation to the ground-state energy. [10 marks]
Maple hints: You will get more than one solution. Store them in
a variable called (say) sol. Then sol[1]
is the
first solution, sol[2]
is the second solution, and so on.
To substitute these values into another expression, use
subs(). For example, if you want to substitute a
variable called a by sol[1]
into an expression
called b, you would type
> subs(a=sol[1],b);into your Maple session.
Maple hint: You will have to tell Maple that is positive.