derivative of x^2y-x
The expression: x2y -x contains several variables so we pick x for differentiation
Let's perform the differentiation: ddx(x2y -x)
ⓘ The derivative of a sum is the sum of the derivatives: ddx(x2y -x) = ddx(x2y) + ddx(-x)
ddx(x2y) + ddx(-x)
ⓘ For differentiation with respect to x, y is treated as constant. A constant factor stays in front of the derivative, (k*u)' = k*u': ddx(x2y) = y·ddx(x2)■The derivative of x^n is n*x^(n-1): ddx(x2) = 2x■The derivative of x is 1: ddx(-x) = -1
y·2x -1
▶Derivative:   2xy -1