Re: How do I get a DSolve'd function
- To: mathgroup at smc.vnet.net
- Subject: [mg54432] Re: How do I get a DSolve'd function
- From: Bill Rowe <readnewsciv at earthlink.net>
- Date: Sun, 20 Feb 2005 00:09:55 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
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