compute (x-1)(x+2)(x-3) then differentiate the result
⚠ (x-1)(x+2)(x-3) is read as (x-1)*(x+2)*(x-3): use (...)*(...) for multiplication, use (...)^(...) for a power
Let's evaluate: (x -1)·(x + 2)·(x -3)
ⓘ Multiply each term of the sum by the other factor, using the distributive law: (x -1)·(x + 2) = x·x + x·2 -1·x -1·2
(x·x + x·2 -1·x -1·2)·(x -3)
ⓘ Multiplying powers with the same base adds the exponents: x·x = x2■Multiplication by 1 preserves the original value: 1·x = x■Multiplications are done before additions and subtractions: 1·2 = 2
(x2 + x·2 -x -2)·(x -3)
ⓘ Group like terms by adding their coefficients: x·2 -x = x
(x2 + x -2)·(x -3)
ⓘ Multiply each term of the sum by the other factor, using the distributive law: (x2 + x -2)·(x -3) = x2x + x2·(-3) + x·x + x·(-3) -2x -2·(-3)
x2x + x2·(-3) + x·x + x·(-3) -2x -2·(-3)
ⓘ To multiply powers with the same base, add their exponents: x2x = x3, x·x = x2■The minus sign is placed in front of the product: x2·(-3) = -3x2■Write the minus sign in front of the product: x·(-3) = -3x■Perform multiplications before additions and subtractions. Two minus signs cancel out, the product of two negative numbers is positive: -2·(-3) = 6
x3 -3x2 + x2 -3x -2x + 6
ⓘ Group like terms by adding their coefficients: -3x2 + x2 = -2x2■Like terms are grouped by adding their coefficients: -3x -2x = -5x
▶Result:   x3 -2x2 -5x + 6
Let's perform the differentiation: ddx(x3 -2x2 -5x + 6)
ⓘ Differentiate a sum by differentiating each term, then adding the derivatives: ddx(x3 -2x2 -5x + 6) = ddx(x3) + ddx(-2x2) + ddx(-5x) + 0
ddx(x3) + ddx(-2x2) + ddx(-5x) + 0
ⓘ The derivative of xn is nxn -1: ddx(x3) = 3x2, ddx(x2) = 2x■A constant factor stays in front of the derivative: that of ku is k·u': ddx(-2x2) = -2·ddx(x2), ddx(-5x) = -5■Adding 0 changes nothing: ddx(-5x) + 0 = ddx(-5x)
3x2 -2·2x -5
ⓘ Perform multiplications before additions and subtractions: 2·2 = 4
▶Derivative:   3x2 -4x -5