476 CHAPTER 22. DERIVATIVE OF A FUNCTIONS OF MANY VARIABLES

Then by the chain rule, D(f ◦g)(x)=Df (u)Dg (x) where u= g (x) as described above.Thus D(f ◦g)(x) = 2u1 u3 u2

2u1 3u22 0

0 0 2u3(1+u2

3)

 1 2x2 cos(x3) −sin(x4)

−1 0 0 2x40 0 2x3 1



=

 2u1 −u3 4u1x2 2u1 cosx3 +2u2x3 −2u1 sinx4 +2u3x4 +u22u1 −3u2

2 4u1x2 2u1 cosx3 −2u1 sinx4 +6u22x4

0 0 4 u31+u2

3x3 2 u3

1+u23

 (22.13)

where each ui is given by the above formulas. Thus ∂ z1∂x1

equals

2u1 −u3 = 2(x1 + x2

2 + sin(x3)+ cos(x4))−(x2

3 + x4)

= 2x1 +2x22 +2sinx3 +2cosx4 − x2

3 − x4.

while ∂ z2∂x4

equals

−2u1 sinx4 +6u22x4 =−2

(x1 + x2

2 + sin(x3)+ cos(x4))

sin(x4)+6(x2

4 − x1)2

x4.

If you wanted ∂z∂x2

it would be the second column of the above matrix in 22.13. Thus ∂z∂x2

equals ∂ z1∂x2∂ z2∂x2∂ z3∂x2

=

 4u1x24u1x2

0

=

 4(x1 + x2

2 + sin(x3)+ cos(x4))

x24(x1 + x2

2 + sin(x3)+ cos(x4))

x20

I hope that by now it is clear that all the information you could desire about various partialderivatives is available and it all reduces to matrix multiplication and the consideration ofentries of the matrix obtained by multiplying the two derivatives.

22.6 Exercises1. Let z = f (x1, · · · ,xn) be as given and let xi = gi (t1, · · · , tm) as given. Find ∂ z

∂ tiwhich

is indicated.

(a) z = x31 + x2, x1 = sin(t1)+ cos(t2) ,x2 = t1t2

2 . Find ∂ z∂ t1

(b) z = x1x22, x1 = t1t2

2 t3,x2 = t1t22 . Find ∂ z

∂ t1.

(c) z = x1x22, x1 = t1t2

2 t3,x2 = t1t22 . Find ∂ z

∂ t1.

(d) z = x1x22, x1 = t1t2

2 t3,x2 = t1t22 . Find ∂ z

∂ t3.

(e) z = x21x2

2, x1 = t1t22 t3,x2 = t1t2

2 . Find ∂ z∂ t2

.

(f) z = x21x2 + x2

3, x1 = t1t2,x2 = t1t2t4,x3 = sin(t3). Find ∂ z∂ t2

.

(g) z = x21x2 + x2

3, x1 = t1t2,x2 = t1t2t4,x3 = sin(t3). Find ∂ z∂ t3

.

476 CHAPTER 22. DERIVATIVE OF A FUNCTIONS OF MANY VARIABLESThen by the chain rule, D(f og) (x) =Df (u) Dg (x) where u = g (a) as described above.Thus D(f og) (x) =2uy 3 u2 1 2x2 cos(x3) —sin(x4)2u; 35 2 -1 0 0 2x4U30 0 (1403) 0 0 2x3 12u,;—uz 4uyx2 2u,cosx3+2u2x3 —2uy sinxg + 2u3x4 4+ U2=| 2uj—3u5 4uyx 2uy cos.x3 —2uy sinx4 + 6u5x4 (22.13)0 0 4 i 3X3 23,+u3 1+u3where each u; is given by the above formulas. Thus $a. equalsQuj—uz = 2 (x, +23 +sin (x3) +008 (x4)) — (43 +4)= 2x; + 2x5 +2sinx3 +2cosx4 x5 — x4.ar)while ie equals—2uy sinx4 + 6u5x4 = —2 (x1 +x5 + sin (x3) +cos (x4)) sin (x4) +6 (x3 — x1)" x4.If you wanted $2 it would be the second column of the above matrix in 22.13. Thus geequalsozOx 4uxo 4 (x1 +x5 + sin (x3) + cos (x4)) x2$2 =| 4ujx. | =| 4(x1 +23 +sin (x3) +008 (x4)) x2023 0 0OxI hope that by now it is clear that all the information you could desire about various partialderivatives is available and it all reduces to matrix multiplication and the consideration ofentries of the matrix obtained by multiplying the two derivatives.22.6 Exercises1. Let z= f (x1,--+ ,Xn) be as given and let x; = g;(t,--- ,tm) as given. Find ge whichis indicated.(a) <=x) +22, x1 = sin(t)) + cos (t2) ,x2 = tt}. Find 5(b) z= 145, x1 = NtZt3,x2 = ttj. Find ie(c) 2= 4195, 21 = H5t3,42 = nt. Find i(d) 2= 4133, 1 = H3t3,x2 = ttf. Find(e) ¢=22%3, x1 = 103t3,x9 = 1113. Find 2.(f) 2 = x7x2 +43, 21 = N12, x2 = Nhota,.x3 = sin (5). Find ia(g) z = xix) +3, X, =tto,X2 = tyfot4,x3 = sin (t3). Find 2.