       Re: Integration with non-numeric parameters

• To: mathgroup at smc.vnet.net
• Subject: [mg79775] Re: Integration with non-numeric parameters
• From: dimitris <dimmechan at yahoo.com>
• Date: Sat, 4 Aug 2007 05:51:43 -0400 (EDT)
• References: <f8v1cb\$ded\$1@smc.vnet.net>

```On 3    , 13:51, ingramfina... at gmail.com wrote:
> When I use Mathematica to solve the following
> y=x1/(2*sigma^2*t)
>
> Integrate[y, {t, .5, 1}]
>
> I get the following answer:
>
> (0.34657*x1/sigma^2)
>
> OK, so far, so good. It appears that I can generate an answer with a
> non-numeric parameter. Note that I am looking for an answer in terms
> of x1.
>
> But when I try
>
>  q=Exp[-(x1-t)^2/2*sigma^2*t]
>
> Integrate[q, {t, .5,1}]
>
> Now Mathematica does not solve this integral, it just repeats the
> command
>
> I am trying to get an expression in terms of x1. Why do I get a
> the functional form of the integrand that is causing the problem, I
> just don't know what it is.
>

Do not mix arbitrary precision numbers with symbolic built in
functions.

So,

In:=
Clear["Global`*"]

In:=
y = x1/(2*sigma^2*t)

Out=
x1/(2*sigma^2*t)

In:=
Integrate[y, {t, 1/2, 1}]

Out=
(x1*Log)/(2*sigma^2)

In:=
q = Exp[(-((x1 - t)^2/2))*sigma^2*t]

Out=
E^((-(1/2))*sigma^2*t*(-t + x1)^2)

In:=
Integrate[q, {t, 1/2, 1}]

Out=
Integrate[E^((-(1/2))*sigma^2*t*(-t + x1)^2), {t, 1/2, 1}]

The latter integral is not a trivial one!

In another CAS,

convert("Integrate[E^((-(1/2))*sigma^2*t*(-t + x1)^2), {t, 1/2,
1}]",FromMma,evaluate);

1
/              2            2
|          sigma  t (-t + x1)
|    exp(- -------------------) dt
|                   2
/
1/2

Again the integral is stated unevaluated.

Dimitris

```

• Prev by Date: Re: activate more than one core in Mathematica 6.0 (for win)?
• Next by Date: Re: Serious Problem with GridLines
• Previous by thread: Re: Integration with non-numeric parameters
• Next by thread: Re: Integration with non-numeric parameters