Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. A common problem of applied mathematics is that of solving the integral equation f(x) + |K(x,t)y(t)dt -y(x), where the functions f(x) and K(x,t) are

image text in transcribed

2. A common problem of applied mathematics is that of solving the integral equation f(x) + |K(x,t)y(t)dt -y(x), where the functions f(x) and K(x,t) are given and the problem is to compute y(x). If we approximate the integral by the quadrature formula then the integral equation becomes a system of linear algebraic equations: The solution y(C,),i -1,2,..., n, is the desired approximation to the function y(t). Using Simpson's rule, find an approximate solution of the integral equation 3 xy(t)dt =y(x) 0 (a) Write a MATLAB program to solve the equation above. The main program (script file testinteqn.m) calls a general integral equation solver inteqnsolve.m using the function y-inteqn(t, kernel, fun, coef) whose inputs are t - the vector of partition points, kernel- the kernel function K, fun - the function f(x), and coef- the vector of coefficients in the quadrature rule (Simpson's rule in this case) and whose output are the discrete solution values at t. Your program should be general enough to take any coefficient vector [a,,a,,..cn ]TTherefore you should first generate the coefficient vector for Simpson's rule before calling inteqn. You could use another function y = inteqnsolve (X, kernel, f) to generate the Simpson's rule coefficients and solve the integral equation by calling int eqn. In inteqn solve the inputs are x -the partition of [a, b], such that a = x(1)

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

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions

Question

8. Explain the contact hypothesis.

Answered: 1 week ago

Question

7. Identify four antecedents that influence intercultural contact.

Answered: 1 week ago