Find the derivative of the following functions from first principle: (i) -x (ii) (-x)^-1 (iii) sin(x+1) (iv) cos(x-pi/8).
Hint. Set up the first-principles difference quotient for each; for (iii) and (iv), use the compound-angle sine/cosine subtraction identities.
(i) f(x+h)-f(x)=-(x+h)-(-x)=-h. Dividing by h and taking the limit: -1. (ii) f(x)=-1/x. f(x+h)-f(x) = -1/(x+h)+1/x = [-(x)+(x+h)]/[x(x+h)] = h/[x(x+h)]. Dividing by h and taking h->0: 1/x^2. (iii) sin(x+h+1)-sin(x+1) = 2cos(x+1+h/2)sin(h/2), using the same technique as the book's own derivative of sin x; dividing by h and taking the limit gives cos(x+1). (iv) By the same method as cos x's derivative, shifting the angle by -pi/8: -sin(x-pi/8).
✦ Working through each part gives: (i) -1 (ii) 1/x^2 (iii) cos(x+1) (iv) -sin(x-pi/8).
