Question: How do I solve a differential equation in Maple by defining our own method

April 06 2012 Surabhi Tiwari 0

0

I want to solve numerically the nonlinear problem 

a*(diff(y(x), x, x))+2*(diff(y(x), x))+exp(y(x)) = 0, y(0) = 0, y(1) = 0

by defining my own method defined as 

yn+1=yn+2*h*(-2*yn+2*ln(2/(1+x))-(1/2)*a)^2/(a*(-4*yn+4*ln(2/(1+x))-a-h*(4*yn-4*ln(2/(1+x))+a+x+1)/a))

where h is the step-size. Please help me by letting me know how can I do this using Maple 11.

 

Please Wait...