Jacobpm64 said:
Find the derivative.
http://img65.imageshack.us/img65/232/der429bj.gif
I really don't know which way to go with this.. It's just really complicated.
A partial fraction decomposition can make this complicated problem very simple.
Let that complicated quotient be represented by y.
You can see that the denominator of y is a cubic (x)(x-1)(x-2). So y should have the form A/x + B/(x-1) + C/(x-2). We now need to find A, B and C.
Now let me introduce you to a very quick way to do that - it's called the "cover up method". This works when there are linear factors of the form (x - a) in the denominator. You simply cover up the (x - a) in the denominator and put x = a into the rest to get the numerator (A) of the A/(x-a) term.
For example, let's work out A. Cover up the denominator x in the expression for y and put x = 0 in the rest of the expression. Instantly, you get A = 2/(-2) = -1.
Similarly, you can easily get B (cover up the x-1 and put x = 1) and C (cover up x-2 and put x = 2) to be 3 and -2 respectively,
(BTW, the reason this works has to do with multiplication. When you have an expression g(x) given by \frac{g(x)}{(x-a)(x-b)(x-c)} = \frac{A}{x-a} + \frac{B}{x-b} + \frac{C}{x-c} and you multiply by one of the factors of the denominator (let's say (x-a)), you get \frac{g(x)}{(x-b)(x-c)} = A + \frac{B(x-a)}{x-b} + \frac{C(x-a)}{x-c}. You can see that if you now let x = a, everything vanishes except the A on the right hand side and \frac{g(a)}{(a-b)(a-c)} on the left hand side. So by evaluating that function on the left hand side, you've determined one coefficient very simply. Get it?)
So we know that y = -\frac{1}{x} + \frac{3}{x-1} - \frac{2}{x-2}
and so the original function f(x) = 3x +\frac{1}{x} - \frac{3}{x-1} + \frac{2}{x-2}
which you can differentiate very easily by the Chain Rule (you don't need the Quotient Rule)
f'(x) = 3 - \frac{1}{x^2} + \frac{3}{{(x-1)}^2} - \frac{2}{{(x-2)}^2}
I have to say that all this looks a little complicated, but when you get good at partial fraction decomposition, you can just write down the answer. The cover-up method is that simple. The differentiation becomes very easy because all the denominators are linear expressions with x-coefficients of one.
BTW, it's always a good idea to check your partial fraction decomposition. One way (tedious) is to multiply everything out and verify that the expressions are algebraically the same. The other quick and dirty way is to use a transcendental value for x (like pi), plug it into the calculator. If the LHS comes out the same as the RHS (within the limits of round-off error), the decomposition *has* to be right.