question about differentiation
The problem was (x+1/x)^2
I solved it: = (x+x^-1)^2
using udv +vdu
=2(x+x^-1) (1-x^-2)
=(2)(x+1/x)(1-1/x^2)
This is the correct answer per my book.
Here’s my question: If I multiply it out and take the derivative I get a different answer:
(x+x^-1)^2 = (x+x^-1) (x+x^-1) = X^2 + 2x^0 + x^-2
= (2x) (1-x^-2)
I can’t seem to get it in to the same form as the given correct answer. Is it my algebra, or is it not a valid approach to multiply it out first and take the derivative? Thanks