Re: tricky integral

Main Question or Discussion Point

[tex]\int \frac{3}{2}x^{-\frac{1}{2}}\cdot e^{\frac{3}{2}x^{-2}}\,dx[/tex]

I saw this integral elsewhere and apparently it's insoluble in elementary functions. Anyone got any ideas how to tackle this one, other than as a Taylor series? I couldn't get anywhere with integration by parts, any substitutions that might provide a solution, imaginary or some sort of unusual function? Just curious to see how you would do this.

Just for fun in case anyone's bored. :smile:

It comes to something when you're so bored you go trawling for integrals you can't solve. :wink: :smile:
 
Last edited:

Answers and Replies

What about the substitution u = sqrt(x)....? Then you have dx/sqrt(x) = du, which cancels the first factor so you're left with the integral over [itex]e^{u^{-4}}[/itex]

Uhm....yes :smile:
 
I'm just confused now, mathematica says it is impossible to solve this. I tried by parts and came a bit stuck and yet. This either brings up the idea that I am in fact typing it into calc101 wrong, which :

This is my entry.

3/2*x^(-1/2)*e^(3/2x)^(-2)

And the answer is sorry calc101 can't do this.

And then.

The surprisingly easy answer pops out.


[tex]\frac{3}{2x^{-\frac{1}{2}}} \cdot e^{\frac{3}{2} x^{\frac{1}{2}} [/tex]

So I'm lost now?
 
Last edited:
Some more brackets in the exponent, maybe?:smile:

3/2*x^(-1/2)*e^((3/2)*x^(-2))

Mathematica gives me a solution ... not as compact as yours though ...
 
Last edited:
Some more brackets in the exponent, maybe?:smile:

3/2*x^(-1/2)*e^((3/2x)^(-2))

Mathematica gives me a solution ... not as compact as yours though ...

It obviously wasn't as hard as I thought. :smile: Thanks Pete.

Actually even with the extra brackets calc101 has a problem. That's really odd? It doesn't usually fall down on easy integrals?

EDIT: I get a gamma function with Mathematica. Hehe.

Anyway if anyone would care to show how to do this integral beyond the substitution given above I'd be grateful. :smile:

I get the impression this isn't as straightforward as it appears? It might be interesting to see how mathematica gets such a tortuous answer. :smile:

http://www.freewebs.com/mypicturesandsht/mathematica.gif"
 
Last edited by a moderator:
Ok rather than start another thread here's another one I can't get, actually from this forum, but as its marked solved, I doubt anyone will mind?

ok

[itex]\int \sin^{\frac{3}{2}} (x)\;dx\rightarrow \int\sqrt{sin^3(x)}\;dx=?[/itex]

Anyone know of a substitution here that can solve this. I can't see anything obvious.

I tried solving it on my maths program but it just spat out the original answer, which either means it's unsolvable in elementary functions or it's broken. If that's the case can anyone go about showing how we get a non explicit answer, just for form.

Mathematica gives an answer but it involves an http://mathworld.wolfram.com/EllipticIntegraloftheFirstKind.html" [Broken] which is lost on me. Anyone explain what they mean, or can anyone derive an answer normally?

Just idle curiosity really.
 
Last edited by a moderator:
Hootenanny
Staff Emeritus
Science Advisor
Gold Member
9,598
6
Hi SD I think I have it in terms of elementary functions (unless I've made a daft mistake somewhere).

[tex]\int\sqrt{\sin^3x}\;\; dx = \int \sin x\sqrt{\sin x} \;\;dx[/tex]

We integrate by parts with,

[tex]u = \sqrt{\sin x} \Rightarrow \frac{du}{dx} = \frac{\cos x}{2\sqrt{\sin x}}[/tex]

[tex] dv = \sin x \Rightarrow v = -\cos x[/tex]

Hence,

[tex]\int \sqrt{\sin^3 x} dx = -\cos x\sqrt{\sin x} - \frac{1}{2}\int\frac{\cos x}{\sqrt{\sin x}} dx[/tex]

We now make a substitution,

[tex] t = \sin x \Rightarrow \frac{dt}{dx} = \cos x[/tex]

And the integral becomes,

[tex]\int \sqrt{\sin^3 x} dx = -\cos x\sqrt{\sin x} - \frac{1}{2}\int\frac{dt}{\sqrt{t}}[/tex]

[tex] = -\cos x\sqrt{\sin x} - \frac{1}{2}\left(-\frac{t^{-3/2}}{2}\right) + \text{ const.}[/tex]

[tex] = -\cos x\sqrt{\sin x} + \frac{1}{4}\left(\sin^{-3/2}\right) + \text{ const.}[/tex]

Hence,

[tex]\int\sqrt{\sin^3x} \;\; dx = \frac{1}{4\sqrt{\sin^3 x}} - \cos x \sqrt{\sin x} \;\; + \text{ const.}[/tex]

Or perhaps a little more neatly,

[tex]\int\sqrt{\sin^3x} \;\; dx = \frac{1- 4\cos x \sin^2 x}{4\sqrt{\sin^3 x}} \;\; + \text{ const.}[/tex]
 
Last edited:
Hats off, I'm impressed. I never even thought of putting it in the form:

[tex]\int sin(x)\sqrt{\sin(x)}\;dx[/tex]

let alone taking it further. Good stuff if I think or see any more I'll put them up. I'm between courses atm, so I'm trying to keep my eye in. Apologies for being more than a little rusty. :smile:

I've not seen the substitution using [itex]t=-\sin(x)\Rightarrow\frac{dt}{dx}=\cos(x)[/tex] on my course, can you explain how that works exactly? I assume the derivative with respect to dt/dx is equivalent but how does that figure exactly? Sorry if this is a stupid question I genuinely haven't seen it before except obviously in various questions and was wondering about it?
 
Last edited:
Hootenanny
Staff Emeritus
Science Advisor
Gold Member
9,598
6
Hats off, I'm impressed.
Thanks for the kind words :smile:
I'm between courses atm, so I'm trying to keep my eye in. Apologies for being more than a little rusty. :smile:
There's not need to apologise, strange as it may seem it was a nice break from working :smile:
I've not seen the substitution using [itex]t=-\sin(x)\Rightarrow\frac{dt}{dx}=\cos(x)[/tex] on my course, can you explain how that works exactly? I assume the derivative with respect to dt/dx is equivalent but how does that figure exactly? Sorry if this is a stupid question I genuinely haven't seen it before except obviously in various questions and was wondering about it?
It's not stupid in the slightest, but the substitution I used was,

[tex]t = \sin x[/tex]

Which when differentiated gives,

[tex]\frac{dt}{dx} = \cos x[/tex]

However, the substitution you quoted isn't true,

[tex]\frac{d}{dx}\left(-\sin x\right) = -\cos x \neq \cos x[/tex]
 
Last edited:
[tex]t = \sin x[/tex]

Which when differentiated gives,

[tex]\frac{dt}{dx} = \cos x[/tex]

However, the substitution you quoted isn't true,

[tex]\frac{d}{dx}\left(-\sin x\right) = -\cos x \neq \cos x[/tex]
Well sorry I think that was more an error in language, I see what you meant I was copying what you wrote but didn't put in the correct sign, my bad. I see thanks for clearing that up. I've never seen that substitution used before, at least on my course, it all helps.

What I should of said is [itex]
t=\sin(x)\Rightarrow\frac{dt}{dx}=\cos(x)
[/itex]
 
Last edited:
Hootenanny
Staff Emeritus
Science Advisor
Gold Member
9,598
6
Well sorry I think that was more an error in language, I see what you meant I was copying what you wrote but didn't put in the correct sign, my bad. I see thanks for clearing that up. I've never seen that substitution used before, at least on my course, it all helps.

What I should of said is [itex]
t=\sin(x)\Rightarrow\frac{dt}{dx}=\cos(x)
[/itex]
No problem. With reference to the original integral, I didn't immediately jump to integration by parts followed by a substitution. At first I was playing around with trigonometric identities and power reduction formulae. Then I tried integration by parts and saw that it would simplify with a substitution.

There's certainly a 'knack' with substitutions, you get used to spotting which ones will simplify the integral. In particular, a ratio of [some function of] sine and cosine is usually a good indicator that a substitution of the form [itex]u=\sin\theta[/itex] or [itex]u=\cos\theta[/itex] is going to simplify things. There isn't really a set of 'allowed' substitutions, it's simply whatever one thinks will simplify a particular integral.
 
Last edited:
Yeah I think anyone who says there isn't an art to mathematics is an idiot. I think calculus is one of those areas where you can be really creative with solutions. Especially with integrals, where often a hint from the ether, can get you moving in the right direction. Practice though does indeed make perfect. Like any art, having some talent will only get you so far, sweat will get you further. :smile:
 
Hi SD I think I have it in terms of elementary functions (unless I've made a daft mistake somewhere).

[tex]\int\sqrt{\sin^3x}\;\; dx = \int \sin x\sqrt{\sin x} \;\;dx[/tex]

We integrate by parts with,

[tex]u = \sqrt{\sin x} \Rightarrow \frac{du}{dx} = \frac{\cos x}{2\sqrt{\sin x}}[/tex]

[tex] dv = \sin x \Rightarrow v = -\cos x[/tex]

Hence,

[tex]\int \sqrt{\sin^3 x} dx = -\cos x\sqrt{\sin x} - \frac{1}{2}\int\frac{\cos x}{\sqrt{\sin x}} dx[/tex]

We now make a substitution,

[tex] t = \sin x \Rightarrow \frac{dt}{dx} = \cos x[/tex]

And the integral becomes,

[tex]\int \sqrt{\sin^3 x} dx = -\cos x\sqrt{\sin x} - \frac{1}{2}\int\frac{dt}{\sqrt{t}}[/tex]

[tex] = -\cos x\sqrt{\sin x} - \frac{1}{2}\left(-\frac{t^{-3/2}}{2}\right) + \text{ const.}[/tex]

[tex] = -\cos x\sqrt{\sin x} + \frac{1}{4}\left(\sin^{-3/2}\right) + \text{ const.}[/tex]

Hence,

[tex]\int\sqrt{\sin^3x} \;\; dx = \frac{1}{4\sqrt{\sin^3 x}} - \cos x \sqrt{\sin x} \;\; + \text{ const.}[/tex]

Or perhaps a little more neatly,

[tex]\int\sqrt{\sin^3x} \;\; dx = \frac{1- 4\cos x \sin^2 x}{4\sqrt{\sin^3 x}} \;\; + \text{ const.}[/tex]
I never noticed this someone else pointed it out but I think he may have a point?

[tex]\int \sqrt{\sin^3 x} dx = -\cos x\sqrt{\sin x} - \frac{1}{2}\int\frac{\cos x}{\sqrt{\sin x}} dx[/tex]
The expression in the second integral is incorrect (you need to multiply it by [itex]-\cos x[/itex]).

You also integrated it incorrectly.
 
Last edited:
D H
Staff Emeritus
Science Advisor
Insights Author
15,329
681
Actually even with the extra brackets calc101 has a problem. That's really odd? It doesn't usually fall down on easy integrals?
That's because this is not an easy integral. It has no solution in the elementary functions. In particular, this is not a solution:
[tex]\frac{3}{2x^{-\frac{1}{2}}} \cdot e^{\frac{3}{2} x^{\frac{1}{2}} [/tex]
Of course, if you allow the use of non-elementary functions, you can get a solution, and this is exactly what Mathematica does.
 
That's because this is not an easy integral. It has no solution in the elementary functions. In particular, this is not a solution:


Of course, if you allow the use of non-elementary functions, you can get a solution, and this is exactly what Mathematica does.
I checked that with Mathcad and it's correct. Are you sure? I mean I'm more willing to trust a human being over Mathcad if you can show me why. :)

[itex]\int \frac{3}{2}x^{-\frac{1}{2}}\cdot e^{\frac{3}{2}x^{-2}}\,dx\rightarrow \frac{3}{2x^{-\frac{1}{2}}} \cdot e^{\frac{3}{2} x^{\frac{1}{2}}\text {+C}[/itex]

What function is used to integrate this as mathcad gives that answer?

The above^^ should if you multiply by -cos(x) come out with an eliptic function. So I think that is also not soluble except in non-elementary functions.
 
Last edited:
Hootenanny
Staff Emeritus
Science Advisor
Gold Member
9,598
6
I never noticed this someone else pointed it out but I think he may have a point?
The expression in the second integral is incorrect (you need to multiply it by [itex]-\cos x[/itex]).
You're correct, well these are daft mistakes, I feel rather stupid now :redface:
You also integrated it incorrectly.
Again, you're correct. The integrated function should of course be [itex]\sqrt{t}[/itex] rather than [itex]t^{-3/2}[/itex].

With the appropriate correction the integration by parts becomes,

[tex]\int \sqrt{\sin^3 x} dx = -\cos x\sqrt{\sin x} + \frac{1}{2}\int\frac{\cos^2 x}{\sqrt{\sin x}} dx[/tex]

Which has no elementary anti-derivative. My apologies SD, I feel like a bit of an ass now :redface:
 
Well me too, I never noticed the mistake until someone pointed it out, despite having gone through it at least once. :redface:
 
Hootenanny
Staff Emeritus
Science Advisor
Gold Member
9,598
6
Well me too, I never noticed the mistake until someone pointed it out, despite having gone through it at least once. :redface:
Well my thanks go to whoever pointed it out :smile:
 
Well my thanks go to whoever pointed it out :smile:
Funnily enough I can't say as it was another forum and it would be treason against PF. :smile: In fact I kind of did but didn't plagiarised your work, actually with the proviso that it wasn't my work, which turns out was lucky. :smile:
 
Last edited:
Ok I got a new one from a friend yesterday.

[tex]\int e^{(-ax^2)}\;dx[/tex]

At first I thought essentially a is an arbitrary constant and so you can cover it with c, but obviously that's crazy talk, then I though what, subsitution so e^(u) and then logging the result? But this doesn't seem to give me the answer.

My maths program gives

[tex]e^{(-ax^2)}\cdot x+c[/tex]

So then I tried splitting e up, no luck? Insoluble. Imaginary numbers, perhaps?

I also thought the trick I learnt in this forum a couple of days ago, with [itex]e^{(-x^2)}[/itex] and polar co-ordinates would work but that just leaves something like pi with a constant?

An integrator program gives an error function which looks similar to the solution to [itex]e^{(-x^2)}[/itex]? :/

Anyone seen this one before?

I am informed by him at least that it is soluble in elementary functions, but it's beyond me, and my shaky rusty old calculus? Any ideas why it equals the above answer and why it's soluble in elementary functions?
 
Last edited:
Gib Z
Homework Helper
3,344
4
In short, It isn't. Your friend lied :P

The little trick you learned only applies for the definite integral from 0 to infinity. And yes, we can give the answer in terms of the error function, but if you look up its definition you'll see why thats obvious.
 
In short, It isn't. Your friend lied :P

The little trick you learned only applies for the definite integral from 0 to infinity. And yes, we can give the answer in terms of the error function, but if you look up its definition you'll see why thats obvious.
Yeah indeed that's what I mean by only in elementary functions, and ? The erf is an approximation using a series is it not?

And I would say so too if he didn't have a PhD in physics. I'm loathe to tell him he's a big pants on fire liar. He may know something I don't. :wink:

Still as someone who's just passed A' level (16-18yr) Calculus for University level maths, is he not taking the mickey d'ya think. :biggrin:

By the way my maths program doesn't give that it gives the [itex]\pi[/itex] and erf too, I accidently defined x above and it came out with that obviously.

2.
[tex]
\int\sqrt{\sin^3x}\;\; dx = \frac{1- 4\cos x \sin^2 x}{4\sqrt{\sin^3 x}} \;\; + \text{ const.}[/tex]​

Mind you I gave him the question above, minus the answer obviously, and told him it was soluble in elementary functions, and he spent 1-2 hours trying to solve it before he gave up. So maybe this is payback. :smile:
 
Last edited:
D H
Staff Emeritus
Science Advisor
Insights Author
15,329
681
Ok I got a new one from a friend yesterday.

[tex]\int e^{(-ax^2)}\;dx[/tex]

At first I thought essentially a is an arbitrary constant and so you can cover it with c, but obviously that's crazy talk, then I though what, subsitution so e^(u) and then logging the result? But this doesn't seem to give me the answer.

My maths program gives

[tex]e^{(-ax^2)}\cdot x+c[/tex]
I don't know what your maths program is doing, but it is not right. The derivative of [itex]e^{(-ax^2)}\cdot x+c[/itex] is [itex]e^{(-ax^2)}(1-2ax)[/itex]. The function [itex]f(x)=e^{-ax^2}[/itex] has no antiderivative in the elementary functions. End of story.

Yeah indeed that's what I mean by only in elementary functions, and ? The erf is an approximation using a series is it not?
Yes, but then exp, sine, cosine, square root are elementary functions are all approximated on your computer or calculator as well. Nothing special here regarding special functions like erf.
 
I don't know what your maths program is doing, but it is not right. The derivative of [itex]e^{(-ax^2)}\cdot x+c[/itex] is [itex]e^{(-ax^2)}(1-2ax)[/itex]. The function [itex]f(x)=e^{-ax^2}[/itex] has no antiderivative in the elementary functions. End of story.
Explained that above, that was an error on my part.

Yes, but then exp, sine, cosine, square root are elementary functions are all approximated on your computer or calculator as well. Nothing special here regarding special functions like erf.
Yes of course, however given the email below, I think he knows something I don't, or it's ruse?

Dr.Friend said:
Here is an integral which you might find nasty. e^{-ax^2}dx , where a is a constant - using latex type notation. I found it nasty, but luckily found what I needed in a couple of textbooks, but not in the form that I was originally looking for. Another with similar problems is ( e^{-ax} )/x . If you wish to look for the solutions to these, remember that the answer that I found is not exactly in the form that I was looking for, but it was actually still useful for what I needed it for, at least for the first one, which was related to the total energy over all space of some fluid or gas.
The second one isn't an issue, as I haven't tackled it yet and it looks like something I've seen before.
 
Last edited:
Gib Z
Homework Helper
3,344
4
Look up the definition of the error function on google =] This should make it all painfully clear :P and no its not an elementary function.

EDIT: wikipedia i should have said.
 
Last edited:

Related Threads for: Re: tricky integral

  • Last Post
Replies
10
Views
2K
  • Last Post
Replies
7
Views
2K
  • Last Post
Replies
6
Views
2K
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
2
Views
1K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
1
Views
1K
  • Last Post
2
Replies
27
Views
17K
Top