Suppose we have a vector valued mapping Ai(x)=Bi(C(x)) and we want to find its derivative with respect to xi. We do this by applying chain rule, but first a little bit about the notation. The superscript denotes that A is a column vector, and the little equality above simply says that the ith element of A is equal to the ith element of B. Now, we want to take the derivative with respect to x, which is also a column vector. The standard notation for this is
∂xjAi(x)=Ai,j.
Now, on to chain rule. We drop the arguments of the functions, since they are unambiguous. Then, we write:
Ai,j=Bi,kCk,lxl,j=Bi,kCk,lδlj=Bi,kCk,j.
And that's it! Now you know how to do chain rule, so taking derivatives and calculating them in [insert favorite programming language here] should be a piece of cake!
p.s. I might have been a little bit sloppy in my terminology and notation, but I am open to suggestions.
p.p.s. I have enabled LATEX in my posts and comments. Feel free to give it a try!
This is a test to see if LATEX actually works in comments or not
ReplyDelete