Question: Solve the linear boundary value problem u_xx-u = -x-2sin(x) u(0)=0, u(pi)=pi Use finite differences to get a linear system and solve with a matrix solver

 Solve the linear boundary value problem u_xx-u = -x-2sin(x) u(0)=0, u(pi)=pi

Solve the linear boundary value problem u_xx-u = -x-2sin(x) u(0)=0, u(pi)=pi Use finite differences to get a linear system and solve with a matrix solver using Matlab or whatever language you use. Let h = pi/1000. Plot the solution and give the error sigma_i=1^1000 (u_i^a - u_i^t)^2 h where and u_i^a and u_i^t represent the numerical and exact solutions respectively. The exact solution is u = x + sin(x). Solve the linear boundary value problem u_xx-u = -x-2sin(x) u(0)=0, u(pi)=pi Use finite differences to get a linear system and solve with a matrix solver using Matlab or whatever language you use. Let h = pi/1000. Plot the solution and give the error sigma_i=1^1000 (u_i^a - u_i^t)^2 h where and u_i^a and u_i^t represent the numerical and exact solutions respectively. The exact solution is u = x + sin(x)

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!