Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with this matlab problem. Thank you in advance. Consider the following ODE: d 2 y d x 2 + x 2 d

I need help with this matlab problem. Thank you in advance.
Consider the following ODE:
d2ydx2+x2dydx+y=4cos(x), for ,0x10, with ,y(0)=3, and ,y(10)=2
Write a script that:
named ys.
finite difference approximations in your formulation.
b) Solve for y(x) using the finite difference method with x=0.5. Save result as a column vector named ydx.
c) Solve for y(x) using the finite difference method with x=0.25. Save result as a column vector named ydx2.
d) Solve for y(x) using the finite difference method with x=0.05. Save result as a column vector named ydx3.
e) Compare the accuracy of your results for (b),(c), and (d) by doing the following:
vectors of lona values. Note this means you will need to extract only the relevant y values (corresponding to the specified nodes) from your solutions for (b),(c) and (d) to use in this calculation.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems Analysis And Synthesis Bridging Computer Science And Information Technology

Authors: Barry Dwyer

1st Edition

0128054492, 9780128054499

More Books

Students also viewed these Databases questions