tangent of f(x)=(x+2)/(x^2-9) at x=1
Check the domain before calculating the tangent: x ∈ ℝ \ { -3, 3 }
Find the tangent at x = 1
⇥1) Let's differentiate: ddx(x + 2x2 -9)
⇥We differentiate p1 = x + 2 and q2 = x2 -9 using: ddx(p1q2) = ddx(p1)·q2 -p1·ddx(q2)q22
⇥2) Let's perform the differentiation p1: ddx(x + 2)
⇥ⓘ The derivative of a sum is the sum of the derivatives: ddx(x + 2) = 1 + 0
⇥ 1 + 0
⇥ⓘ Adding 0 changes nothing: 1 + 0 = 1
⇥ 1
⇥3) Let's differentiate q2: ddx(x2 -9)
⇥ⓘ The derivative of a sum is the sum of the derivatives: ddx(x2 -9) = ddx(x2) + 0
⇥ ddx(x2) + 0
⇥ⓘ Adding 0 changes nothing: ddx(x2) + 0 = ddx(x2)■The derivative of x^n is n*x^(n-1): ddx(x2) = 2x
⇥ 2x
⇥4) We evaluate the resulting derivative (p1q2)': 1·(x2 -9) -(x + 2)·2x(x2 -9)2
⇥ x2 -9 -(x + 2)·2x(x2 -9)2
⇥ⓘ Expand by multiplying each term inside the parentheses: (x + 2)·2 = x·2 + 4
⇥ x2 -9 -(x·2 + 4)·x(x2 -9)2
⇥ⓘ Expand by multiplying each term inside the parentheses: -(x·2 + 4)·x = -(2x2 + 4x)
⇥ x2 -9 -(2x2 + 4x)(x2 -9)2
⇥ⓘ A minus sign before a parenthesis changes the sign of each of its terms: -(2x2 + 4x) = -2x2 -4x
⇥ x2 -9 -2x2 -4x(x2 -9)2
⇥ⓘ Like terms are grouped by adding their coefficients: x2 -2x2 = -x2
⇥ -x2 -9 -4x(x2 -9)2
⇥ⓘ The minus sign is factored out, changing the sign of each term: -x2 -9 -4x = -(x2 + 9 + 4x)
⇥ -x2 + 9 + 4x(x2 -9)2
⇥5) Then you can resume the differentiation:
⇥ⅰ ddx(x + 2x2 -9) = -x2 + 9 + 4x(x2 -9)2
⇥ -x2 + 9 + 4x(x2 -9)2
⇥ -x2 + 4x + 9(x2 -9)2
Compute f(1)
⇥ 1 + 212 -9
⇥ⓘ The numerator and the denominator are computed before the division: 1 + 2 = 3, 1 -9 = -8
⇥ 3-8
⇥ⓘ The sign of a fraction goes in front of the bar, whether it comes from the numerator or the denominator: 3-8 = -38
⇥ -38
The point of tangency is (1, -38)
Compute f'(1)
⇥ -12 + 4·1 + 9(12 -9)2
⇥ⓘ Parentheses are computed first: 1 -9 = -8
⇥ -1 + 4 + 9(-8)2
⇥ⓘ The numerator and the denominator are computed before the division: 1 + 4 = 5■Powers are computed before multiplications, additions and subtractions. An integer power is a repeated product: (-8)2 = (-8)·(-8) = 64
⇥ -5 + 964
⇥ⓘ The numerator and the denominator are computed before the division: 5 + 9 = 14
⇥ -1464
⇥ⓘ We simplify the fraction by dividing the numerator and the denominator by 2, their greatest common divisor: -1464 = -7·232·2 = -732
⇥ -732
The slope is f'(1) = -732
The tangent passes through this point with this slope: y = -732·(x -1) -38
Compute the y-intercept: b = -38 + 732
⇥ -38 + 732
⇥ⓘ To add fractions, put them over the same denominator, then add the numerators. We choose 32, the least common multiple of 8 and 32. Multiplying the numerator and the denominator by the same number does not change the fraction: -38 + 732 = -3·48·4 + 732 = -3·4 + 732
⇥ -3·4 + 732
⇥ⓘ Multiplications are done before additions and subtractions: 3·4 = 12
⇥ -12 + 732
⇥ⓘ The numerator and the denominator are computed before the division: -12 + 7 = -5
⇥ -532
⇥ y = -732·x -532
⇥ⓘ Multiplying a fraction by a term multiplies its numerator: 732·x = 7x32■To add fractions, put them over the same denominator, then add the numerators: -7x32 -532 = -7x -532
⇥ y = -7x -532
ⓘ The minus sign is factored out, changing the sign of each term: -7x -5 = -(7x + 5)
▶Tangent line:   y = -7x + 532