Okay, I'll try to answer.
First of all, there's one idea that some people forget at the beginning: commutators are operators
That is, they act on a wavefunction, like all operators.
A commutator is something that needs an input of two operators: $A$ and $B$, and the output is another operator, which is $(AB-BA)$. That is an operator.
For me, it is dangerous to write $[\frac{\partial}{\partial x} , x] =1$, because a commutator is not a number. That "number 1" refers to the "operator one", or the identity operator. I prefer writing
$$\left[\frac{\partial}{\partial x} , x\right] =\mathbb{I}$$
What's more, it is better to write capital letters, or hats on the letters, because here $x$ is not a variable, it is the $X$ operator. We should write:
$$\left[\frac{\partial}{\partial X} , X\right] =\mathbb{I}$$
And this is important because this reminds you that operators make sense when they are applied on wavefunctions.
So, if you want to evaluate $[X, P_x]$, by definition, it is $X\ P_x - P_x\ X$
But this makes sense when you apply it to a wavefunction, that is, you should take an arbitrary wavefunction $\psi$ and compute
$$[X, P_x]\psi=X\ P_x \psi - P_x \ X\ \psi =X\ (P_x \psi) - P_x \ (X\ \psi) $$
And that's how you prove the different relations.
You have to know how each operator acts on the wavefunction. For example $X\psi = x\psi$, it is just multiplying it by the $x$ variable.
However, the way $P$ acts is $P\psi = -i\hbar \frac{\partial \psi}{\partial x}$
So, in sum, you demonstrate commuting relations by appliying them to an arbitrary $\psi$.