Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following boundary value problem for u(x): { u(x)+u'(x)+u'' (x)=f(x), x(a,b), 1u(a) + 1u(a) = 1, 2 u(b) + 2 u(b) = 2 .

Consider the following boundary value problem for u(x): {

u(x)+u'(x)+u'' (x)=f(x), x(a,b),

1u(a) + 1u(a) = 1, 2u(b) + 2u(b) = 2.

Apply the second-order finite difference method to the above system. Use Use n equa-distant sub- intervals.

u = fd2_bvp(a,b,alpha,beta,gamma,alpha1,beta1,gamma1,alpha2,beta2,gamma2,f).

f is a column vector with each element as a function evaluation of f(x). u is a column vector as the numerical approximations. Use the three-point centered-difference formula for the interior points.

Use FDF2 and BDF2 formulas for the two end points.

Use the lu command to solve the linear system.

Write a "Matlab" program to do the above question. Thank you!

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

From Zero To Data Hero With Chatgpt

Authors: Andrew Wu

1st Edition

B0CQRJPXD9, 979-8989523009

More Books

Students also viewed these Databases questions

Question

What entry barriers does your industry pose to possible entrants?

Answered: 1 week ago