I am having trouble calculating some variable assignments.
Let $s$ be a variable assignment over $M=(D,J) $
We define:
$$\begin{align} s(d/x)(y) & = d & \mbox{ if $y$ is identical to $x$} \\ s(d/x)(y) & = s(y) & \mbox{ otherwise} \end{align}$$
Now during an example question, it comes up that if, $x$ is not equal to $y$ then:
$$(s(a/x))(b/y) = (s(b/y))(a/x) \mbox{ for $a,b$ in $M$}$$
If $x=y$ then
$$(s(a/x))(b/y)=s(b/y)$$
Can somebody please show me how these two examples are true, I can not seem to use to definition of s properly to show them.