I'm trying to find a way to get $\frac{\partial}{\partial w}$'s result as $2(xw - y) * r$. I have no idea how to do it, but the derivative of $\frac{d}{dw}\left(xw\:-\:y\right)\cdot \:r$ is $\frac{d}{dw}(\left(xw\:-\:y\right)\cdot \:r(x,w,y))$ as can be seen here (if I understood right). $r$ is a variable, not a function, and outside of functions, I haven't seen variables separated with commas.
Any idea what does it mean?