MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Integrating UnitSteps


Hi Bas:

>You wrote:
>
>>  > In[2]:= Integrate[UnitStep[x - 1]/x^2, {x, b, Infinity}]
>>  >
>>  >                                UnitStep[-1 + x]
>>  > Out[2]= If[b < 1, 1, Integrate[----------------, {x, b, Infinity}]]
>>  >                                        2
>>  >                                       x
>>  >
>>  > Which is correct, in principle.  However, I'm trying to get an
>>  > explicit expression for b>1:
>>
>>  Then you can pass this assumption to the Mathematica integrator:
>>
>  >   Assuming[b > 1, Integrate[UnitStep[x - 1]/x^2, {x, b, Infinity}]]
>
>Unfortunately, that doesn't work:
>
>In[1]:=  Assuming[b > 1, Integrate[UnitStep[x - 1]/x^2, {x, b, Infinity}]]
>
>Out[1]= Assuming[b > 1, If[b < 1, 1,
>
>                 UnitStep[-1 + x]
>>      Integrate[----------------, {x, b, Infinity}]]]
>                         2
>                        x

It works for me:

In[1]:= $Version
Out[1]= "5.0 for Mac OS X (June 10, 2003)"

In[2]:= Assuming[b > 1, Integrate[UnitStep[x - 1]/x^2, {x, b, Infinity}]]

Out[2]= 1/b

Cheers,
Paul


  • Prev by Date: Re: (N)Integrate help - convergence problem
  • Next by Date: Re: exporting the values of evaluated functions
  • Previous by thread: Integrating UnitSteps
  • Next by thread: Re: Integrating UnitSteps