Question: Problem 1: Solve the following ordinary differential equation: 7- -2- dx 7 dy 2 dy -y+x=0 dx with the boundary conditions y(0) = 5

Problem 1: Solve the following ordinary differential equation: 7- -2- dx 7

Problem 1: Solve the following ordinary differential equation: 7- -2- dx 7 dy 2 dy -y+x=0 dx with the boundary conditions y(0) = 5 and y(20) = 8, using the finite-difference approach with h = 2. a) Draw the discretized domain with the nodes. Using centered differences for the first and second derivatives, write an approximate expression for the ODE at the interior nodes xi. This generic expression should be valid for all interior nodes. b) Write the system of equations (i.e. each equation at each interior node). c) Write the system in matrix format and solve in Matlab using the left matrix divide command\ d) Plot your results in Matlab.

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 Mechanical Engineering Questions!