View Full Version : integral of x^x


ddovala
06-26-04, 09:45 PM
How do you find it? Or at least estimate it? Any help would be appreciated.

ddovala
06-26-04, 10:20 PM
Oh, and how do you do exp(x^2) too?

Crisp
06-27-04, 03:48 AM
For x^x, try writing it as a logarithm, e.g. x^x = e^(x log x).

James R
06-27-04, 09:29 AM
There is no closed-form expression for the integral of exp(x^2). However, the values of some particular definite integrals involving that function can be calculated, and the integral is tabulated numerically.

Dunnoyet
06-28-04, 02:00 PM
I recently ran over x^x... It is one of THE wierdest things I've encountered, despite studying fractals on the side.

x^x for x in (infinity, 0) would probably be best analyzed with complex numbers. Try graphing it sometime; it comes out really wierd, even if you do pick the right values to graph. Perhaps integrating it requires the use of complex numbers... I really do want to know. The Mathematica online integrator seems to think of x^x as non-integrable.

Crisp,
I really have no idea how to integrate exponential functions. Could you expand on that? Did you actually get an answer?

Crisp
06-28-04, 04:18 PM
Crisp,
I really have no idea how to integrate exponential functions. Could you expand on that? Did you actually get an answer?

I didn't try anything when I posted the hint; usually the approach for avoiding problems with functions like x^x is to rewrite them as exponentials, but after having thought it over, I don't think that it will help here. You can rewrite it to an integral where you would seem to need to primitive function of ln(x), which does not exist.

Maple also seems to indicate that there is no closed form for the integral of x^x.

Dunnoyet
06-29-04, 10:09 PM
Thanks! That is more of an answer than I've gotten before.

I wonder if any graduate-level math professors or students could shed some light on this oddball function.

Considering x^x where x<0, I think that truly graphing it becomes a job for complex numbers. Perhaps analysis from a heavy complex math standpoint would help...maybe?

Is there a special way to integrate functions of real domain and complex range?

Could Riemann Sums be used to estimate the integral of a positive range of x^x?

(I won't be back to reply until the seventh of July; in the meantime I'll be subscribed to the thread.)

lethe
06-29-04, 10:31 PM
this function does not have an elementary integral, just as e^(x^2) and sin(x)/x do not.

This is a standard result, seen in any reference on elementary antiderivatives.

if you want to estimate it, Riemann sums should work fine, or perhaps Simpsons method.

This is a standard method of numerical integration, taught to high school calc students.

Dunnoyet
06-29-04, 11:05 PM
(ok, so I'm still on...)

Ah... I will be taking Calculus this coming schoolyear, so I should learn it then...

That should answer one of ddovala's questions.

Mr. Chips
06-29-04, 11:28 PM
I am paying close attention to this thread. That particular function can be used to describe a specific kind of self-similar fractal that could be represented by a digraph, directed probability graph. Say 2 squared, four taken in two groups each selecting one. Each of those associate in the next "node" of the network diagram again in a group of two choosing one. The number of steps in this "pyramid" is two. Try 3, 27 in groups of three, 9 groups of three each selecting one leaving 9 for 3 groups of three leading to one group of three, again 3 steps, same for any other number. Think of a chain letter except instead think of chain conferencing. The largest number so far that would not exceed the population of humanity is 9 raised to its own value.

Anyways, appears to me, and I certainly can be mistaken as its been a while since I tried to figure it out (got lots of papers in my files that maybe I should dig up), that Crisp's approach approaches utility though I think you need to use the natural logarithm, that is, x^x = e^(x ln x) leads to the integral of x^x being e^(x ln x) + C

shmoe
06-29-04, 11:49 PM
... x^x = e^(x ln x) leads to the integral of x^x being e^(x ln x) + C

This won't work. The derivative of e^f(x) is (e^f(x))*f'(x), there's that pesky chain rule term. Try to differentiate e^(x ln x) + C using this, you won't get x^x.

Dunnoyet, if you want to integrate a function with Real domain and complex range, you can just integrate Re f(x) and Im f(x) over whatever interval you like. Each is a real valued function, combine to get the complex valued integral. If you are are looking at (-x)^(-x) for positive values of x, you'll essentially have
1/(x^x) times an oscillating term (made up of a real cos term and an imaginary sin term). This can be handled numerically over given finite intervals, but that's about it.

Dunnoyet
06-30-04, 12:38 AM
Okay...wow...cool...thanks!

Complex math is cool...:D

P.s. Is there a name for functions related to x^x?

Mr. Chips
06-30-04, 10:17 AM
x^x = e^(ln x^x) = e^(x ln x)

Correct?

My understanding is that the integration of e^x is e^x + C according to what I reference on the web such as at this site: http://www.gomath.com/htdocs/ToGoSheet/Calculus/integrals/integrals.html, seventh formula from the top.

That makes the integral as shared before, e^(x ln x) + C

Differentiating e^u + c results in e^u as detailed at this site, http://galileo.phys.virginia.edu/classes/152.mf1i.spring02/Exponential_Function.htm One does drop the constant, right?

I find that last site to be quite nice at explaining euler's number and will spend some more time with it. The binomial expansion definition of the term relates it right into the realm of probability distributions. I believe it may be possible to design a communication system where the probability of generating symbolic representation tends towards an ideal of greatest possible information carrying capacity, which is besides the point of this thread.

Edited to change variable to match the used reference.

AndersHermansson
06-30-04, 10:24 AM
Mr. Chips

In your case u denotes a variable, not a function. Read Schmoes post again!

Mr. Chips
06-30-04, 10:32 AM
Please, someone, reference me to this datum shared by Schmoe. So far I find reference to otherwise.

Functions explicitly involving euler's number seem to have the unique distinction of resulting in the same equation whether through differentiation or integration except for the added constant.

Am I entirely off my rocker here? Seems the integration of x^x is x^x + c .

shmoe
06-30-04, 11:31 AM
Am I entirely off my rocker here? Seems the integration of x^x is x^x + c .

Again, you are missing the chain rule term.

The derivative of e^x wiith respect to x is e^x.

If you have a more diabolical function of x in the exponent, say u(x), then the derivative of e^(u(x)) is (e^(u(x)))*u'(x), where u'(x) denotes the derivative of u(x) with respect to x.

Let's differentiate x^x+c=e^(xlogx)+c with respect to x. Here u(x)=xlogx. We get:

(e^(xlogx))*(logx+1)+0

the 0 is from the constant term, logx+1 is the derivative of xlogx (product rule)

So the derivative of x^x+c is (x^x)*(logx + 1), which is not at all the same function as x^x.


You should be able to find a reference to the chain rule just about anywhere.

Crisp
06-30-04, 12:58 PM
Please, someone, reference me to this datum shared by Schmoe. So far I find reference to otherwise.
[...]
Am I entirely off my rocker here? Seems the integration of x^x is x^x + c .

As said before, you need to apply the chainrule. It is probably best understood as follows:

You know that d(e<sup>x</sup>)/dx = e<sup>x</sup>. Now suppose that you want to derive e<sup>y</sup> to x, then what you would do is:

d(e<sup>y</sup>)/dx = (d(e<sup>y</sup>)/dy) * (dy / dx)

which is just multiplying with dy / dy. Since deriving an exponential to the variable in the exponent is simply back that function, the last becomes:

d(e<sup>y</sup>)/dx = (d(e<sup>y</sup>)/dy) * (dy / dx) = e<sup>y</sup> * (dy / dx)

Now if you replace y = f(x) , y as some function of x, then you get:

d(e<sup>f(x)</sup>)/dx = e<sup>f(x)</sup> f'(x)

where I wrote f'(x) = df(x)/dx.

When "deriving to other variables than x", you always need to do the trick above. This "trick" is called "the chain rule" and it is formally written as Shmoe explained:

d f(g(x)) = f'(g(x)) * g'(x) * dx

It is called the chain rule because, if you study the right hand side above, you see that if you want to derive f as a function of g as a function of x, you get the derivative of f followed by the derivative of g followed by the "derivative" of x (a chain of derivatives). You can immediatelly generalise this to longer chains of functions.

I've been very sloppy with the language here, but I hope it somehow summarizes how you find that x^x derived is not simply x^x.

Bye!

Crisp

Mr. Chips
06-30-04, 01:12 PM
Cool, thanks, makes sense to me along with the references I've seen elsewhere on the web. Okay, looks like we have the derivative of x^x as (x^x)*(ln x + 1).

So, working togethor here, we ought to be able to figure out the integral, specifically, integral of x^xor e^(x ln x) in respect to x?

shmoe
06-30-04, 01:31 PM
So, working togethor here, we ought to be able to figure out the integral, specifically, integral of x^xor e^(x ln x) in respect to x?

Nope-take a look at lete's post. There's no closed form solution to the integral of x^x. Essentially this means the antiderivative of x^x cannot be expressed in terms of a finite number of the usual functions cos, sin, exp, polynomials, etc. This isn't just saying someone hasn't found such a closed form yet, it means it doesn't even exist to be found.

This doesn't mean an antiderivative doesn't exist, just that it isn't "nice". You can also still find a definite integral of x^x over a given interval to any degree of accuracy you like.

Dunnoyet
07-28-04, 08:17 PM
I think that to integrate something involving x^x you have to have it "well formed" (I think that that is the term), in other words you have to wangle x^x into (x^x)*(ln x+1).

I wonder if any fractals show up when the mapping x => x^x is played with... :D

John Connellan
07-30-04, 04:27 AM
I recently ran over x^x... It is one of THE wierdest things I've encountered, despite studying fractals on the side.

x^x for x in (infinity, 0) would probably be best analyzed with complex numbers. Try graphing it sometime; it comes out really wierd, even if you do pick the right values to graph.

Its kinda weird alright! It seems to have a minimum (for x > 0) at x = ~0.368

shmoe
07-30-04, 07:50 AM
Its kinda weird alright! It seems to have a minimum (for x > 0) at x = ~0.368

Or at exactly x=1/e. It's graph for x>0 isn't really that exciting.

Rick
07-30-04, 05:07 PM
There's no way to find an Integral such as this,we were never able to during our schooling years...

bye!

Dunnoyet
09-05-04, 11:37 PM
I just put together a TI-83+ program that uses the mapping z=>z^z on the complex plane to find escapist points. Quite an interesting shape came out. Now I need to learn Fractint's script language so I can have it apply its powers to it and produce awesome pictures. The TI-83 only has 13 digits of precision, so the one picture I've made had some odd outlines that reminded me of "artifacts of the limitations of the computer" that showed up in some of the images in The Beauty of Fractals.

Whee!!! Complex dynamics are fun... :D

Joey_21
09-08-04, 01:43 PM
The antiderivative for x<sup>x</sup> isn't elegant, but it can be done. This has recently caught my mathematical attention also (for fun).

Here is what I came up with:
∫ x<sup>x</sup> dx = Sum(k=0 to infinity, (k+1)<sup>-1</sup> * x<sup>k+1</sup> * Sum(n=0 to k, (-k-1)<sup>-n</sup> * (log(x))<sup>k-n</sup> / (k-n)!))
Let's call this xTxInteg(x)

log(x) = ln(x) and for the case where x=1 and k-n=0, log(x)<sup>k-n</sup> = log(1)<sup>0</sup> = 0<sup>0</sup> is defined to be 1 for the simple sake that it's easier to write the sum as that instead of having to include an extra conditional term each time I have log(1) to a power of zero.

Since we have x<sup>x</sup> 's antiderivative, we know that:
<sub>0</sub>∫ <sup>t</sup> x<sup>x</sup> dx = xTxInteg(t) - xTxInteg(0) (xTxInteg(0) = 0), therefore
<sub>0</sub>∫ <sup>t</sup> x<sup>x</sup> dx = xTxInteg(t)

Joey_21
09-08-04, 04:13 PM
Oh, and how do you do exp(x^2) too?

Let u = x<sup>2</sup>, therefore we have exp(u) or e<sup>u</sup>

Take the power series for e<sup>x</sup>:
e<sup>x</sup> = Sum(n=0 to infinity, x<sup>n</sup> / n!)

Therefore e<sup>u</sup>=
Sum(n=0 to infinity, (x<sup>2</sup>)<sup>n</sup> / n!)
=
Sum(n=0 to infinity, x<sup>2n</sup> / n!)

This expression is simple to integrate.

∫ e<sup>x<sup>2</sup></sup> dx = Sum(n=0 to infinity, x<sup>2n+1</sup> / (n! * (2n+1)))

In fact, this expansion is easily generalizable to any exponential argument z:
∫ e<sup>x<sup>z</sup></sup> dx =
Sum(n = 0 to infinity, x<sup>zn+1</sup> / (n! * (zn+1)))

mifter
08-09-05, 06:18 AM
The antiderivative for x<sup>x</sup> isn't elegant, but it can be done. This has recently caught my mathematical attention also (for fun).

Here is what I came up with:
∫ x<sup>x</sup> dx = Sum(k=0 to infinity, (k+1)<sup>-1</sup> * x<sup>k+1</sup> * Sum(n=0 to k, (-k-1)<sup>-n</sup> * (log(x))<sup>k-n</sup> / (k-n)!))
Let's call this xTxInteg(x)

log(x) = ln(x) and for the case where x=1 and k-n=0, log(x)<sup>k-n</sup> = log(1)<sup>0</sup> = 0<sup>0</sup> is defined to be 1 for the simple sake that it's easier to write the sum as that instead of having to include an extra conditional term each time I have log(1) to a power of zero.

Since we have x<sup>x</sup> 's antiderivative, we know that:
<sub>0</sub>∫ <sup>t</sup> x<sup>x</sup> dx = xTxInteg(t) - xTxInteg(0) (xTxInteg(0) = 0), therefore
<sub>0</sub>∫ <sup>t</sup> x<sup>x</sup> dx = xTxInteg(t)

Hi, I'm having the same trouble and it's really cool that you've found a formula for it (because nowhere else I've looked has it), however, could you please explain what exactly xTxInteg(t) means or what values of n and k I should use. I'm sorry for my ignorance but I'm only a high school student and would urgently appreciate some further explanation. Thankyou

Dunnoyet
08-12-05, 02:33 PM
I mentioned fractals made with this formula earlier. I've put together a small web page talking about my experiments at http://www.daskunkee.net/pickover/index.php. I hope it's somewhat useful, or at least interesting to y'all.

mifter,
I think he has answered your question in an indirect way:


Let u = x<sup>2</sup>, therefore we have exp(u) or e<sup>u</sup>

Take the power series for e<sup>x</sup>:
e<sup>x</sup> = Sum(n=0 to infinity, x<sup>n</sup> / n!)

Therefore e<sup>u</sup>=
Sum(n=0 to infinity, (x<sup>2</sup>)<sup>n</sup> / n!)
=
Sum(n=0 to infinity, x<sup>2n</sup> / n!)

This expression is simple to integrate.

∫ e<sup>x<sup>2</sup></sup> dx = Sum(n=0 to infinity, x<sup>2n+1</sup> / (n! * (2n+1)))

In fact, this expansion is easily generalizable to any exponential argument z:
∫ e<sup>x<sup>z</sup></sup> dx =
Sum(n = 0 to infinity, x<sup>zn+1</sup> / (n! * (zn+1)))


The generalization that he ends with, e.g. ∫ e<sup>x<sup>z</sup></sup> dx = Sum(n = 0 to infinity, x<sup>zn+1</sup> / (n! * (zn+1))), works. Simply plug 1 in for z. Joey's method is what I call "Taylor-MacLaurin Black Magic" because I have never quite understood the full power of series. You will see (or are seeing ;D) the power of series in Calculus 2. Calculus BC, the high school course that I took, covered it. I'll have to tinker some more with my TI-83+ (oh, I wish there was an easier way that was free) to verify Joey's results, but looking at the calculator that he has written (and the advanced math skills that it shows), I'll give him credit.

p.s. I'm fresh out of high school.
p.s.s. Joey, your calculator is now in my Start menu, tier 1. Thanks! :D

Dunnoyet
12-01-05, 12:07 AM
I'm not sure that anyone is looking at this thread anymore, but I'm posting anyway. I've got my (almost) final two cents to put in.

After looking around for quite a while, it seems that James R, shmoe, Joey_21 and Crisp are right on target. Perhaps too vague or garbled in some instances, but on target. Thanks!

x<sup>x</sup> is a special case of the Power Tower, as described on the Wolfram MathWorld website. Integrals are mentioned on that page, and it seems that the conclusions reached by those listed above are correct. Check it out--lots of pretty graphs and hard information.

Thanks, all!
--Dunnoyet
daskunkee.net