MathGroup Archive 2007

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

Search the Archive

Re: Solving differential equations with parameters


Ivan wrote:
> Hi, I am trying to solve the differential equations like
> 
> y'[x]= - Sin[ p*x + y[x] ]
> 
> where p is a parameter. Now I want to solve the equation with respect
> to x for a range of values of p, instead for just a single p.
> What is the best way to do it?

Hi Ivan,

If I have correctly understood your request, you are looking for an 
analytic solution. The general solution can be obtain with *DSolve*. For 
instance,

In[1]:=
eqn = y'[x] == -Sin[p*x + y[x]];
sol = DSolve[eqn, y, x];
y[x] /. sol[[1]]
eqn /. sol[[1]] // FullSimplify

Out[3]=
                                 2
-p x + 2 ArcTan[(1 - Sqrt[-1 + p ]

             1              2                 2
         Tan[- (-Sqrt[-1 + p ] x + Sqrt[-1 + p ] C[1])])
             2

        / p]

Out[4]=
True

HTH,
Jean-Marc


  • Prev by Date: Re: Solving differential equations with parameters
  • Next by Date: Re: Changing "point" styles in 3D plots
  • Previous by thread: Re: Solving differential equations with parameters
  • Next by thread: Re: Solving differential equations with parameters