I am trying to understand my mistake using the partial fraction method to solve $ \displaystyle\int{\frac{2x-5}{x^2-4x+4}} $.
Here's what I have so far: $$ \frac{2x+5}{x^3-4x^2+4x} = \frac{2x+5}{x(x-2)^2} = \frac{A}{x} + \frac{B}{(x-2)^2}$$
And its easy to see that $A=\displaystyle\frac{5}{4}$ and that $B=\displaystyle\frac{9}{2}$. Somehow I get a completely different result then that of my professor's. She did the following:
$$ \frac{2x+5}{x^3-4x^2+4x} = \frac{2x+5}{x(x-2)^2} = \frac{A}{x} + \frac{B}{(x-2)} + \frac{C}{(x-2)^2}$$
Can anyone please tell me where my mistake is? Thanks
You might note that your decomposition does not work: $$\tag{1}\frac{2x+5}{x(x-2)^2} \ne \frac{5/4}{\vphantom{)^2}x} + \frac{9/2}{(x-2)^2};$$ because, while there is no $x^2$ term in the numerator of the left hand side of (1), when you do the addition on the right hand side, its numerator will contain a non-zero $x^2$-term.
In fact, no decomposition of the form $$\tag{2}\frac{2x+5}{x(x-2)^2} = \frac{A}{\vphantom{)^2}x} + \frac{B}{(x-2)^2}$$ would work. If you perform the addition on the right, it is clear that $A$ must be 0 (otherwise there would be a non-zero $x^2$ term on the right); but then no value of $B$ would give the correct numerator.
You may be lead to surmise that, in order for the method at hand to succeed, one more additive rational term is needed in the right hand side of (2). The denominator of this term should be different from the others on the right hand side of (2) and "part of" the denominator on the left hand side of (2).
This leads one to consider the decomposition
$$\frac{2x+5}{x(x-2)^2} = \frac{A}{x\vphantom{)^2}}+ \frac{B}{\vphantom{)^2} x-2 } + \frac{C}{(x-2)^2};$$ which is, indeed, the correct decomposition (in particular, this decomposition allows you to obtain the correct $x^2$ term on the left (0, here) ).
The above is not meant to be rigorous, but was an attempt to illustrate why the decomposition above should contain the ${B\over x-2}$ term.
More generally, when writing the form of a partial fraction decomposition, you will want to express the given rational expression as a sum of "simpler" rational expressions in the most general way possible. The rule below (whose proof I'll leave to those with more expertise than myself) makes explicit what we mean by "the most general way possible".
Partial Fraction Decomposition
Suppose $P(x)\over Q(x)$ is a rational expression in lowest terms with ${\rm deg}\, P\!\lt\!{\rm deg}\, Q$.
To obtain the partial fraction decomposition ${P(x)\over Q(x)}=\Phi$, first set $\Phi=0$; then
Please see Paul's post for examples.