Question

1. We consider the two-point boundary problem uy00(t) + vy0(t) + wy(t) = f(t), where a...

1. We consider the two-point boundary problem uy00(t) + vy0(t) + wy(t) = f(t), where a ≤ t ≤ b and y(a) = α, y(b) = β Here u,v,w, are constants and f(t) is a given function. We assume that u 6= 0.


(a) Using the numerical techniques discussed in the book (or class) show how an approximation to y(t) on the interval a ≤ t ≤ b may be generated by solving a tridiagonal system of linear equations of the form AX = B. What is A; what is B?

(b) Write a Matlab function with prototype [t y] = tpbvp(a, b, n, alpha, beta, u, v, w, f) that implements this numerical technique, where all constants are as discussed above. More specifically, t is an array of n+1 equally spaced values between (and including) a and b; y is the array of n + 1 values to be calculated with y(1) = alpha, y(n+1) = beta.

(c) How did you test your function above for accuracy?

Homework Answers

Answer #1

Solution:

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Consider the function f (t)= (−1)n if n < t ≤ n + 1 and where...
Consider the function f (t)= (−1)n if n < t ≤ n + 1 and where n ∈ N denotes a non-negative integer. Calculate: a. f ( 1 ) b. f ( 11.5 ) c. f (sqrt(1000000000000000000000000000000000012+1)) d. limt-> infinityf2(t)
Let random variable X ∼ U(0, 1). Let Y = a + bX, where a and...
Let random variable X ∼ U(0, 1). Let Y = a + bX, where a and b are constants. (a) Find the distribution of Y . (b) Find the mean and variance of Y . (c) Find a and b so that Y ∼ U(−1, 1). (d) Explain how to find a function (transformation), r(), so that W = r(X) has an exponential distribution with pdf f(w) = e^ −w, w > 0.
1. Find the constants a and b so that the function f is continuous, where f(x)...
1. Find the constants a and b so that the function f is continuous, where f(x) =(ax^2 + bx if x <=1 or x > 2; (7x+4) 3 if 1 < x <= 2
Consider Theorem 3.25: Theorem 3.25. Let f : A → B, let S, T ⊆ A,...
Consider Theorem 3.25: Theorem 3.25. Let f : A → B, let S, T ⊆ A, and let V , W ⊆ B. 1. f(S ∪T) = f(S)∪f(T) 2. f(S ∩T) ⊆ f(S)∩f(T) 3. f-1(V ∪W) = f-1(V )∪f−1(W) 4. f-1(V ∩W) = f-1(V )∩f−1(W) (a) Prove statement (2). (b) Give an explicit example where the two sides are not equal. (c) Prove that if f is one-to-one then the two sides must be equal.
1.a Implication: If an endomorphism f : V → V is not an isomorphism, then it...
1.a Implication: If an endomorphism f : V → V is not an isomorphism, then it must have a non-trivial kernel. Use this implication, together with the definition of determinant given in class, to show that if for an endomorphism f : V → V we have det(f) 6 /= 0, then in fact f is an isomorphism. 1.b. The Rank-Nullity Theorem applies to a linear map f : V → W (where V is finite dimensional) and claims that:...
(1 point) Consider the function f(t)=2sin(t)+2. If f( t ) is reflected about the horizontal axis,...
(1 point) Consider the function f(t)=2sin(t)+2. If f( t ) is reflected about the horizontal axis, what is the formula for the resulting function? y= ? If f(t ) is reflected about the vertical axis, what is the formula for the resulting function? y= ?
y[n] =b(ax[n] +x[n-1]+ax[n-2]) where a&b >0. Find the frequency response of the system H(e^jw). Determine the...
y[n] =b(ax[n] +x[n-1]+ax[n-2]) where a&b >0. Find the frequency response of the system H(e^jw). Determine the values of a & b, if the magnitude response of the filter at w = 0 is 1 and at w =pi÷2 is 0.5. thanks
consider the following functions where a and b are unspecific constants f(x)=x^2+ax+b/x-1, is the line x=1...
consider the following functions where a and b are unspecific constants f(x)=x^2+ax+b/x-1, is the line x=1 necessary a vertical asymptote, explain
Given a search problem where some elements are searched more than others, it is more important...
Given a search problem where some elements are searched more than others, it is more important to minimize the total cost of several searches rather than the worst-case cost of a single search. If x is a more frequent search target than y, building a tree where the depth of x is smaller than the depth of y will work better, even if that means increasing the overall depth of the tree. A perfectly balanced tree is not the best...
Consider the joint density function f (x, y) = 1 if 0<= x<= 1; 0<=y<= 1....
Consider the joint density function f (x, y) = 1 if 0<= x<= 1; 0<=y<= 1. [0 elsewhere] a) Obtain the probability density function of the v.a Z, where Z = X^2. b) Obtain the probability density function of v.a W, where W = X*Y^2. c) Obtain the joint density function of Z and W, that is, g (Z, W)
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT