hmwk 4

symbolic differentiation via recursion