Slowly moving forward, realizing I really didn't know anything about matrix derivatives