derivative of f(x)=(x^2+3x-2)/(x^2-5x+6)
We save the definition: f(x) = x2 + 3x -2x2 -5x + 6
1) Let's perform the differentiation: ddx(x2 + 3x -2x2 -5x + 6)
We differentiate p1 = x2 + 3x -2 and q2 = x2 -5x + 6 using: ddx(p1q2) = ddx(p1)·q2 -p1·ddx(q2)q22
2) Let's differentiate p1: ddx(x2 + 3x -2)
ⓘ The derivative of a sum is the sum of the derivatives: ddx(x2 + 3x -2) = ddx(x2) + ddx(3x) + 0
ddx(x2) + ddx(3x) + 0
ⓘ The derivative of x^n is n*x^(n-1): ddx(x2) = 2x■Adding 0 changes nothing: ddx(3x) + 0 = ddx(3x)■A constant factor stays in front of the derivative, (k*u)' = k*u': ddx(3x) = 3
2x + 3
3) Let's differentiate q2: ddx(x2 -5x + 6)
ⓘ The derivative of a sum is the sum of the derivatives: ddx(x2 -5x + 6) = ddx(x2) + ddx(-5x) + 0
ddx(x2) + ddx(-5x) + 0
ⓘ The derivative of x^n is n*x^(n-1): ddx(x2) = 2x■Adding 0 changes nothing: ddx(-5x) + 0 = ddx(-5x)■A constant factor stays in front of the derivative, (k*u)' = k*u': ddx(-5x) = -5
2x -5
4) Let's evaluate the resulting derivative (p1q2)': (2x + 3)·(x2 -5x + 6) -(x2 + 3x -2)·(2x -5)(x2 -5x + 6)2
ⓘ Expand by multiplying each term inside the parentheses: (2x + 3)·(x2 -5x + 6) = 2xx2 + 2·x·(-5)·x + 2x·6 + 3x2 + 3·(-5)x + 3·6, -(x2 + 3x -2)·(2x -5) = -(x2·2x + x2·(-5) + 3·x·2·x + 3x·(-5) -2·2·x -2·(-5))
2xx2 + 2·x·(-5)·x + 2x·6 + 3x2 + 3·(-5)x + 3·6 -(x2·2x + x2·(-5) + 3·x·2·x + 3x·(-5) -2·2·x -2·(-5))(x2 -5x + 6)2
ⓘ Multiplying powers with the same base adds the exponents: xx2 = x3, x·x = x2■Multiplications are done before additions and subtractions. A single minus sign does not cancel out, the product of a negative number by a positive number is negative: 2·(-5) = -10, 3·(-5) = -15■Multiplications are done before additions and subtractions: 2·6 = 12, 3·6 = 18■A minus sign before a parenthesis changes the sign of each of its terms: -(x2·2x + x2·(-5) + 3·x·2·x + 3x·(-5) -2·2·x -2·(-5)) = -x2·2x -x2·(-5) -3·x·2·x -3x·(-5) + 2·2·x + 2·(-5)
2x3 -10x2 + 12x + 3x2 -15x + 18 -x2·2x -x2·(-5) -3·x·2·x -3x·(-5) + 2·2·x + 2·(-5)(x2 -5x + 6)2
ⓘ Like terms are grouped by adding their coefficients: -10x2 + 3x2 = -7x2, 12x -15x = -3x■Multiplying powers with the same base adds the exponents: x2x = x3, x·x = x2■Two minus signs cancel out: -x2·(-5) = 5x2■Multiplications are done before additions and subtractions: 3·2 = 6, 2·2 = 4■Multiplications are done before additions and subtractions. Two minus signs cancel out, the product of two negative numbers is positive: -3·(-5) = 15■Multiplications are done before additions and subtractions. A single minus sign does not cancel out, the product of a negative number by a positive number is negative: 2·(-5) = -10
2x3 -7x2 -3x + 18 + 2·(-x3) + 5x2 -6x2 + 15x + 4x -10(x2 -5x + 6)2
ⓘ The minus sign is placed in front of the product: 2·(-x3) = -2x3■The numerator and the denominator are computed before the division: 18 -10 = 8■Like terms are grouped by adding their coefficients: -7x2 + 5x2 -6x2 = -8x2, -3x + 15x + 4x = 16x
2x3 -8x2 + 16x + 8 -2x3(x2 -5x + 6)2
ⓘ Like terms are grouped by adding their coefficients: 2x3 -2x3 = 0
0 -8x2 + 16x + 8(x2 -5x + 6)2
ⓘ Adding 0 changes nothing: 0 -8x2 = -8x2
-8x2 + 16x + 8(x2 -5x + 6)2
5) Then you can continue the derivation:
ⅰ ddx(x2 + 3x -2x2 -5x + 6) = -8x2 + 16x + 8(x2 -5x + 6)2
▶Derivative:   -8x2 + 16x + 8(x2 -5x + 6)2