MathGroup Archive 2005

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

Search the Archive

Re: How do I get a DSolve'd function


On 2/19/05 at 2:33 AM, skirmantas.janusonis at yale.edu (Skirmantas)
wrote:

>I hope this is the last question for now.

>I can solve a differential equation and plot it by doing something
>like this:

>sol=DSolve[{f'[x]==-3f[x],f[0]==10},f,x] 
>Plot[f/.sol,{x,0,10}]

>But how do I get the function f[x] itself? I want to be able to
>input f[x] and get its definition. Or do Plot[f[x],{x,0,10}]. Or
>define y[x_]:=f[x]^2.

sol = DSolve[{Derivative[1][f][x]== -3*f[x], f[0] == 10}, f, x]; 
y = f /. First[sol]; 

y[x]
10/E^(3*x)

y[x]^2
100/E^(6*x)
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: Question about an integral
  • Next by Date: Re: Replace in recursive equations
  • Previous by thread: Re: How do I get a DSolve'd function
  • Next by thread: Re: How do I get a DSolve'd function