# Integrate 1/(x^2+y^2)^(3/2)

1. Sep 4, 2008

### Freiddie

Well, so I really want to integrate what's shown in the title:
i.e.
$$\int \frac{dx}{(x^2+y^2)^\frac{3}{2}}$$

Now, I know there are quite a few straightforward answers to this. But what I really want is how people who do math got this formula in the first place. I don't just want a formula that seems to have come from a serendipitous accident or something. Please tell me how to derive the answer.

(You might have guessed this has something to do with electric fields)

Thank you for helping.

Last edited: Sep 4, 2008
2. Sep 4, 2008

### snipez90

Re: 1/(x^2+y^2)^(3/2)

Hmm, are we keeping y constant here? If so then a trig substitution should might be a good first step.

3. Sep 4, 2008

### Freiddie

Re: 1/(x^2+y^2)^(3/2)

Yes, y is a constant.

Trig substitution? The final answer doesn't have any trig functions.

4. Sep 4, 2008

### snipez90

Re: 1/(x^2+y^2)^(3/2)

That's because it probably involves an inverse trig function nested inside a trig function which of course would undo the trig function. Anyways you'll see what I mean if you try it.

Anyways I would try the substitution x = y*tan(t) (Have you learned u-sub?).

Last edited: Sep 4, 2008
5. Sep 5, 2008

### HallsofIvy

Staff Emeritus
Re: 1/(x^2+y^2)^(3/2)

$sin^2(\theta)+ cos^2(\theta)= 1$ so, dividing on both sides by $cos(\theta)$, $tan^2(\theta)+ 1= sec^2(\theta)$. Thats why snipez90 suggested "tan(t)". Let $x= ytan(\theta)$. In that case $x^2+ y^2= y^2tan^2(\theta)+ y^2= y^2(tan^2(\theta)+ 1)= y^2sec^2(\theta)$ so that $(x^2+ y^2)^{3/2}= (y^2sec^2(\theta))^{3/2}= y^3 sec^3(\theta)$.

Also, it $x= y tan(\theta)$, then $dx= ysec^2(\theta)d\theta$.

So the integral, $\int dx/(x^2+ y^2)^{3/2}$ becomes
$$\int \frac{y sec^2(\theta)d\theta}{y^3 sec^3(\theta)}= \int\frac{d\theta}{y^2 sec(\theta)}$$
$$= \frac{1}{y^2}\int cos(\theta)d\theta= \frac{1}{y^2}sin(\theta)+ C[/itex] Since $tan(\theta)= x/y$, imagine a right triangle having angle $\theta$, opposite side of length x, and near side of length y. Then the hypotenuse of that triangle has length $\sqrt{x^2+ y^2}$ and so $cos(\theta)= y/\sqrt{x^2+ y^2}$. That means that $(1/y^2)cos(\theta)+ C= (1/y^2)(y/\sqrt{x^2+ y^2})+ C= 1/(y\sqrt{x^2+ y^2})+ C$ 6. Sep 5, 2008 ### Freiddie Re: 1/(x^2+y^2)^(3/2) @snipez90: Yes I've learned substitution. If it's solvable by substitution, then I just have the problem of finding what to substitute. @HallsofIvy: Ooh, that is one clever substitution. I never thought of that. What I don't get is why you are trying to find: when there's a sin(x) in the final equation. In that case, the answer would be: [tex]{1 \over y^2} sin(\theta) + C = {1 \over y^2} {x \over \sqrt{x^2+y^2}} + C$$

Thanks so much!

Freiddie

7. Sep 5, 2008

### ObsessiveMathsFreak

Re: 1/(x^2+y^2)^(3/2)

To put it to you bluntly, this is in fact where most integration formulae come from. Things like the above proof usually only come after the discovery of the initial function.

8. Sep 5, 2008

### Freiddie

Re: 1/(x^2+y^2)^(3/2)

That's a depressing thought.

(I digress - Is there a possibility that a Turing machine exists that calculates integrals?)

9. Sep 6, 2008

### Ben Niehoff

Re: 1/(x^2+y^2)^(3/2)

No, there is no algorithm for finding general integrals (contrast to derivatives, for which there are very clear-cut algorithms). Many integral formulas were found, as mentioned, by lucky guesses (although many of those are still arrivable deterministically, if one is clever enough).

10. Sep 6, 2008

### HallsofIvy

Staff Emeritus
Re: 1/(x^2+y^2)^(3/2)

In fact, this is generally true of "inverse" problems.

If I were to define a function, say, f(x)= x5- 3x4+ 3x3- 7 x2- 4x + 5, and ask "What is f(7)?", you would only need to evaluate it-do the arithmetic- because you are already given the formula. But if I were ask "For what x is f(x)= 9" that would be a very difficult problem. It involves solving the equation and we know that, even for something as simple as a polynomial equation there may be several different solutions or no solution at all and, indeed, if the polynomial has degree 5 or more, there may be solutions that cannot be written in terms of algebraic operations.

11. Sep 6, 2008

### Freiddie

Re: 1/(x^2+y^2)^(3/2)

Oh OK. Thanks for the explanation.