Questions tagged [chain-rule]

For questions involving the chain rule in analysis. The chain rule is a special rule to differentiate a composition (chain) of several functions. In single-variable calculus, we found that one of the most useful differentiation rules is the chain rule, which allows us to find the derivative of the composition of two functions. The same thing is true for multivariable calculus, but this time we have to deal with more than one form of the chain rule.

The chain rule provides us a technique for finding the derivative of composite functions, with the number of functions that make up the composition determining how many differentiation steps are necessary.

In one-dimensional case takes the simplest form as $$f(g(x))'=f'(g(x))g'(x)$$ where both $f(x)$ and $g(x)$ are functions of one variable.

${}$

CHAIN RULE FOR ONE INDEPENDENT VARIABLE: Suppose that $x=g(t)$ and $y=h(t)$ are differentiable functions of $t$ and $z=f(x,y)$ is a differentiable function of $x$ and $y$ . Then $z=f(x(t),y(t))$ is a differentiable function of $t$ and

$$\frac{dz}{dt}=\frac{∂z}{∂x}\cdot \frac{dx}{dt}+\frac{∂z}{∂y}\cdot \frac{dy}{dt}$$ where the ordinary derivatives are evaluated at $t$ and the partial derivatives are evaluated at $(x,y)$ .

${}$

CHAIN RULE FOR TWO INDEPENDENT VARIABLE: Suppose $x=g(u,v)$ and $y=h(u,v)$ are differentiable functions of $u$ and $ v$ , and $z=f(x,y)$ is a differentiable function of $x$ and $y$ . Then, $z=f(g(u,v),h(u,v))$ is a differentiable function of $u$ and $v$ , and

$$\frac{∂z}{∂u}=\frac{∂z}{∂x}\cdot \frac{∂x}{∂u}+\frac{∂z}{∂y}\cdot \frac{∂y}{∂u}$$ and $$\frac{∂z}{∂v}=\frac{∂z}{∂x}\cdot \frac{∂x}{∂v}+\frac{∂z}{∂y}\cdot \frac{∂y}{∂v}$$

${}$

The Generalized Chain Rule: Let $w=f(x_1,x_2,…,x_m)$ be a differentiable function of $m$ independent variables, and for each $i∈1,…,m,$ let $x_i=x_i(t_1,t_2,…,t_n)$ be a differentiable function of $n$ independent variables. Then $$\frac{∂w}{∂t_j}=\frac{∂w}{∂x_1}\cdot \frac{∂x_1}{∂t_j}+\frac{∂w}{∂x_2}\cdot \frac{∂x_2}{∂t_j}+\cdots+\frac{∂w}{∂x_m}\cdot \frac{∂x_m}{∂t_j}$$ for any $j∈1,2,…,n$.


You can use and tags for multidimensional cases.

References:

https://en.wikipedia.org/wiki/Chain_rule

1582 questions
0
votes
1 answer

Can some one explain how he derived the chain rule?

I have been reading this: https://thenumb.at/Autodiff/ And I am stuck at the Chain rule part. The definitions: I have highlighted in read the terms I don't understand below: If you scroll up just a few lines it says this: "h" and "f" are exactly…
ATest
  • 13
0
votes
3 answers

Chain rule used to simplify partial derivatives

This is an integral in my lecture and they said that the chain rule is used here to produce the second equation. I understand the chain rule with single variables however I am baffled here and how the chain rule applies to multivariable equations…
0
votes
1 answer

How do I use the chain rule here?

I have this problem, where the function is to derived with respect to $\theta$ $$f(\theta) = \frac{1}{2} (y-N(x, \theta))^2 $$ I know that I am supposed to use the chain rule here, but I am still a little confused. How can $h(x)' = g(x)*g(x)'$ be of…
0
votes
1 answer

Differentiating a multi-variable identity

Consider the following: $$ x( r(x,y ) , \theta(x,y) ) = x$$ At 31:18 of this video lecture by Pavel Grinfeld, He says to differentiate both sides with $'x'$ (*) but what kind of derivative with $'x'$ are we doing? The partial or the regular? Also…
0
votes
0 answers

Chain rule explanation

I have a function $f: \mathbb{R}^{n} \rightarrow \mathbb{R}$ and a function $\phi: \mathbb{R}^{n-1} \rightarrow \mathbb{R}$ $f$ is defined as $f(x_1,...,x_n) = f(x_{1},...x_{i-1},\phi_{i}(x_{1},...,x_{i-1},x_{i+1},...,x_{n}),x_{i+1},...,x_{n})$ and…
GoodWilly
  • 905
0
votes
1 answer

Getting two different results when differentiating a function

Let $F : T \mapsto S e^{\int_0^T{\mu \left(t\right)\mathrm{d}t}}$, $S \in \mathbb{R}_+^*$, and define $y \left(T\right) = \ln \left(\frac{K}{F_T}\right)$, where again $K \in \mathbb{R}_+^*$. Note that this implies $K = F_T e^y = S e^{\int_0^T{\mu…
siou0107
  • 107
0
votes
1 answer

Cross product and Jacobian

How does one obtain the Eq(1)? Why is there a cross product on the right side?
danny
  • 906
0
votes
0 answers

compute dz[1] applying chain rule

In Andrew Ng course, we need to compute dz1 in a NN with 2 hidden layers. So why we don't compute da[2] in order to properly do the chain rule/back-propagation? why this is correct ? $\frac{(dL)}{(dz[1])} = \frac{(dL)}{(dz[2])} *…
0
votes
1 answer

Derivatives, chain rules, and inverse functions

Here is a simple question. Let $y=f(x)$ and $z=g(x)$ are two well behaved functions of $x$. How can I calculate the derivative $\frac{dy}{dz}$? Related question is about 2-variable functions $y=f(x_1,x_2)$ and $z=g(x_1,x_2)$. The question is how to…
0
votes
1 answer

Derivative of f(x,y) with respect to g(x,y)

In this question Derivative of a function with respect to another function. the chain rule is stated in order to take derivative of single variable function with respect to a function of the same single variable. What is the generalization of this…
0
votes
2 answers

Chain rule derivatives

When you use the chain rule to equate $$\frac{dv}{dt}=\frac{dv}{dx}\frac{dx}{dt}$$ If $\frac{dv}{dt}$ is a function of $x$, are the resulting two derivatives functions of x, as well? Thanks!
user590954
0
votes
2 answers

How many different forms of the chain rule are there?

The only examples I can think of so far are: 1. If $y=[f(x)]^n$, then $\frac{dy}{dx}=n[f(x)]^{n-1}f'(x)$ 2. If $y=f[g(x)]$, then $\frac{dy}{dx}=f'[g(x)]g'(x)$ 3. $\frac{dy}{dx}=\frac{dy}{dz}\cdot\frac{dz}{dx}$ 4.…
0
votes
0 answers

Use of chain rule

How do I use the chain rule to determine the following? $$\frac{d}{dx}sin(x+c)$$ $$\frac{\partial}{\partial x}sin(x+c)$$
0
votes
1 answer

Partial derivative of a functional

I have a functional W[V(x,y)], so what is the partial derivative $\partial W/\partial x$? Thanks in advance.
JoJo
  • 13
0
votes
3 answers

Chain Rule - What have I done wrong?

I'm having trouble with what I have done wrong with the chain rule below. I have tried to show my working as much as possible for you to better understand my issue here. So: Find $dy/dx$ for $y=(x^2-x)^3$ So power to the front will equal =…
Alex
  • 179