Reference no: EM131068223
Linear systems that arise in many applications can become quite large. It is often necessary to exploit any structure and /or sparsity in the matrices to reduce the computation burden. We will consider the one-dimensional Poisson equation: -y"(t) = f(t) on [0, 1], with y(0) = y(1) = 0.
Such problems are frequently very hard to handle because it is often not possible to express y(t) in terms of elementary functions (as is done in undergraduate courses on ODE). Numerical methods are employed in order to approximate y(t) at discrete points inside the interval [a, b]. This approach will leads to a linear system of equations.
The approach we consider begins by subdividing the interval [a, b] into n + 1 equal subintervals, each of length b-a/n+1: t0 = a, t1 = a + h, t2 = a + 2h, ··· , tn = a + nh, tn+1 = b; The points ti = a + ih are called grid points, and the value h = b-a/n+1 is called the step size. Smaller step sizes generally produce better approximations to the derivatives, so better accuracy requires smaller step size, and hence larger number of grid points.
Let yi = y(ti) and fi = f(ti), and show that by using the finite difference method, we can compute approximations to yi by solving the linear system Ty = h2f, where
(a) Prove that the matrix T has an LU factorization with L(i, i) = 1 and L(I + 1, i) = -i/i+1, U(i, i) = i+1/i and U(i, i + 1) = -1.
(b) Is partial pivoting needed?
(c) Write a Matlab function T = poissonmat(n) which the n x n matrix T for given n.
(d) Write a Matlab function y = poissonsolve(f) which, given a vector f of length n, computes the solution y of Ty = h2f.
(e) Let f(t) = sin πt, then the right hand side fi = sin π(ti). Experiment with various values of n, say n = 10, 100, 500, 1000. Fill the following table:
n
|
h
|
absolute error
|
residual
|
CPU time
|
10
|
|
|
|
|
100
|
|
|
|
|
500
|
|
|
|
|
1000
|
|
|
|
|
How does a swot analysis align with strategic planning
: Name a company that you consider one of the most creative or innovative. What do you think makes it creative or innovative? Do you think its creativity or innovation can be replicated? How?
|
Describe the population and sampling strategy
: Describe the population and sampling strategy. The sampling strategy should provide a tractable sample while offering the chance to collect enough data.
|
Elective office in the united kingdom
: Which political party did Tony Blair use to contest for elective office in the United Kingdom?
|
Effective academic writing
: This course develops the skills used in writing applied research papers for a university-level audience. Students will write position papers, persuasive essays, and case study analyses.
|
Is partial pivoting needed
: Prove that the matrix T has an LU factorization with L(i, i) = 1 and L(I + 1, i) = -i/i+1, U(i, i) = i+1/i and U(i, i + 1) = -1. Is partial pivoting needed
|
The student compares the very different films
: After reading the student essay, "All in the Family," think about how the student compares the very different films The Godfather and My Big Fat Greek Wedding.
|
Determining the type of government
: Explain any type of government you know in the world history today as long as government types are concerned.
|
A concept of managerial communication
: You are required to post items to the course online discussion forum that add value to the topic that is covered that week linking theory to real world examples. You will have two open discussion postings during the semester (Check syllabus calend..
|
Compare the current state to best practice model
: Development of a methodology for applying the best practice model for the acquisition of ICT to the particular case project that was specified in the Team QA Plan.
|