Subject: Taylor series solution to diff eq. in maxima
From: Chris J Nassar (RIT Student)
Date: Fri, 04 Dec 2009 15:17:16 -0500
In mathematica I can solve a differential equation using a series
approach using the following code...
In[3]:= Derivative[N_][P][0] := D[P''[x], {x, N - 2}] /. x -> 0
In[4]:= P''[x] = (1/P[x])*(P'[x])^2 + (P[x])^2*(A)) -P[x]*(B)
In[5]:= P'[0] = 0
In[6]:= P''[0] = P''[x] /. x -> 0
In[7]:= PTAYLOR = Series[P[x], {x, 0, 3}]
maxima complains about the first assignment...
diff(p(x),x,2) : (1/p(x))*(diff(p(x),x))^2+p(x)^2*(A))-p(x)*(B));
assignment: cannot assign to diff(p(x),x,2)
-- an error. To debug this try: debugmode(true);
How should I consider solving this equation in maxima?
Thanks,
Chris