# Homework Help: Commutation of differential operators

1. Aug 24, 2012

### magicfountain

1. The problem statement, all variables and given/known data
Evaluate the commutator $\left[\frac{d}{dx},x\right]$
2. Relevant equations
$\left[A,B\right]=AB-BA$
3. The attempt at a solution
$\left[\frac{d}{dx},x\right]=1-x\frac{d}{dx}$

I don't know how to figure out $x\frac{d}{dx}$.

2. Aug 24, 2012

### conquest

Try using a test function here i.e. calculate [d/dx,x]f(x) and when you are done make sure you get some expression (...)f(x) again then what is between the brackets is your commutator.

3. Aug 24, 2012

### magicfountain

I actually just figured this out.
Can somebody please just check this one I did for mistakes?

[A,B]=[(d/dx + x),(d/dx - x)]
(AB-BA)f=(d/dx + x)(d/dx - x) f -(d/dx - x)(d/dx + x) f
(d/dx + x)(df/dx - xf)- (d/dx - x)(df/dx + xf)
(df^2/dx^2 - f - x df/dx)+(x df/dx - x^2f)-(df^2/dx^2 + f +x df/dx)+(x df/dx + x^2f)
=-2f

--> [(d/dx + x),(d/dx - x)]=-2

4. Aug 24, 2012

### HallsofIvy

If f is any function then (d/dx)(x f)=x df/dx+ f while x(d/dx)f= xdf/dx. The difference is f so the commutator, [d/dx, x] is the identity operator.

5. Aug 24, 2012

### vela

Staff Emeritus
That's fine.

You could have also used a few properties of commutators to save yourself some work, namely [A+B,C]=[A,C]+[B,C] and [A,B]=-[B,A]. Using those, you should be able to show that [(d/dx + x), (d/dx - x)] = 2[x, d/dx], and you've probably already worked out that last one and found it to be equal to -1.

6. Aug 25, 2012