Quotient rule

The quotient rule is an important concept in calculus used to compute the derivative of the quotient (division) of two functions. If you have two functions, f(x)f(x) and g(x)g(x), the quotient rule helps you find the derivative of their quotient

h(x)=f(x)g(xh(x) = \frac{f(x)}{g(x}

with respect to xx. Mathematically, the quotient rule states that:

h(x)=f(x)g(x)f(x)g(x)f(x)2h'(x) = \frac{f'(x)g(x) - f(x)g'(x)}{f(x)^2}

where h(x)h'(x) is the derivative of h(x)h(x) with respect to xx, f(x)f'(x) is the derivative of f(x)f(x) with respect to xx, and g(x)g'(x) is the derivative of g(x)g(x) with respect to xx.

Examples

Example: Find the derivative of the quotient function h(x)=x2+13x4h(x) = \frac{x^2 + 1}{3x - 4} with respect to xx.

  1. Define the functions f(x)f(x) and g(x)g(x):
f(x)=x2+1g(x)=3x4\begin{aligned} f(x) &= x^2 + 1 \\ g(x) &= 3x - 4 \end{aligned}
  1. Compute the derivatives:
f(x)=2xg(x)=3\begin{aligned} f'(x) &= 2x \\ g'(x) &= 3 \end{aligned}
  1. Apply the quotient rule:
h(x)=f(x)g(x)f(x)g(x)f(x)2=2x(3x4)3(x2+1)(3x4)2=3x28x39x224x+16\begin{aligned} h'(x) &= \frac{f'(x)g(x) - f(x)g'(x)}{f(x)^2} \\ &= \frac{2x(3x - 4) - 3(x^2 + 1)}{(3x - 4)^2} \\ &= \frac{3x^2 - 8x - 3}{9x^2 - 24x + 16} \end{aligned}

In Sympy this looks like:

import sympy

x = sympy.symbols("x")

u_x = x**2 + 1
v_x = 3 * x - 4

u_prime = sympy.diff(u_x, x)
v_prime = sympy.diff(v_x, x)

w_prime = (u_prime * v_x - u_x * v_prime) / v_x**2

sympy.simplify(w_prime)

Tags: Mathematics