Numerical Analysis
Numerical Analysis
3rd Edition
ISBN: 9780134696454
Author: Sauer, Tim
Publisher: Pearson,
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 7.3, Problem 1CP

Use the Collocation Method with n = 8 , 16 to approximate solutions to the linear boundary value problems

a. { y = y + 2 3 e t y ( 0 ) = 0 y ( 1 ) = 1 3 e

b. { y = ( 2 + 4 t 2 ) y y ( 0 ) = 1 y ( 1 ) = e

Plot the approximate solutions together with the exact solutions (a)

y ( t ) = t e t / 3 and (b)

y ( t ) = e t 2 , and display the errors as a function of t in a separate semilog plot.

a.

Expert Solution
Check Mark
To determine

To find: Approximate solution for linear boundary value problem by collocation method.

Explanation of Solution

% Program for Finite element solution of linear BVP
% Inputs are interval inter, boundary values bv, number of steps n
% Output: solution values c
function c=bvpfem(inter,bv,n)
a=inter(1);b=inter(2);ya=bv(1);yb=bv(2);
h=(b-a)/(n+1);
alpha=(8/3)*h+2/h; beta = (2/3)*h-1/h;
e=ones(n,1);
M=spdiags([beta*e alpha*e beta*e],-1:1,n,n);
d=zeros(n,1);
d(1)= -ya*beta;
d(n)= -yb*beta;
c=M\d;
c= bvpfem([0 1],[0 0.33e],8);

Collocation is applied y=y+23et by expanding the solution into monomial basis functions y(t)=j=1ncjtj1. Substituting the boundary conditions gives c1=0andc1++cn=e/3 he remaining n-2 equations use the differential equation:

  j=1ncj[(j1)(j2)tij3tij1]=23eti for i=2,,n2  Using evenly-spaced base points ti=(i-1)/(n-1) results in nn equations in the nn unknowns cj. After solving for cj by Gaussian elimination, the solution y(t)=cjtj1 is plotted on [0,1] for n=8 and 16, shown below. In addition, the differences between the approximate and exact solution are plotted for n=8. The differences for n=16 are near machine epsilon (not shown).

  Numerical Analysis, Chapter 7.3, Problem 1CP , additional homework tip  1

b.

Expert Solution
Check Mark
To determine

To find: Approximate solution for linear boundary value problem by collocation method.

Explanation of Solution

% Program for Finite element solution of linear BVP
% Inputs are interval inter, boundary values bv, number of steps n
% Output: solution values c
function c=bvpfem(inter,bv,n)
a=inter(1);b=inter(2);ya=bv(1);yb=bv(2);
h=(b-a)/(n+1);
alpha=(8/3)*h+2/h; beta = (2)*h-4/h;
e=ones(n,1);
M=spdiags([beta*e alpha*e beta*e],-1:1,n,n);
d=zeros(n,1);
d(1)= -ya*beta;
d(n)= -yb*beta;
c=M\d;

c= bvpfem([0 1],[1 e],16);

Similar to (a). The first and last equations are c1=1and c1+…+cn=e. The remaining n-2equations are j=1ncj[(j1)(j2)tij32tij14ti2tij1]=0.

Substituting  ti=(i1)(n1) fori=2,,n1  and solving for  cj  gives the approximate solutions shown below.

  Numerical Analysis, Chapter 7.3, Problem 1CP , additional homework tip  2

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!

Chapter 7 Solutions

Numerical Analysis

Additional Math Textbook Solutions

Find more solutions based on key concepts
Knowledge Booster
Background pattern image
Math
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, subject and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
Discrete Mathematics and Its Applications ( 8th I...
Math
ISBN:9781259676512
Author:Kenneth H Rosen
Publisher:McGraw-Hill Education
Text book image
Mathematics for Elementary Teachers with Activiti...
Math
ISBN:9780134392790
Author:Beckmann, Sybilla
Publisher:PEARSON
Text book image
Calculus Volume 1
Math
ISBN:9781938168024
Author:Strang, Gilbert
Publisher:OpenStax College
Text book image
Thinking Mathematically (7th Edition)
Math
ISBN:9780134683713
Author:Robert F. Blitzer
Publisher:PEARSON
Text book image
Discrete Mathematics With Applications
Math
ISBN:9781337694193
Author:EPP, Susanna S.
Publisher:Cengage Learning,
Text book image
Pathways To Math Literacy (looseleaf)
Math
ISBN:9781259985607
Author:David Sobecki Professor, Brian A. Mercer
Publisher:McGraw-Hill Education
01 - What Is A Differential Equation in Calculus? Learn to Solve Ordinary Differential Equations.; Author: Math and Science;https://www.youtube.com/watch?v=K80YEHQpx9g;License: Standard YouTube License, CC-BY
Higher Order Differential Equation with constant coefficient (GATE) (Part 1) l GATE 2018; Author: GATE Lectures by Dishank;https://www.youtube.com/watch?v=ODxP7BbqAjA;License: Standard YouTube License, CC-BY
Solution of Differential Equations and Initial Value Problems; Author: Jefril Amboy;https://www.youtube.com/watch?v=Q68sk7XS-dc;License: Standard YouTube License, CC-BY