miniradman said:
Ok mate, you've lost meIf:
\int \frac{1}{q-y}dy
Let
u = q-y
then
\int \frac{1}{u}dy right?
So why doesn't...
d = lnu y
because \int dy = y and \int\frac{1}{u} = ln u ?
Where is my mistake?
You can't integrate u with respect to y like that. You have to also substitute out the dy so that it is in terms of du. When you do this substitution, it introduces the negative sign.
When you solve for this substitution, you write
u = f(y)
\frac{du}{dy} = f'(y)
Now, at this point, it is important to note we are treating du/dy like division of two regular variables. In the case where f'(y) is simply a constant (here, it is -1), it is simplest to just multiply dy over and divide the constant over, resulting in
dy = \frac{du}{f'(y)}= \frac{du}{-1} = -du
We then replace the "dy" in the original equation with "-du" since we established this equivalence. You can then integrate your 1/u with respect to u, which is important.
Maybe another example will help you see the process:
\int xe^{x^2} dx
So the trick with u substitution is you can take out an entire f'(x)dx and replace it with a single du.
Let
u = x^2
\frac{du}{dx} = 2x \rightarrow du = 2xdx
We then proceed with the substitution. Let's do it slowly so you can see each effect separately. Let's put in the u first:
\int e^u xdx
Now, if only there were a 2 in there, the 2xdx would equal du. We can do the good old fashioned constant/constant = 1 trick:
\int e^u \frac{2}{2}xdx = \frac{1}{2} \int e^u 2xdx
We now see we have the 2xdx = du. Let's replace that now
\frac{1}{2}\int e^u du = \frac{1}{2} e^u
Finally, we replace u = x^2. That is our original substitution.
\int xe^{x^2} dx=\frac{1}{2} e^{x^2}
As an exercise, you could try differentiating that final equation to see it equals the original integrand.
Maybe you could try (using u substitution)
\int \frac{x^2}{x^3-1}dx