I have a second order ODE of the form :
u''[x]+ p[x]u'[x]+ q[x] u[x]==0 ;
with,
p[x]= -(((1.15+ 4.3 x - 6 x^2))/(-0.03333333333333333 + 1.15 x + 2.15 x^2 - 2 x^3))
q[x]= ((6 -(0.06666666666666667/x^2) +(1.15/x) + 2 x))/(-0.03333333333333333+ 1.15 x + 2.15 x^2 - 2 x^3)
With Boundary condition
u[0]==0,u'[0]==0
When I solved it using NDSolve, I got the following errors :
Power::infy: Infinite expression 1/0.^2 encountered. >>
Power::infy: Infinite expression 1/0. encountered. >>
Infinity::indet: Indeterminate expression 6.+ComplexInfinity+ComplexInfinity
encountered. >>
NDSolve::ndnum: Encountered non-numerical value for a derivative at x == 0.`. >>
Could anyone please help me in solving this or similar equation ? Any suggestion in this regard is appreciated. Thanks in advance
I have used the following code:
Clear[u, t, x, eq, sol, v];
L = 6; m = -0.1; n = 1.15; k = 1.15;
p = (-2 x^3 + (x^2) (1 + k) + n x + m/3);
eq = -((L + (2 x + (n/x) + (2 m)/(3 x^2)) )/p) u[x]
-D[p, x]/p D[u[x], x] + D[D[u[x], x], x];
eqn = {eq == 0, u[0] == 0, D[u[x],x]/.x->0 == 0};
sol = NDSolve[eqn, u, {x, 0, 1}]
{}
button above the edit window. The edit window help button?
is also useful for learning how to format your questions and answers. You may also find this this meta Q&A helpful $\endgroup$