Question: Use the nonlinear finite difference method ( Newton ' s method ) solve the boundary value problem: u ' ' = - ( u '

Use the nonlinear finite difference method (Newton's method) solve the boundary value problem:
u''=-(u')2-u+lnx,1x2,u(1)=0,u(2)=ln2
(a) Set h=0.5 to approximate the solution of u(x). Compare your results to the actual solution
u(x)=lnx.
(b) Now, solve the boundary value problem with h=[0.001,0.01,0.1,0.25]. Plot your results and the
actual solution.
Note: Please utilize only loops and conditionals in your script. You can use scipy.linalg.solve()
function in Python, or the ??? operator in MATLAB.
 Use the nonlinear finite difference method (Newton's method) solve the boundary

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!