In: DSolve[y''[x]==ay'[x]+y[x],y,x]
DSolve::dvnoarg: The function y appears with no arguments
Out: DSolve[y''[x]==(ay)/x+y[x],y,x]
Wha?
Try above. You missed the argument x.
Sorasak
at first "ay" and "a y" are different things, the first is the symbol ay,
the second mean a*y
second my Mathematica 5.0 say
In[]:=DSolve[y''[x] == a y'[x] + y[x], y, x]
Out[]={{y -> Function[{x}, E^(((a - Sqrt[4 + a^2])*x)/2)*
C[1] + E^(((a + Sqrt[4 + a^2])*x)/2)*C[2]]}}
third the error message you report is inconsistent with your input.
The error message
> DSolve::dvnoarg: The function y appears with no arguments
comes typical from a forgotten argument, i.e.
DSolve[y'[x] == l*y, y[x], x]
instead of
DSolve[y'[x] == l y[x], y[x], x]
We *can* not help you if you don't provide your correct input!
Regards
Jens
"Will Oram" <spa...@NOSPAM.foxchange.NOSPAM.com> schrieb im Newsbeitrag
news:br4254$j1n$1...@smc.vnet.net...
In[1]=sol[a_] :=DSolve[y''[x] == a y'[x] + y[x], y[x], x]
In[2]=f[x_, a_] := y[x] /. sol[a][[1]]
In[3]=f[x,a]
Out[3]=Exp[0.5*(a-Sqrt[4+a^2])x]C[1]+Exp[0.5*(a+Sqrt[4+a^2])x]C[2]
regards
--
extrabyte
http://extrabyte.splinder.it
http://www.hardwarenonsolo.3go.it
Mariusz
>>> Will Oram<spa...@NOSPAM.foxchange.NOSPAM.com> 12/9/2003 3:46:28 AM >>>
You need a space between the a and the y'[x].
> I'm using Mathematica 5; DSolve[] never works. I am literally copying from
> its own documentation, and it still spits out failures. For example:
> In: DSolve[y''[x]==ay'[x]+y[x],y,x]
> DSolve::dvnoarg: The function y appears with no arguments
> Out: DSolve[y''[x]==(ay)/x+y[x],y,x]
This isn't quite the problem the documentation gives. There should be a space between a and y'. However, either with the space or without the space DSolve gives me an answer in Mathematica 5.0. Does DSolve fail as you outlined when this is the first thing done in a newly started session? If yes, then it would seem there is something wrong with your Mathematica installation. If no, then there must be something else in your notebook preventing DSolve from working correctly in this example.
--
To reply via email subtract one hundred and nine
You didn't get that output from that input.
DSolve[y''[x]==ay'[x]+y[x],y,x]
{{y -> Function[{x},
E^x*C[1] + C[2]/E^x +
(E^(2*x)*Integrate[
((1/2)*Derivative[
1][ay][K$1927])/
E^K$1927, {K$1927,
K$1928, x}] +
Integrate[(-(1/2))*
E^K$2236*
Derivative[1][ay][
K$2236], {K$2236,
K$2237, x}])/E^x]}}
You omitted a space between a and y on the right side of the equation,
leading to this strange result.
The input you actually used was probably
DSolve[y''[x] == a y/x + y[x], y, x]
which returns the output in your post. On the other hard, copying and
pasting from Help gives:
DSolve[y''[x] == a y'[x] + y[x], y, x]
{{y -> Function[{x},
E^((1/2)*(a - Sqrt[
4 + a^2])*x)*C[1] +
E^((1/2)*(a + Sqrt[
4 + a^2])*x)*C[2]]}}
Bobby
Will Oram <spa...@NOSPAM.foxchange.NOSPAM.com> wrote in message news:<br4254$j1n$1...@smc.vnet.net>...
Adam Smith
Will Oram <spa...@NOSPAM.foxchange.NOSPAM.com> wrote in message news:<br4254$j1n$1...@smc.vnet.net>...