Anyhow, I'm just a computer science student and these pages look a bit over the top of my head (they explain it a bit more complex than I'm used to), although I did see chain rule and change of variables myself. Just like QED, I'm kinda confused about what your exact question was because I think you are confusing something.