Euge said:
Hi Olok,
I did give a hint that doing the problem via differentiation under the integral sign will be challenging :)
I don't see what you mean when you suggest that the approach I'm using differs from a partial fraction approach. Using partial fractions just by itself is not enough to find $J(a)$, but I already used partial fractions in my answer. Namely,
$\displaystyle \frac{1}{(u + 1)(u^2 + a^2)} = \frac{1}{a^2 + 1}\left(\frac{1}{u + 1} - \frac{u - 1}{u^2 + a^2}\right) $.
You can check to see if this is right by combining the fractions on the right-hand side to get the fraction on the left-hand side. This should also answer your question about the step you're confused about.
The answer you have is incorrect. There are two main errors. One of the errors you made is forgetting to calculate the third integral,
$displaystyle \int_0^1 \frac{a}{(1 + a^2)(ax +
1)}\, dx$.
The second error is assuming that $J'(1)$ is the answer, rather than $J(1)$.
Thank you, I can't believe I forgot the third integral, I shall calculate that now.
$$\int_{0}^{1} \frac{a}{(a^2+1)(ax+1)} \,dx$$
$$\frac{a}{a^2+1}$$ is just a constant, we can take that out.
$$ = \frac{a}{a^2+1}\int_{0}^{1}\frac{1}{ax+1} \,dx $$
$$ Let. u = ax+1 $$
$$du = a dx \implies dx = \frac{du}{a}$$
$$ = \frac{1}{(a^2+1)}\cdot\int_{0}^{1}\frac{1}{u} \,du $$
$$ = \frac{1}{(a^2+1)}\cdot \ln\left({ax+1}\right) + C_3$$
Evaluated from 0 to 1 you get
$$ = \frac{1}{(a^2+1)}\cdot \ln\left({a+1}\right) $$
So the total integral now would be the addition of the first TWO parts and this ONE part to get:
$$ = \frac{1}{2(1 + a^2)}\ln\left({2}\right) + \frac{a}{1+a^2}(\frac{\pi}{4}) + \frac{\ln\left({a+1}\right)}{1+a^2} $$
It is important to keep in mind that this is only,
$$ J'(a) = \frac{1}{2(1 + a^2)}\ln\left({2}\right) + \frac{a}{1+a^2}(\frac{\pi}{4}) + \frac{\ln\left({a+1}\right)}{1+a^2} $$
We need to find J(1); that is the goal. So now we should integrate again.
$$ J(a) = \int \frac{1}{2(1 + a^2)}\ln\left({2}\right) + \frac{a}{1+a^2}(\frac{\pi}{4}) + \frac{\ln\left({a+1}\right)}{1+a^2} da $$
$$ = \frac{\ln\left({2}\right)}{2}\cdot\int\frac{1}{1+a^2} da + \frac{\pi}{4}\cdot\int\frac{a}{1+a^2} da + \int \frac{\ln\left({1+a}\right)}{1+a^2} da $$
$$ = \frac{\ln\left({2}\right)}{2}\cdot\arctan\left({a}\right) + \frac{\pi}{8}\cdot\ln\left({a^2+1}\right) + \int \frac{ln(1+a)}{1+a^2} da $$
The difficult part is $$\int \frac{ln(1+a)}{1+a^2} da $$
That is the issue, that doesn't have an elementary antiderivative. Any ideas?
- - - Updated - - -
Euge said:
Hi Olok,
I did give a hint that doing the problem via differentiation under the integral sign will be challenging :)
I don't see what you mean when you suggest that the approach I'm using differs from a partial fraction approach. Using partial fractions just by itself is not enough to find $J(a)$, but I already used partial fractions in my answer. Namely,
$\displaystyle \frac{1}{(u + 1)(u^2 + a^2)} = \frac{1}{a^2 + 1}\left(\frac{1}{u + 1} - \frac{u - 1}{u^2 + a^2}\right) $.
You can check to see if this is right by combining the fractions on the right-hand side to get the fraction on the left-hand side. This should also answer your question about the step you're confused about.
The answer you have is incorrect. There are two main errors. One of the errors you made is forgetting to calculate the third integral,
$displaystyle \int_0^1 \frac{a}{(1 + a^2)(ax +
1)}\, dx$.
The second error is assuming that $J'(1)$ is the answer, rather than $J(1)$.
Thank you, I can't believe I forgot the third integral, I shall calculate that now.
$$\int_{0}^{1} \frac{a}{(a^2+1)(ax+1)} \,dx$$
$$\frac{a}{a^2+1}$$ is just a constant, we can take that out.
$$ = \frac{a}{a^2+1}\int_{0}^{1}\frac{1}{ax+1} \,dx $$
$$ Let. u = ax+1 $$
$$du = a dx \implies dx = \frac{du}{a}$$
$$ = \frac{1}{(a^2+1)}\cdot\int_{0}^{1}\frac{1}{u} \,du $$
$$ = \frac{1}{(a^2+1)}\cdot \ln\left({ax+1}\right) + C_3$$
Evaluated from 0 to 1 you get
$$ = \frac{1}{(a^2+1)}\cdot \ln\left({a+1}\right) $$
So the total integral now would be the addition of the first TWO parts and this ONE part to get:
$$ = \frac{1}{2(1 + a^2)}\ln\left({2}\right) + \frac{a}{1+a^2}(\frac{\pi}{4}) + \frac{\ln\left({a+1}\right)}{1+a^2} $$
It is important to keep in mind that this is only,
$$ J'(a) = \frac{1}{2(1 + a^2)}\ln\left({2}\right) + \frac{a}{1+a^2}(\frac{\pi}{4}) + \frac{\ln\left({a+1}\right)}{1+a^2} $$
We need to find J(1); that is the goal. So now we should integrate again.
$$ J(a) = \int \frac{1}{2(1 + a^2)}\ln\left({2}\right) + \frac{a}{1+a^2}(\frac{\pi}{4}) + \frac{\ln\left({a+1}\right)}{1+a^2} da $$
$$ = \frac{\ln\left({2}\right)}{2}\cdot\int\frac{1}{1+a^2} da + \frac{\pi}{4}\cdot\int\frac{a}{1+a^2} da + \int \frac{\ln\left({1+a}\right)}{1+a^2} da $$
$$ = \frac{\ln\left({2}\right)}{2}\cdot\arctan\left({a}\right) + \frac{\pi}{8}\cdot\ln\left({a^2+1}\right) + \int \frac{ln(1+a)}{1+a^2} da $$
The difficult part is $$\int \frac{ln(1+a)}{1+a^2} da $$
That is the issue, that doesn't have an elementary antiderivative. Any ideas?
- - - Updated - - -
Euge said:
Hi Olok,
I did give a hint that doing the problem via differentiation under the integral sign will be challenging :)
I don't see what you mean when you suggest that the approach I'm using differs from a partial fraction approach. Using partial fractions just by itself is not enough to find $J(a)$, but I already used partial fractions in my answer. Namely,
$\displaystyle \frac{1}{(u + 1)(u^2 + a^2)} = \frac{1}{a^2 + 1}\left(\frac{1}{u + 1} - \frac{u - 1}{u^2 + a^2}\right) $.
You can check to see if this is right by combining the fractions on the right-hand side to get the fraction on the left-hand side. This should also answer your question about the step you're confused about.
The answer you have is incorrect. There are two main errors. One of the errors you made is forgetting to calculate the third integral,
$displaystyle \int_0^1 \frac{a}{(1 + a^2)(ax +
1)}\, dx$.
The second error is assuming that $J'(1)$ is the answer, rather than $J(1)$.
Thank you, I can't believe I forgot the third integral, I shall calculate that now.
$$\int_{0}^{1} \frac{a}{(a^2+1)(ax+1)} \,dx$$
$$\frac{a}{a^2+1}$$ is just a constant, we can take that out.
$$ = \frac{a}{a^2+1}\int_{0}^{1}\frac{1}{ax+1} \,dx $$
$$ Let. u = ax+1 $$
$$du = a dx \implies dx = \frac{du}{a}$$
$$ = \frac{1}{(a^2+1)}\cdot\int_{0}^{1}\frac{1}{u} \,du $$
$$ = \frac{1}{(a^2+1)}\cdot \ln\left({ax+1}\right) + C_3$$
Evaluated from 0 to 1 you get
$$ = \frac{1}{(a^2+1)}\cdot \ln\left({a+1}\right) $$
So the total integral now would be the addition of the first TWO parts and this ONE part to get:
$$ = \frac{1}{2(1 + a^2)}\ln\left({2}\right) + \frac{a}{1+a^2}(\frac{\pi}{4}) + \frac{\ln\left({a+1}\right)}{1+a^2} $$
It is important to keep in mind that this is only,
$$ J'(a) = \frac{1}{2(1 + a^2)}\ln\left({2}\right) + \frac{a}{1+a^2}(\frac{\pi}{4}) + \frac{\ln\left({a+1}\right)}{1+a^2} $$
We need to find J(1); that is the goal. So now we should integrate again.
$$ J(a) = \int \frac{1}{2(1 + a^2)}\ln\left({2}\right) + \frac{a}{1+a^2}(\frac{\pi}{4}) + \frac{\ln\left({a+1}\right)}{1+a^2} da $$
$$ = \frac{\ln\left({2}\right)}{2}\cdot\int\frac{1}{1+a^2} da + \frac{\pi}{4}\cdot\int\frac{a}{1+a^2} da + \int \frac{\ln\left({1+a}\right)}{1+a^2} da $$
$$ = \frac{\ln\left({2}\right)}{2}\cdot\arctan\left({a}\right) + \frac{\pi}{8}\cdot\ln\left({a^2+1}\right) + \int \frac{ln(1+a)}{1+a^2} da $$
The difficult part is $$\int \frac{ln(1+a)}{1+a^2} da $$
That is the issue, that doesn't have an elementary antiderivative. Any ideas?