Tag: integration techniques

  • A Surprising Improper Integral: Why the Integral of sin(ax)/x Is Always π/2

    A Surprising Improper Integral

    Consider the improper integral

    ∫ 0 ∞ sin ( ax ) x dx.

    At first glance, this integral looks difficult. The factor 1x suggests a singularity at the origin, while the sine function continues to oscillate forever as x→∞. There is no elementary antiderivative that immediately resolves the problem.

    Nevertheless, for every positive number a, the answer is remarkably simple:

    ∫ 0 ∞ sin ( ax ) x dx = π2.

    Even more surprisingly, the answer does not depend on the positive value of a. Let us see why.

    The Main Idea: Add a Damping Factor

    Instead of attacking the original integral directly, introduce a positive parameter t and define

    F ( t ) = ∫ 0 ∞ e −tx sin ( ax ) x dx , t>0.

    The factor e −tx suppresses the oscillations for large values of x. This makes the parameter-dependent integral easier to work with.

    The key step is to differentiate with respect to the parameter t. We obtain

    F′ ( t ) = − ∫ 0 ∞ e −tx sin ( ax ) dx.

    Notice what happened: the troublesome factor 1x has disappeared. We are left with a standard Laplace-type integral.

    Evaluating the Easier Integral

    For t>0, we have

    ∫ 0 ∞ e −tx sin ( ax ) dx = a t2 + a2 .

    Therefore,

    F′ ( t ) = − a t2 + a2 .

    Now the problem has been reduced to an elementary integral.

    Recovering F(t)

    As t→∞, the exponential damping becomes stronger and

    F ( t ) → 0.

    Thus, for a>0,

    F ( t ) = ∫ t ∞ a u2 + a2 du.

    Evaluating this integral gives

    F ( t ) = π2 − arctan ( ta ).

    Equivalently, using the elementary arctangent identity,

    F ( t ) = arctan ( at ).

    So we have actually obtained the more general and useful formula

    ∫ 0 ∞ e −tx sin ( ax ) x dx = arctan ( at ), a>0, t>0.

    Removing the Damping

    We introduced the exponential factor only to make the integral easier to evaluate. Now let t→0+ . Then

    arctan ( at ) → π2.

    and the damping factor approaches 1. This leads to the celebrated Dirichlet integral

    ∫ 0 ∞ sin ( ax ) x dx = π2, a>0.

    Why Does the Answer Not Depend on a?

    There is also a simple scaling argument that explains why the answer must be the same for every positive a. Set

    u=ax.

    Then

    x = ua, dx = du a .

    Therefore,

    ∫ 0 ∞ sin ( ax ) x dx = ∫ 0 ∞ sin ( u ) u du.

    The parameter a has completely disappeared. Changing a changes how rapidly the sine function oscillates, but the total value of the improper integral remains unchanged.

    What If a Is Zero or Negative?

    If a=0, the integrand is identically zero, so the integral is zero.

    If a<0, use the oddness of the sine function:

    sin ( ax ) = − sin ( −ax ).

    Hence the complete result is

    ∫ 0 ∞ sin ( ax ) x dx = π2 if a>0, 0 if a=0, −π2 if a<0.

    One Important Detail: The Integral Is Not Absolutely Convergent

    The convergence of this integral is subtle. Although

    ∫ 0 ∞ sin ( ax ) x dx

    converges for a≠0, the corresponding absolute-value integral

    ∫ 0 ∞ | sin ( ax ) | x dx

    diverges. Thus the positive and negative oscillations of the sine function are essential. They cancel one another just enough for the original improper integral to converge.

    A Useful Lesson

    The most interesting part of this calculation is not simply the final answer π2. It is the method.

    When an integral is difficult to evaluate directly, it can sometimes be embedded into a family of integrals depending on a parameter. Differentiating with respect to that parameter may transform the original problem into a much easier one. After solving the parameterized problem, we return to the original integral by taking a limit.

    In this example, the chain of ideas is

    sin ( ax ) x → e −tx sin ( ax ) x → F′ ( t ) → F ( t ) → π2.

    A difficult oscillatory improper integral has been reduced to an elementary rational integral. That is what makes the Dirichlet integral such a beautiful example of the power of introducing a parameter.


    Another Surprise from an Improper Integral

    The integral involving sin ⁡ ( a x ) x shows that an oscillating function extending over an infinite interval can nevertheless produce a beautifully simple finite value.

    There is another famous improper-integral paradox in which infinity appears in a completely different way: a surface extending forever can enclose a finite volume while having infinite surface area.

    Continue exploring: Gabriel’s Horn: When Can an Infinite Horn Be Painted?


    From the Dirichlet Integral to the Gaussian Integral

    There is another beautiful connection behind the Dirichlet integral. The Gaussian function e − x 2 leads to one of the most famous improper integrals in mathematics. Its evaluation introduces a remarkably powerful idea: turn a one-dimensional integral into a two-dimensional one and then use geometry.

    That same Gaussian structure appears in many unexpected places and provides another route into the world of remarkable improper integrals.

    Continue exploring: The Gaussian Integral and Beyond: From e^(-x²) to a Family of Integrals

  • The Gaussian Integral and Beyond: From e^(-x²) to a Family of Integrals

    Some integrals are easy to write down but surprisingly difficult to evaluate. One of the most famous examples is

    ∫−∞∞ e−x2 dx .

    The function e−x2 has no elementary antiderivative. Yet the improper integral has the remarkably simple value

    ∫−∞∞ e−x2 dx = π .

    Even more interesting is the method used to obtain this result. By turning a one-dimensional integral into a two-dimensional one, we can exploit geometry. Once we understand that idea, it leads naturally to integrals involving e−x4, e−xp, and even integrals in which the Gaussian is multiplied by a sine or cosine.

    Example 1: The Gaussian integral

    Let

    I = ∫0∞ e−x2 dx .

    Instead of trying to find an antiderivative, square the integral:

    I2 = ( ∫0∞ e−x2 dx ) ( ∫0∞ e−y2 dy ) .

    Thus,

    I2 = ∫0∞ ∫0∞ e − ( x2 + y2 ) dxdy .

    Now something important has happened. The expression

    x2 + y2

    suggests polar coordinates. In the first quadrant,

    x=rcos⁡ (θ) , y=rsin⁡ (θ) .

    Here

    0≤r<∞ , 0≤θ≤ π2 .

    Since

    dxdy = rdrdθ ,

    we obtain

    I2 = ∫0π2 ∫0∞ e−r2 rdrdθ .

    The radial integral is elementary:

    ∫0∞ e−r2 rdr = 12 .

    Therefore,

    I2 = π2 · 12 = π4 ,

    and hence

    ∫0∞ e−x2 dx = π2 .

    By symmetry,

    ∫−∞∞ e−x2 dx = π .

    The essential idea was not integration by parts or an ingenious substitution. It was to increase the dimension.

    Example 2: Changing the scale

    Consider

    ∫0∞ e−ax2 dx , a>0 .

    Let

    u=ax .

    Then

    dx = dua ,

    so

    ∫0∞ e−ax2 dx = 1a ∫0∞ e−u2 du = π2a .

    One geometric calculation has already produced an entire family of integrals.

    Example 3: An integral involving e−x4

    First consider

    ∫0∞ x3 e−x4 dx .

    The substitution u=x4 works immediately because

    du = 4x3dx .

    Hence,

    ∫0∞ x3 e−x4 dx = 14 ∫0∞ e−u du = 14 .

    Now remove the factor x3.

    Example 4: What about e−x4 itself?

    Consider

    J= ∫0∞ e−x4 dx .

    Let u=x4. Then

    dx = 14 u−34 du ,

    and therefore

    J = 14 ∫0∞ u−34 e−u du .

    This integral is not elementary, but it is a standard special function. The Gamma function is defined, for s>0, by

    Γ (s) = ∫0∞ us−1 e−u du .

    Therefore,

    ∫0∞ e−x4 dx = 14 Γ ( 14 ) .

    The Gaussian was already hiding the Gamma function

    Apply the same substitution to the Gaussian integral. With u=x2,

    ∫0∞ e−x2 dx = 12 Γ ( 12 ) .

    But our two-dimensional calculation showed that the same integral equals π2. Consequently,

    Γ ( 12 ) = π .

    From e−x2 to e−xp

    Now consider the general integral

    Ip = ∫0∞ e−xp dx , p>0 .

    Set u=xp. Then

    dx = 1p u 1p −1 du .

    Therefore,

    Ip = 1p ∫0∞ u 1p −1 e−u du .

    By the definition of the Gamma function,

    ∫0∞ e−xp dx = 1p Γ ( 1p ) .

    Using the identity Γ ( s+1 ) = s Γ (s) , we can also write

    ∫0∞ e−xp dx = Γ ( 1+1p ) .

    For example,

    ∫0∞ e−x dx =1, ∫0∞ e−x2 dx = π2 , ∫0∞ e−x3 dx = 13 Γ ( 13 ) , ∫0∞ e−x4 dx = 14 Γ ( 14 ) .

    An even larger family

    We can include a power of x. Consider

    ∫0∞ xq e−xp dx ,

    where p>0 and q>−1. Again let u=xp. The same substitution gives

    ∫0∞ xq e−xp dx = 1p Γ ( q+1 p ) .

    For example,

    ∫0∞ x e−x4 dx = 14 Γ ( 12 ) = π4 ,

    while

    ∫0∞ x3 e−x4 dx = 14 Γ (1) = 14 .

    Thus three very similar-looking integrals can have rather different-looking answers:

    ∫0∞ e−x4 dx = 14 Γ ( 14 ) , ∫0∞ x e−x4 dx = π4 , ∫0∞ x3 e−x4 dx = 14 .

    Why did circles appear?

    There is a geometric reason the Gaussian calculation worked so beautifully. When we squared the Gaussian integral, the exponent became

    x2 + y2 .

    The level curves

    x2 + y2 = c

    are circles. Polar coordinates are therefore perfectly adapted to the problem.

    If instead we square ∫0∞ e−x4 dx , we obtain

    ∫0∞ ∫0∞ e − ( x4 + y4 ) dxdy .

    The corresponding level curves are

    x4 + y4 = c .

    They are not circles. More generally, e−xp is naturally connected with regions of the form

    |x|p + |y|p ≤ rp .

    For p=2, these are ordinary disks. For larger values of p, their boundaries become increasingly square-like. The Gaussian is the particularly beautiful case in which the geometry becomes ordinary Euclidean geometry.

    A surprising turn: add a cosine

    Consider

    C (b) = ∫0∞ e−x2 cos⁡ (bx) dx .

    The answer is

    C (b) = π2 e − b24 .

    This is remarkable: multiplying a Gaussian by an oscillating cosine produces another Gaussian, now as a function of the parameter b.

    Here is a calculus derivation. Differentiate with respect to b:

    C′ (b) = − ∫0∞ x e−x2 sin⁡ (bx) dx .

    Since

    x e−x2 = − 12 ddx ( e−x2 ) ,

    integration by parts gives

    C′ (b) = − b2 C (b) .

    Therefore,

    C′ (b) C (b) = − b2 .

    Integrating gives

    C (b) = A e − b24 .

    At b=0,

    C (0) = ∫0∞ e−x2 dx = π2 .

    Thus,

    ∫0∞ e−x2 cos⁡ (bx) dx = π2 e − b24 .

    For example, taking b=2 gives

    ∫0∞ e−x2 cos⁡ (2x) dx = π2e .

    What happens with sine?

    Now consider

    S (b) = ∫0∞ e−x2 sin⁡ (bx) dx .

    Unlike the cosine integral, this does not reduce to an elementary expression involving only exponentials and π. It can be written using a special function called Dawson’s integral,

    F (z) = e−z2 ∫0z et2 dt .

    The result is

    ∫0∞ e−x2 sin⁡ (bx) dx = F ( b2 ) .

    The difference between sine and cosine has a simple symmetry explanation. The function

    e−x2 cos⁡ (bx)

    is even, while

    e−x2 sin⁡ (bx)

    is odd. Therefore, over the entire real line,

    ∫−∞∞ e−x2 sin⁡ (bx) dx = 0 ,

    whereas

    ∫−∞∞ e−x2 cos⁡ (bx) dx = π e − b24 .

    One function keeps returning

    We started with e−x2. It has no elementary antiderivative, so at first it seems difficult to work with. But instead of disappearing, the Gaussian keeps returning.

    Geometry gives

    ∫−∞∞ e−x2 dx = π .

    The Gamma function places it inside the larger family

    ∫0∞ e−xp dx = Γ ( 1+1p ) .

    Adding a power of x produces

    ∫0∞ xq e−xp dx = 1p Γ ( q+1 p ) .

    And adding an oscillating cosine gives another Gaussian:

    ∫−∞∞ e−x2 cos⁡ (bx) dx = π e − b24 .

    This last identity is a glimpse of a much deeper fact: under the Fourier transform, the Gaussian essentially transforms into itself.

    So a single integral that cannot be evaluated by ordinary antiderivatives opens the door to geometry, the Gamma function, differential equations, generalized Lp geometry, and Fourier analysis.

    Sometimes an integral becomes easier not by finding a better antiderivative, but by finding a larger mathematical structure around it.

    From one dimension to two: squaring the Gaussian integral reveals circular level curves, making polar coordinates the natural choice.

    Another Famous Improper Integral

    The Gaussian integral shows how an integral over an infinite interval can be evaluated by introducing an extra dimension and exploiting symmetry. Another celebrated improper integral has a very different appearance:

    ∫ 0 ∞ sin ⁡ ( a x ) x d x = π 2 , a > 0 .

    What is especially surprising is that the answer does not depend on the positive parameter a .

    Continue exploring: A Surprising Improper Integral: Why the Integral of sin(ax)/x Is Always π/2


    Another Problem Where Two Dimensions Help

    The Gaussian integral becomes manageable after a surprising change of viewpoint: instead of attacking a one-dimensional integral directly, we square it, create a double integral, and use two-dimensional geometry.

    The same general idea appears in a completely different problem. The famous series 1 + 14 + 19 + ⋯ can also be approached through a double integral.

    Continue exploring: Proving 1 + 1/4 + 1/9 + ⋯ = π²/6 with a Double Integral


    From the Gaussian Integral to a Real Signal

    The Gaussian function is much more than an elegant calculus example. Gaussian distributions arise naturally when many small independent effects are added together, which makes them fundamental in probability, statistics, physics, and engineering.

    A particularly interesting example appears in OFDM communication signals. The in-phase and quadrature components become approximately Gaussian, but the signal magnitude follows a different distribution: the Rayleigh distribution.

    Continue exploring: Why Does an OFDM Signal Have a Rayleigh Distribution?