# Calculus 3: Chain rule

1. Jun 1, 2012

### AlonsoMcLaren

1. The problem statement, all variables and given/known data

If x=yz and y=2sin(y+z), find dx/dy

2. Relevant equations

Chain rule

3. The attempt at a solution

From y = 2sin(y+z) we get
dz/dy= (1-2cos(y+z))/(2cos(y+z))
dz/dy=((1/2)sec(y+z) - 1)

dx/dy = ∂x/∂y + ∂x/∂z dz/dy
= z + y ((1/2)sec(y+z) - 1)
= z - y - (1/2) sec(y+z)

But the answer is z-y+tan(y+z) (Mathematical methods in the physical sciences, Boas, Ch. 4 Sec 7 Problem 1)

What is going wrong?

2. Jun 1, 2012

### tiny-tim

Hi AlonsoMcLaren!
Nooo

3. Jun 1, 2012

### AlonsoMcLaren

So how to calculate dz/dy?

4. Jun 1, 2012

### tiny-tim

one line at a time, for a start!

5. Jun 1, 2012

### AlonsoMcLaren

y - 2sin(y+z) = 0

Let f=y - 2sin(y+z)
Then ∂f/∂y = 1 - 2cos(y+z)
∂f/∂z = -2cos(y+z)

0 = df = (∂f/∂y)dy+(∂f/∂z)dz
= (1-2cos(y+z)) dy - 2 cos(y+z) dz

dz/dy = (1-2cos(y+z))/(2cos(y+z))

6. Jun 1, 2012

### dimension10

First of all differentiate y=2sin(y+z) with respect to y. From chain rule, we obtain

$$1=2cos(y+z)$$

Now solve for y and then I think you can solve it.

7. Jun 1, 2012

### tiny-tim

oops!

sorry, that is right

you've just left out a y when you expanded this bracket …

8. Jun 1, 2012

### AlonsoMcLaren

Re: oops!

So how does it lead to z-y+tan(y+z)?

9. Jun 1, 2012

### tiny-tim

x/dy = ∂x/∂y + ∂x/∂z dz/dy

= z + y ((1/2)sec(y+z) - 1)

= z - y - (1/2) y sec(y+z)
= … ?