differentiate x^2+2x+1
Let's differentiate: ddx(x2 + 2x + 1)
ⓘ The derivative of a sum is the sum of the derivatives: ddx(x2 + 2x + 1) = ddx(x2) + ddx(2x) + 0
ddx(x2) + ddx(2x) + 0
ⓘ The derivative of x^n is n*x^(n-1): ddx(x2) = 2x■Adding 0 changes nothing: ddx(2x) + 0 = ddx(2x)■A constant factor stays in front of the derivative, (k*u)' = k*u': ddx(2x) = 2
▶Derivative:   2x + 2