next up previous
Up: Back to the Chemistry 3730 assignment index

Assignment 3 solutions

  1. Two wavefunctions are orthogonal if their inner product is zero. Let's start by defining the general formula for the particle-in-a-box wavefunction:
    > psi := (n,L,x) -> sqrt(2/L)*sin(n*Pi*x/L);

    displaymath101

    Use the hint:

    > assume(n,integer);
    > assume(m,integer);
    Now compute the inner product:
    > int(psi(n,L,x)*psi(m,L,x),x=0..L);

    displaymath102

    Note that Maple simply assumes that n and m represent different integers. We haven't told it that this is true so it probably shouldn't do that. Computer algebra systems can be very good at what they do, but they are not foolproof. You should double-check your results whenever possible and pay special attention to special cases.

  2. This is the same as the example we did in class, so let's just plunge ahead and do it:
    > avg_x:=int(psi(2,L,x)^2*x,x=0..L);

    displaymath103

    > avg_x2:=int(psi(2,L,x)^2*x^2,x=0..L);

    displaymath104

    > avg_p:=-I*hbar*int(psi(2,L,x)*diff(psi(2,L,x),x),x=0..L);

    displaymath105

    > avg_p2:=-hbar^2*int(psi(2,L,x)*diff(psi(2,L,x),x$2),x=0..L);

    displaymath106

    > assume(L,positive);
    > assume(hbar,positive);
    > delta_x:=sqrt(avg_x2-avg_x^2);

    displaymath107

    > delta_p:=sqrt(avg_p2-avg_p^2);

    displaymath108

    > simplify(delta_x*delta_p);

    displaymath109

    > evalf(%);

    displaymath110

    This is bigger than tex2html_wrap_inline125 so the uncertainty principle is verified for this state.

  3. > avg_xp := -I*hbar*int(psi(1,L,x)*x*diff(psi(1,L,x),x),x=0..L);

    displaymath111

    > avg_px := -I*hbar*int(psi(1,L,x)*diff(x*psi(1,L,x),x),x=0..L);

    displaymath112

    Note that these values are complex. This is OK because neither px nor xp represents a proper observable. Some quantum mechanical operators commute ( tex2html_wrap_inline127 ) and some, like tex2html_wrap_inline129 and tex2html_wrap_inline131 , don't. It turns out that this is deeply connected to the uncertainty principle: Commuting observables can be simultaneously measured without interference while noncommuting observables can't.



Marc Roussel
Wed Sep 30 15:06:09 MDT 1998