Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

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


  • 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