derivative of x^2(3-x)
1) Let's differentiate: ddx(x2·(3 -x))
We differentiate u1 = x2 and v2 = 3 -x using: ddx(u1·v2) = ddx(u1)·v2 + u1·ddx(v2)
2) Let's perform the differentiation u1: ddx(x2)
ⓘ The derivative of x^n is n*x^(n-1): ddx(x2) = 2x
2x
3) Let's differentiate v2: ddx(3 -x)
ⓘ The derivative of a sum is the sum of the derivatives: ddx(3 -x) = 0 + ddx(-x)
0 + ddx(-x)
ⓘ Adding 0 changes nothing: 0 + ddx(-x) = ddx(-x)■The derivative of x is 1: ddx(-x) = -1
-1
4) We evaluate the resulting derivative (u1·v2)': 2x·(3 -x) + x2·(-1)
ⓘ Multiplying by -1 gives the opposite: x2·(-1) = -x2
2x·(3 -x) -x2
ⓘ Expand by multiplying each term inside the parentheses: 2x·(3 -x) = 6x + 2·x·(-x)
6x + 2·x·(-x) -x2
ⓘ The minus sign is placed in front of the product: 2·(-x) = -2x
6x -2·x·x -x2
ⓘ Multiplying powers with the same base adds the exponents: x·x = x2
6x -2x2 -x2
ⓘ Like terms are grouped by adding their coefficients: -2x2 -x2 = -3x2
6x -3x2
5) Then you can continue the derivation:
ⅰ ddx(x2·(3 -x)) = 6x -3x2
6x -3x2
You can write the expression in factored form: x·(6 -3x)
Let's factor in ℝ: (6 -3x)
We factor out 3, the greatest common divisor of the coefficients: 6 -3x = 3·(2 -x)
Factor found: 2 -x
▶Derivative:   3x·(2 -x)