Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13696 > unrolled thread

Separating space and time functions

Started bycarlos%colorado.edu@gtempaccount.com
First post2013-03-04 03:58 +0000
Last post2013-04-10 04:47 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Separating space and time functions carlos%colorado.edu@gtempaccount.com - 2013-03-04 03:58 +0000
    Re: Separating space and time functions debguy <johnandsara2@cox.net> - 2013-04-10 04:47 +0000

#13696 — Separating space and time functions

Fromcarlos%colorado.edu@gtempaccount.com
Date2013-03-04 03:58 +0000
SubjectSeparating space and time functions
Message-ID<kh164k$sam$1@smc.vnet.net>
When solving certain spacetime PDEs I get a solution F that can be factored as
       
                     F(space,time) = f(space)*g(time)

E.g.,  in 1D space, F(x,y)= (a0+a1*x+a2*x^2)*(b0+b1*t+b2*Log[t]), 
which will be used as one of the test functions below.  Then 
f(x)=a0+a1*x+a2*x^2 and g(t)=b0+b1*t+b2*Log[t].

I wrote the following module to separate g(t):

 SeparateFunctionOfTime[f_,t_]:=Module[{g1,g2,g},
       g1=Simplify[D[f,t]/f]; 
       g2=Simplify[Integrate[g1,t]];
       g=  Simplify[Exp[g2]];
       Return[g]];

ClearAll[x,t,a0,a1,a2,b0,b1,b2];  
f=(a0+a1*x+a2*x^2)*(b0+b1*t+b2*Log[t]);
Print["sep time function: ", SeparateFunctionOfTime[f,t]];

sep time function: b0 + b1 t + b2 Log[t]

(I typed all of the above code directly, looking at a test cell.)
So far this has worked for the problems I have solved so far (I am doing
wave dispersion studies in some advanced micromaterials). Questions:
(1) could this  method fail if Integrate[..] is unable to do the integrand
 f'/f = (Log[f])', and (2) could a more robust method be used then?

[toc] | [next] | [standalone]


#14112

Fromdebguy <johnandsara2@cox.net>
Date2013-04-10 04:47 +0000
Message-ID<kk2qtn$bhc$1@smc.vnet.net>
In reply to#13696
g1=Simplify[D[f,t]/f];
g2=Simplify[Integrate[g1,t]];

your question begs the question if all integrals can be assumed solved
using some method: no.  but...

the above seems to only depend on whether g1 has a proper derivative ,
and if that is so you can use Log directly (knowning that's the
answer) rather than integrate, right?

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web