Verify your result by computing the energy of
both directly from
and using the operator expression
.
Hints: You may find the result
useful. Also, you will find dealing with the discontinuities
in
more easy if you first integrate by parts to show
.