Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте The Chain Rule in Multiple Variables | Section
Understanding Multivariate Calculus
Секція 1. Розділ 6
single

single

bookThe Chain Rule in Multiple Variables

Свайпніть щоб показати меню

When working with functions of several variables, you often encounter situations where variables themselves depend on other variables. The chain rule allows you to differentiate composite functions by systematically accounting for how changes in one variable affect others. Suppose you have a function f(x,y)f(x, y) where both xx and yy are themselves functions of tt, such as x=g(t)x = g(t) and y=h(t)y = h(t). The composite function is then F(t)=f(g(t),h(t))F(t) = f(g(t), h(t)). To find the derivative of FF with respect to tt, you apply the multivariate chain rule:

dFdt=fxdxdt+fydydt\frac{dF}{dt} = \frac{\partial f}{\partial x} \frac{dx}{dt} + \frac{\partial f}{\partial y} \frac{dy}{dt}

This formula means you take the partial derivative of ff with respect to each variable, then multiply by the derivative of that variable with respect to tt, and sum the results. This approach generalizes to functions with more variables and more layers of composition.

For example, if f(x,y)=x2+y2f(x, y) = x^2 + y^2, x=sin(t)x = \sin(t), and y=ety = e^t, you can compute the derivative of F(t)=f(x(t),y(t))F(t) = f(x(t), y(t)) by first finding the partial derivatives of ff, then the derivatives of xx and yy with respect to tt, and combining them using the chain rule as shown above. This process is fundamental in multivariate calculus, especially when modeling systems where several quantities depend on each other.

1234567891011121314151617181920212223242526272829303132
import sympy as sp # 1. Define symbols x, y, t = sp.symbols('x y t') # 2. Define the outer function and inner functions F = x**2 + y**2 x_t = sp.sin(t) y_t = sp.exp(t) # 3. Compute partial derivatives of F dF_dx = sp.diff(F, x) dF_dy = sp.diff(F, y) # 4. Compute derivatives of inner functions with respect to t dx_dt = sp.diff(x_t, t) dy_dt = sp.diff(y_t, t) # 5. Apply the multivariable chain rule explicitly # dF/dt = (dF/dx * dx/dt) + (dF/dy * dy/dt) # We must substitute x and y with their functions of t before multiplying partial_x_term = dF_dx.subs(x, x_t) * dx_dt partial_y_term = dF_dy.subs(y, y_t) * dy_dt dF_dt = partial_x_term + partial_y_term # 6. Evaluate at a specific point (e.g., t = 0) t0 = 0 result = float(dF_dt.subs(t, t0)) print("Symbolic derivative dF/dt:", dF_dt) print("The derivative dF/dt at t = 0 is:", result)
copy
Завдання

Проведіть, щоб почати кодувати

Apply the multivariable chain rule to compute the total derivative dFdt\frac{dF}{dt} of the composite function F(x,y)=x3+y3F(x, y) = x^3 + y^3, where x(t)=cos(t)x(t) = \cos(t) and y(t)=ln(t+2)y(t) = \ln(t + 2).

  • Define the partial derivative Fx\frac{\partial F}{\partial x} utilizing the x_val variable.
  • Define the partial derivative Fy\frac{\partial F}{\partial y} utilizing the y_val variable.
  • Compute the time derivative dxdt\frac{dx}{dt} utilizing the numpy sine function.
  • Compute the time derivative dydt\frac{dy}{dt} utilizing the t variable.
  • Assemble the chain rule components into the dF_dt variable utilizing the previously calculated partial and time derivatives.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 6
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

some-alt