Calculus Notes: Product Rule, Quotient Rule, Higher Derivatives, Chain Rule Introduction

Derivatives: Rules and Applications

The Product Rule

  • Definition: The derivative of a product of two functions, f(x)extandg(x)f(x) ext{ and } g(x), is not the product of their derivatives. This common mistake leads to incorrect answers.

  • Formula: If h(x)=f(x)g(x)h(x) = f(x)g(x), then its derivative, usually denoted as h(x)h'(x) or (ddx)[f(x)g(x)]\left(\frac{d}{dx}\right)[f(x)g(x)], is given by:
    f(x)g(x)+f(x)g(x)f'(x)g(x) + f(x)g'(x)
    or, as stated quickly: "the first times the derivative of the second plus the second times the derivative of the first."

  • Derivation (Brief Mention): The rule is derived by adding zero (e.g., f(x+Δx)g(x)f(x+Δx)g(x)f(x+\Delta x)g(x) - f(x+\Delta x)g(x)) in the limit definition, allowing for rearrangement and factoring to produce the formula.

  • Example (Recap from previous lecture):

    • Let f(x)=x4f(x) = x^4 and g(x)=x3g(x) = x^3.

    • Their product is h(x)=x4x3=x7h(x) = x^4 \cdot x^3 = x^7.

    • The correct derivative is h(x)=7x6h'(x) = 7x^6.

    • Incorrect method: Taking the product of individual derivatives (f(x)=4x3f'(x) = 4x^3, g(x)=3x2g'(x) = 3x^2). Their product is (4x3)(3x2)=12x5(4x^3)(3x^2) = 12x^5, which is incorrect.

  • Application Example: Find the derivative of f(x)=x2cosxf(x) = x^2 \cos x.

    • Identify the first function (u=x2u = x^2) and the second function (v=cosxv = \cos x).

    • u=2xu' = 2x and v=sinxv' = -\sin x.

    • Applying the Product Rule: f(x)=uv+vuf'(x) = u \cdot v' + v \cdot u'
      f(x)=(x2)(sinx)+(cosx)(2x)f'(x) = (x^2)(-\sin x) + (\cos x)(2x)
      f(x)=x2sinx+2xcosxf'(x) = -x^2 \sin x + 2x \cos x

    • This can be rearranged as 2xcosxx2sinx2x \cos x - x^2 \sin x. An xx can also be factored out: x(2cosxxsinx)x(2 \cos x - x \sin x).

  • Extension to Three Functions: If you have a product of three functions, h(x)=f(x)g(x)k(x)h(x) = f(x)g(x)k(x), its derivative is: h(x)=f(x)g(x)k(x)+f(x)g(x)k(x)+f(x)g(x)k(x)h'(x) = f'(x)g(x)k(x) + f(x)g'(x)k(x) + f(x)g(x)k'(x) This means taking the derivative of one function while keeping the others the same, and summing these combinations.

    • Example: Derivative of x2sinxcosxx^2 \sin x \cos x

      • Derivative of x2x^2 (other two same): (2x)(sinx)(cosx)(2x)(\sin x)(\cos x)

      • Derivative of sinx\sin x (other two same): (x2)(cosx)(cosx)=x2cos2x(x^2)(\cos x)(\cos x) = x^2 \cos^2 x

      • Derivative of cosx\cos x (other two same): (x2)(sinx)(sinx)=x2sin2x(x^2)(\sin x)(-\sin x) = -x^2 \sin^2 x

      • Combined: 2xsinxcosx+x2cos2xx2sin2x2x \sin x \cos x + x^2 \cos^2 x - x^2 \sin^2 x

The Quotient Rule

  • Definition: Used to find the derivative of a function that is the ratio of two other functions, f(x)/g(x)f(x)/g(x).

  • Formula: If h(x)=f(x)g(x)h(x) = \frac{f(x)}{g(x)}, then its derivative, h(x)h'(x) or (ddx)[f(x)g(x)]\left(\frac{d}{dx}\right)\left[\frac{f(x)}{g(x)}\right], is: g(x)f(x)f(x)g(x)(g(x))2\frac{g(x)f'(x) - f(x)g'(x)}{(g(x))^2}

    • Important: Subtraction is not commutative, so the order in the numerator matters. Getting it wrong will result in an incorrect sign.

    • The rule requires that g(x)0g(x) \neq 0.

  • Mnemonic: "Low d High minus High d Low over the square of what's below." (Where 'low' refers to the denominator and 'high' to the numerator, and 'd' signifies 'derivative of'). Or simpler: "Low d High minus High d Low over Low squared."

  • Application Example 1: Derivative of tanx\tan x

    • Recall that tanx=sinxcosx\tan x = \frac{\sin x}{ \cos x} (i.e., f(x)=sinxf(x) = \sin x, g(x)=cosxg(x) = \cos x).

    • f(x)=cosxf'(x) = \cos x and g(x)=sinxg'(x) = -\sin x.

    • Applying the Quotient Rule:
      (cosx)(cosx)(sinx)(sinx)(cosx)2=cos2x+sin2xcos2x\frac{(\cos x)(\cos x) - (\sin x)(-\sin x)}{(\cos x)^2} = \frac{\cos^2 x + \sin^2 x}{\cos^2 x}

    • Using the Pythagorean identity cos2x+sin2x=1\cos^2 x + \sin^2 x = 1:
      1cos2x=sec2x\frac{1}{\cos^2 x} = \sec^2 x

    • Thus, the derivative of tanx\tan x is sec2x\sec^2 x.

  • Application Example 2: Derivative of 1/x1/x

    • Let f(x)=1f(x) = 1 and g(x)=xg(x) = x.

    • f(x)=0f'(x) = 0 and g(x)=1g'(x) = 1.

    • Applying the Quotient Rule:
      (x)(0)(1)(1)(x)2=01x2=1x2\frac{(x)(0) - (1)(1)}{(x)^2} = \frac{0 - 1}{x^2} = -\frac{1}{x^2}

    • This matches the Power Rule result for x1x^{-1} (i.e., 1x2=1/x2-1x^{-2} = -1/x^2).

  • Application Example 3: Derivative of 5x2x2+1\frac{5x-2}{x^2+1}

    • f(x)=5x2    f(x)=5f(x) = 5x-2 \implies f'(x) = 5

    • g(x)=x2+1    g(x)=2xg(x) = x^2+1 \implies g'(x) = 2x

    • Quotient Rule: (x2+1)(5)(5x2)(2x)(x2+1)2\frac{(x^2+1)(5) - (5x-2)(2x)}{(x^2+1)^2}

    • Simplify numerator: 5x2+5(10x24x)=5x2+510x2+4x=5x2+4x+55x^2+5 - (10x^2-4x) = 5x^2+5 - 10x^2+4x = -5x^2+4x+5

    • Result: 5x2+4x+5(x2+1)2\frac{-5x^2+4x+5}{(x^2+1)^2}

Derivatives of Trigonometric Functions

  • Previously established: ddx(sinx)=cosx\frac{d}{dx}(\sin x) = \cos x and ddx(cosx)=sinx\frac{d}{dx}(\cos x) = -\sin x.

  • Derived: ddx(tanx)=sec2x\frac{d}{dx}(\tan x) = \sec^2 x.

  • Other Trigonometric Derivatives:

    • ddx(cotx)=csc2x\frac{d}{dx}(\cot x) = -\csc^2 x

    • ddx(secx)=secxtanx\frac{d}{dx}(\sec x) = \sec x \tan x

    • ddx(cscx)=cscxcotx\frac{d}{dx}(\csc x) = -\csc x \cot x

  • Pattern: Derivatives of 'co-functions' (cosine, cotangent, cosecant) typically include a negative sign. For example, ddx(cosx)=sinx\frac{d}{dx}(\cos x) = -\sin x and ddx(cotx)=csc2x\frac{d}{dx}(\cot x) = -\csc^2 x.

Higher-Order Derivatives

  • Concept: When you take the derivative of a function, you get another function. You can then take the derivative of that new function, and so on. This process generates higher-order derivatives.

  • Notation:

    • First derivative: f(x)f'(x), yy', dydx\frac{dy}{dx}, ddx[f(x)]\frac{d}{dx}[f(x)]

    • Second derivative: f(x)f''(x), yy'', d2ydx2\frac{d^2y}{dx^2}, d2dx2[f(x)]\frac{d^2}{dx^2}[f(x)]

    • Third derivative: f(x)f'''(x), yy''', d3ydx3\frac{d^3y}{dx^3}, d3dx3[f(x)]\frac{d^3}{dx^3}[f(x)]

    • Nth derivative (for n4n \ge 4): Using numbers in parentheses to avoid messy primes: f(n)(x)f^{(n)}(x), y(n)y^{(n)}, dnydxn\frac{d^ny}{dx^n} (or Roman numerals for lower orders, e.g., y(iv)y^{(iv)}).

  • Example with sinx\sin x:

    • f(x)=sinxf(x) = \sin x

    • f(x)=cosxf'(x) = \cos x

    • f(x)=sinxf''(x) = -\sin x

    • f(x)=cosxf'''(x) = -\cos x

    • f(4)(x)=sinxf^{(4)}(x) = \sin x

    • The pattern repeats every four derivatives. This illustrates that f(x)=f(x)f''(x) = -f(x) for sine and cosine functions.

  • Physical Applications: Higher-order derivatives are crucial in physics and engineering:

    • If s(t)s(t) is the position function of an object:

      • s(t)=v(t)s'(t) = v(t), which is the velocity function.

      • s(t)=v(t)=a(t)s''(t) = v'(t) = a(t), which is the acceleration function. Acceleration is the rate of change of velocity.

      • For a falling object under constant gravity (like on Earth or the Moon), acceleration is constant (e.g., a(t)=9.8 m/s2a(t) = -9.8 \text{ m/s}^2 on Earth, 1.62 m/s2-1.62 \text{ m/s}^2 on the Moon).

    • Most physical applications rarely require derivatives beyond the second order.

    • Higher-order derivatives (third, fourth, etc.) are sometimes used in numerical analysis for understanding error in approximations.

Review: Evaluating Limits by Factoring Polynomials (When 0/00/0 Indeterminate Form)

  • Rule: If substituting the limit value into a rational function (a ratio of polynomials) results in the indeterminate form 00\frac{0}{0}, it indicates that further work (e.g., factoring) is needed to find the limit.

  • Key Fact: If a polynomial P(x)P(x) evaluates to 0 when x=cx=c (i.e., P(c)=0P(c)=0), then (xc)(x-c) is a factor of P(x)P(x).

  • Strategy: For 00\frac{0}{0} forms with polynomials:

    1. Confirm the 00\frac{0}{0} form by plugging in the limit value.

    2. Factor out the common factor (xc)(x-c) (where cc is the limit value) from both the numerator and the denominator.

      • For quadratics, this is straightforward.

      • For cubics or higher-degree polynomials, if you know (xc)(x-c) is a factor, you can use:

        • Reasoning/Inspection: For x3+3x4x^3+3x-4 as x1x \to 1, we know (x1)(x-1) is a factor. We need (x1)(ax2+bx+d)(x-1)(ax^2+bx+d). Matching coefficients:

          • xax2=x3    a=1x \cdot ax^2 = x^3 \implies a=1.

          • 1d=4    d=4-1 \cdot d = -4 \implies d=4.

          • Now we have (x1)(x2+bx+4)(x-1)(x^2+bx+4). Expand: x3+bx2+4xx2bx4=x3+(b1)x2+(4b)x4x^3+bx^2+4x-x^2-bx-4 = x^3+(b-1)x^2+(4-b)x-4.

          • Comparing with x3+3x4x^3+3x-4, we need (b1)x2=0x2    b=1(b-1)x^2 = 0x^2 \implies b=1. Also, (4b)x=3x    41=3(4-b)x = 3x \implies 4-1 = 3, which means b=1b=1 works.

          • So, x3+3x4=(x1)(x2+x+4)x^3+3x-4 = (x-1)(x^2+x+4).

        • Polynomial Long Division: Divide the polynomial by (xc)(x-c).

    3. Cancel out the common factor (xc)(x-c). (This is valid because xcx \neq c in the limit approaching cc).

    4. Plug the limit value into the simplified expression to find the limit.

  • Example 1: Find the limit as x1x \to 1 of x2+5x6x23x+2\frac{x^2+5x-6}{x^2-3x+2}.

    • Plugging in x=1x=1 gives 1+5613+2=00\frac{1+5-6}{1-3+2} = \frac{0}{0}. Do more work.

    • Factor: Numerator (x1)(x+6)(x-1)(x+6); Denominator (x1)(x2)(x-1)(x-2).

    • Expression becomes (x1)(x+6)(x1)(x2)\frac{(x-1)(x+6)}{(x-1)(x-2)}.

    • Cancel (x1)(x-1): x+6x2\frac{x+6}{x-2}.

    • Plug in x=1x=1: 1+612=71=7\frac{1+6}{1-2} = \frac{7}{-1} = -7.

  • Example 2: Find the limit as x1x \to 1 of x3+3x4x2+4x5\frac{x^3+3x-4}{x^2+4x-5}.

    • Plugging in x=1x=1 gives 1+341+45=00\frac{1+3-4}{1+4-5} = \frac{0}{0}. Do more work.

    • Factor: Denominator (x1)(x+5)(x-1)(x+5).

    • Factor Numerator (as shown above): (x1)(x2+x+4)(x-1)(x^2+x+4).

    • Expression becomes (x1)(x2+x+4)(x1)(x+5)\frac{(x-1)(x^2+x+4)}{(x-1)(x+5)}.

    • Cancel (x1)(x-1): x2+x+4x+5\frac{x^2+x+4}{x+5}.

    • Plug in x=1x=1: 12+1+41+5=66=1\frac{1^2+1+4}{1+5} = \frac{6}{6} = 1.

  • DNE (Does Not Exist) Cases: If you get number0\frac{\text{number}}{0} (where the number is non-zero) after simplification, the limit DNE.

The Chain Rule (Introduction)

  • Concept: Used to find the derivative of a composite function, i.e., a function within a function.

  • Formula: If y=f(g(x))y = f(g(x)) (read as "f of g of x"), then its derivative is: y=f(g(x))g(x)y' = f'(g(x)) \cdot g'(x)

    • In simpler terms: "Take the derivative of the 'whole thing' (the outer function with the inner function unchanged), and then multiply by the derivative of the 'inside' (the inner function)."

  • Application Example: Find the derivative of f(x)=(x3+1)2f(x) = (x^3+1)^2.

    • Identify the outer function: fouter(u)=u2f_{outer}(u) = u^2 (where u=x3+1u = x^3+1).

    • Identify the inner function: g(x)=x3+1g(x) = x^3+1.

    • Derivative of the outer function with inner function unchanged: fouter(u)=2uf'_{outer}(u) = 2u, so 2(x3+1)2(x^3+1).

    • Derivative of the inner function: g(x)=3x2g'(x) = 3x^2.

    • Applying Chain Rule: f(x)=2(x3+1)(3x2)=6x2(x3+1)f'(x) = 2(x^3+1) \cdot (3x^2) = 6x^2(x^3+1).

  • Verification by Expansion: Expand f(x)=(x3+1)2=x6+2x3+1f(x) = (x^3+1)^2 = x^6 + 2x^3 + 1.

    • Take the derivative: f(x)=6x5+6x2+0=6x5+6x2f'(x) = 6x^5 + 6x^2 + 0 = 6x^5 + 6x^2.

    • Expanding the Chain Rule result: 6x2(x3+1)=6x5+6x26x^2(x^3+1) = 6x^5 + 6x^2.

    • The results match, confirming the Chain Rule.

  • Multiple Links: For more complex nested functions (e.g., f(g(h(x)))f(g(h(x)))), the chain rule can be applied successively (e.g., f(g(h(x)))g(h(x))h(x)f'(g(h(x))) \cdot g'(h(x)) \cdot h'(x)).

Test Preparation Notes

  • Test 1: Scheduled for September 30th.

  • Content Distribution: The test will likely feature an equal distribution of topics covered.

    • Two problems will be high-value with multiple sub-parts.

    • One page (approx. 6 questions) will focus on limits, including problems like the factoring examples discussed.

    • Another page (approx. 3 questions) will involve various derivative calculations.

    • One question on the definition of a derivative.

    • One question on continuity.

    • Problem 2 will be on pre-calculus topics (inequalities: absolute value, quadratic).

    • Problem 1 will cover implicit differentiation, which will be introduced closer to the test date (e.g., this coming Friday).

    • The test covers precalculus, limits, and derivatives in order, concluding with an application-oriented problem.