Re: DSolve problem

*To*: mathgroup at smc.vnet.net*Subject*: [mg60106] Re: [mg60103] DSolve problem*From*: Bob Hanlon <hanlonr at cox.net>*Date*: Fri, 2 Sep 2005 06:37:40 -0400 (EDT)*Reply-to*: hanlonr at cox.net*Sender*: owner-wri-mathgroup at wolfram.com

You have mixed the variables x and t. It is not clear what you want. Here are the likely fixes eqn1=y'[x]==Sin[t]-2y[x]; soln1= DSolve[eqn1,y[x],x][[1,1]] y[x] -> C[1]/E^(2*x) + Sin[t]/2 eqn1 /. {soln1,D[soln1,x]} // Simplify True eqn2 = y'[x]==Sin[x]-2y[x]; soln2 = DSolve[eqn2,y[x],x][[1,1]] y[x] -> C[1]/E^(2*x) + (1/5)*(2*Sin[x] - Cos[x]) eqn2/. {soln2,D[soln2,x]} // Simplify True Bob Hanlon > > From: "sunnewton" <sunshinenewton at gmail.com> To: mathgroup at smc.vnet.net > Date: 2005/09/02 Fri AM 04:33:05 EDT > Subject: [mg60106] [mg60103] DSolve problem > > Hi, > I am a freshman of Mathematica, I need help here... > > I met such problem as: > > DSolve[y'[x] == sin[t] - 2y[x], y[x], t] > > DSolve::"dvnoarg": "The function \!\(y[x]\) appears with no arguments." > > How to Handle??? > >