derivative of (x-2/x)
To ease differentiation, the expression -2x is turned into -2x-1
Let's differentiate: ddx(x -2x-1)
ⓘ The derivative of a sum is the sum of the derivatives: ddx(x -2x-1) = 1 + ddx(-2x-1)
1 + ddx(-2x-1)
We differentiate using: ddx(fn) = n·ddx(f)·fn -1 (where f = x)
ⓘ A constant factor stays in front of the derivative, (k*u)' = k*u': ddx(-2x-1) = -2·ddx(x-1)■The derivative of x^n is n*x^(n-1): ddx(x-1) = -1·x-2
1 -2·(-1·x-2)
ⓘ Multiplications are done before additions and subtractions. Two minus signs cancel out, the product of two negative numbers is positive: -2·(-1) = 2
1 + 2x-2
ⓘ The factor is moved to the numerator or the denominator by changing the sign of its exponent, for a nonzero base: 2x-2 = 2x2
1 + 2x2
▶Derivative:   2x2 + 1