How do you differentiate #f(x)=(x-3)^2+(-x-4)^2# using the sum rule?

1 Answer
May 19, 2017

#d/dx[(x-3)^2+(-x-4)^2]=4x+2#

Explanation:

The sum property for differentiating states: #d/dx(f(x)+g(x))=f'(x)+g'(x)#

We are basically differentiating twice if we split up the function into two separate functions:

If we let #f(x)=(x-3)^2# we can find its derivative by applying the chain rule: #d/dxf(g(x))=f'(g(x))*g'(x)#

Here, let #f(x)=x^2# and #g(x)=x-3#

It may be helpful to create a list that shows each function along with its derivative:

#f(x)=x^2#
#f'(x)=2x# (By the power rule)
#g(x)=x-3#
#g'(x)=1#

Following up on the chain rule, we can substitute each corresponding piece into the chain rule. Thus,

#d/dxf(g(x))=f'(g(x))*g'(x)#

#d/dx[(x-3)^2]=2(x-3)*1#

#d/dx[(x-3)^2]=2(x-3)# (In simplified form)

#:.f'(x)=2(x-3)#

*Note: You may have noticed that I wrote #2# and not #2x# when I substituted for #f'#. That's because we place #(x-3)# in place of #x#, hence #2(x-3)# and not #2x(x-3)#

We can now find the derivative of #(-x-4)^2#

If we let #g(x)=(-x-4)^2# then by the same method used above:

let #g(x)=x^2# and #h(x)=-x-4#

#g(x)=x^2#
#g'(x)=2x# (By the power rule)
#h(x)=-x-3#
#h'(x)=-1#

By the chain rule:

#d/dxg(h(x))=g'(h(x))*h'(x)#

*(Modified to use #g(x)# and #h(x)# but exactly the same thing as #f(x)# and #g(x)#)

#d/dx[(-x-4)^2]=2(-x-4)*-1#

#d/dx[(-x-4)^2]=-2(-x-4)# (Simplified)

#:.g'(x)=-2(-x-4)#

Now that we have found both derivatives separately we can combine them to answer the given question:

Once again, by the sum rule: #d/dx(f(x)+g(x))=f'(x)+g'(x)#

We know that:

#f'(x)=2(x-3)#

#g'(x)=-2(-x-4)#

#:.d/dx[(x-3)^2+(-x-4)^2]=2(x-3)+(-2(-x-4))#

#:.d/dx[(x-3)^2+(-x-4)^2]=2(x-3)-2(-x-4)#

Finally, simplify by distributing and combing like terms:

#2(x-3)-2(-x-4)#

#=2x-6+2x+8#

#4x+2#

So our final answer can be expressed as:

#d/dx[(x-3)^2+(-x-4)^2]=4x+2#

It looks like a lot, but it really isn't, In essence when doing these types of problems...

  1. Spilt up the function into two different functions
  2. Find the derivative using the appropriate differentiation technique
  3. Simplify and repeat for the other function