Re: NDSolve with Dirichlet boundary condition
- To: mathgroup at smc.vnet.net
- Subject: [mg107524] Re: NDSolve with Dirichlet boundary condition
- From: Frank Breitling <fbreitling at aip.de>
- Date: Tue, 16 Feb 2010 03:51:00 -0500 (EST)
- References: <hkj8sp$dpg$1@smc.vnet.net> <hl5uj3$ou3$1@smc.vnet.net>
Hi JH,
The problem you are solving is different from mine for it not having
Dirichlet boundary conditions.
However Udo found the solution as follows:
In[1]:= sol = NDSolve[{D[y[x] D[y[x], x], x] == 0, y[0] == 100, y[1]
== 10},
y, {x, 0, 1},
Method -> {"Shooting",
"StartingInitialConditions" -> {y[0] == 1/1000, y'[0] == -1/100}}]
In[2]:= Plot[sol[[1, 1, 2]][x], {x, 0, 1}]
See his reply at http://www.mathematica.ch/dmug-archive/2010/msg00023.html