Re: For help about NSolve

*To*: mathgroup at smc.vnet.net*Subject*: [mg88350] Re: For help about NSolve*From*: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>*Date*: Fri, 2 May 2008 03:45:14 -0400 (EDT)*Organization*: The Open University, Milton Keynes, UK*References*: <fvbr3m$pj2$1@smc.vnet.net>

xxhai wrote: > Differential Equation: > y[x]''+y[x]*{(1+y[x]'^2)}^(3/2)=0 > > aboundery condition: y[0]=0, y[1]=0 > > For Numerical Solution ? > > why Mathematica can't solve the Equation with the initial condition ? > > please give the correct program for differential equation. > > > thank you a lot. (* Here is an example of how to use NDSolve and its result *) nsol = NDSolve[{y''[x] + y[x]*((1 + y'[x]^2))^(3/2) == 2, y[0] == 0, y[1] == 0}, y, {x, 0, 1}] Plot[y[x] /. nsol[[1]], {x, 0, 1}] Table[y[x] /. nsol[[1]], {x, 0, 1, 0.1}] (* As given, your original equation has y(x) = 0 as solution *) nsol = NDSolve[{y''[x] + y[x]*((1 + y'[x]^2))^(3/2) == 0, y[0] == 0, y[1] == 0}, y, {x, 0, 1}] Plot[y[x] /. nsol[[1]], {x, 0, 1}] Table[y[x] /. nsol[[1]], {x, 0, 1, 0.1}] Regards, -- Jean-Marc