Integrating a Complex Integral Involving a Rectangle

awvvu
Messages
188
Reaction score
1
This integral came up while trying to find the potential of a uniformly charged rectangle.

\int \log(\sqrt{a^2+x^2} + b) dx

Integrator gives a pretty long expression involving inverse tangents so I'm not sure where to begin at all. I tried integrating by parts once, taking u to be the whole expression, but it just makes it messier. I also tried the trig subtitution:

x = a \tan(\theta)
\int a \log(a \sec(\theta) + b) \sec^2(\theta) d \theta

But that's not any easier to integrate.
 
Last edited:
Physics news on Phys.org
Damn nobody? I am stumped as well, I have this problem at the back of my head ... hopefully something pops up :)
 
I don't know if this is going to work but how about:

assuming the log is of base e

y=\int \log(\sqrt{a^2+x^2} + b) dx
e^y=\int (\sqrt{a^2+x^2}+b) dx

solve the RHS and then take the ln of the resulting solution
 
bob1182006 said:
I don't know if this is going to work but how about:

assuming the log is of base e

y=\int \log(\sqrt{a^2+x^2} + b) dx
e^y=\int (\sqrt{a^2+x^2}+b) dx

solve the RHS and then take the ln of the resulting solution

I don't know how to do the integral easily, but I know you DEFINITELY can't do that. If this is related to the potential of a uniformly charged rectangle I'd suggest you post the steps you used to get to that integral. Shouldn't it be a double integral? There may be an easier approach that doesn't involve evaluating that integral.
 
awvvu said:
This integral came up while trying to find the potential of a uniformly charged rectangle.

\int \log(\sqrt{a^2+x^2} + b) dx

Integrator gives a pretty long expression involving inverse tangents so I'm not sure where to begin at all. I tried integrating by parts once, taking u to be the whole expression, but it just makes it messier. I also tried the trig subtitution:

x = a \tan(\theta)
\int a \log(a \sec(\theta) + b) \sec^2(\theta) d \theta

But that's not any easier to integrate.

have you tried using integration by parts? I think it would simplify thigs a lot. And after that probbably a trig substitution would work, i am not sure though, i haven't tried it myself.
 
Dick said:
If this is related to the potential of a uniformly charged rectangle I'd suggest you post the steps you used to get to that integral. Shouldn't it be a double integral? There may be an easier approach that doesn't involve evaluating that integral.

Okay, there's a rectangle with uniform charge density \delta with one corner at the origin and the other corner at (L, H). And we want to find potential as a function of (x, y), so x and y are constants in the following integral.(this is going to be fun to type up).

V = K \int_R \frac{dQ}{r_i}, where r_i = \sqrt{(x - x_i)^2 + (y - y_i)^2} and dQ = \delta dA = \delta dx_i dy_i
K \delta \int_0^H \int_0^L \frac{1}{\sqrt{(x - x_i)^2 + (y - y_i)^2}} dx_i dy_i

Now doing the substitution u = x - x_i and v = y - y_i:

K \delta \int_{y - H}^{y} \int_{x - L}^{x} \frac{1}{\sqrt{u^2 + v^2}} du dv

Then doing the trig substitution u = v \tan(\theta), so du = v \sec^2(\theta) d\theta:

K \delta \int_{y-H}^{y}\int \frac{v \sec^2(\theta)}{\sqrt{v^2 \tan^2(\theta) + v^2}}d\theta dv
K \delta \int_{y-H}^{y}\int \sec(\theta) d\theta dv
K \delta \int_{y-H}^{y} \left[ \log(\sec(\theta) + \tan(\theta)) \right] dv
K \delta \int_{y-H}^{y} \left[ \log(\sqrt{u^2 + v^2} + u) - \log(v) \right]_{u = x - L}^{u = x} dv
K \delta \int_{y-H}^{y} \log(\sqrt{x^2 + v^2} + x) - \log(\sqrt{(x - L)^2 + v^2} + x - L) dv

The last integrals are of form: \int \log(\sqrt{a^2+x^2} + b) dx like above. I think the left integral is much simpler because a = b in that case, and stuff cancels out. But the right one is a lot more complicated.

edit: oh wait, a = b for the right integral too, so that makes it a lot easier!

\int \log(\sqrt{a^2 + x^2} + a) = x \log(\sqrt{a^2 + x^2} + a) + a \log(\sqrt{a^2 +x^2} + x) - x (from Integrator)

I still don't know how to do this integral though.
 
Last edited:
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top