Question: Consider the 2 - point BVP: ODE: y + ( 4 x 2 + 2 ) y = 2 x ( 1 + 2 x
Consider the point BVP:
ODE: yxy xx x ; BCs: y y e
a Show that yx x ex is the exact solution.
c Use the tridiagonal solver you created in class and the given sample code on Blackboard to solve the above point BVP using the secondorder finite difference operator as discussed in class:
i Let the mesh size be h p For each p plot the exact solution yxi and the approximate solution uxi for i h on the same plot; use the subplot in MATLAB to put all your plots on the same page;
ii Let the mesh size be h p For each p produce a table with the following data. Column : h; Column : uh yhinfty ; Column : uh yhinfty h; Column : cpu time;
Column : cpu timeN where h Discuss and explain the trends in each column.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
