approximation, we had to approximate the ï¬rst order derivative using centered differences. But how does this works in reality?
Let us consider the Cauchy Euler equation for y as a function of t (i.e. y = y(t)):
t2y00 + ty0 = 4y (1)
This equation is really popular when we are dealing with an elliptic equation in polar coordinates and we apply separation of variables. The goal of this homework is to see how the discretization of the ï¬rst derivative affects the whole error
Part 1: Dirichlet Boundary Conditions
1. First, let us ï¬nd the analytical solution of      t2y00 + ty0 = 4y 2 ≤ t ≤ 4 y(2) = 1 y(4) = 1
(2)
As a hint, ï¬rst ï¬nd 2 solutions for the general ODE in (1). It is known that each of the solutions should have shape y = tk, where k is a number that you should ï¬nd using (1).
Once you have the general solutions y1 and y2 then the particular solution is y = A∗y1+B∗y2 where A and B are constants that are chosen such that the boundary conditions in (2) are satisï¬ed.
2. Now implement a function that receives N, and returns the approximate value of y at the points t0,t1,t2,...,tN−1,tN, using ï¬nite differences to solve the Boundary Value problem (2). Discretize y0 using centered ï¬nite differences, and y00 with the standard second order approximation.
3. Implement a function that receives N, and returns the approximate value of y at the points t0,t1,t2,...,tN−1,tN, using ï¬nite differences to solve the Boundary Value problem (2). Discretize y0 using forward ï¬nite differences in t, and y00 with the standard second order approximation.
1
4. Solve (2) for N ∈ [5,10,20,50,100,500,1000] and plot the inï¬nity norm of the error per N, i.e. eN = max i=0:N|yi −y(ti)| using method in 2. and in 3., and comparing with the exact solution in 1. How is the error for the methods in 2. and 3.? How can you explain this?
Part 2: Robin Boundary Conditions
5. First, let us ï¬nd the analytical solution of      t2y00 + ty0 = 4y 2 ≤ t ≤ 4 y(2) + y0(2) = 0.4 y(4)−2y0(4) = 0.4
(3)
Since the equation is the same as in part 1, you can use the general solutions you found in 1. The only step that could change is ï¬nding the constants, so now we need to ï¬nd A and B such that y = A∗y1 + B ∗y2 satisï¬es the boundary conditions at (3), where y1 and y2 are general solutions of (1).
6. Now implement a function that receives N, and returns the approximate value of y at the points t0,t1,t2,...,tN−1,tN, using ï¬nite differences to solve the Boundary Value problem (3). Discretize y0 using centered ï¬nite differences, and y00 with the standard second order approximation. Notice that the only rows of the system that will change (with respect to 2.) are the corresponding to y0 and yf. Include the Robin conditions using ï¬ctitious points t−1 and tN+1 and approximating the ï¬rst derivatives with centered differences.
7. Repeat the previous point 6., but include the Robin conditions approximating the ï¬rst derivatives with only 2 points, this means that in i = 0 use Forward differences (y1 and y0); and in i = 0 use Backward differences (yN−1 and yN). Notice that in this case, you can place directly the Robin conditions in the linear system of equations (without using ï¬ctitious points) 8. Solve (3) for N ∈ [5,10,20,50,100,500,1000] and plot the inï¬nity norm of the error per N, i.e. eN = max i=0:N|yi −y(ti)| using method in 6. and in 7., and comparing with the exact solution in 5. How is the error for the methods in 6. and 7.? How can you explain this?
2
good excellent job.. I am extremely satisfied. Very fast response and professional team.
MyAssignmenthelp.com is a reliable college essay writing service provider that students can trust to overcome their academic problems. With a team of most efficient and hardworking assignment writers, we are capable of providing fast essay writing services in more than 100 subjects. Students, who decide to take urgent essay help from us, are guaranteed to receive completed essay assignments within any short time limit. Some of our popular essay help services include application essay help, argumentative essay paper help, literature essay assistance, etc.
Just share requirement and get customized Solution.
Orders
Overall Rating
Experts
Our writers make sure that all orders are submitted, prior to the deadline.
Using reliable plagiarism detection software, Turnitin.com.We only provide customized 100 percent original papers.
Feel free to contact our assignment writing services any time via phone, email or live chat. If you are unable to calculate word count online, ask our customer executives.
Our writers can provide you professional writing assistance on any subject at any level.
Our best price guarantee ensures that the features we offer cannot be matched by any of the competitors.
Get all your documents checked for plagiarism or duplicacy with us.
Get different kinds of essays typed in minutes with clicks.
Calculate your semester grades and cumulative GPa with our GPA Calculator.
Balance any chemical equation in minutes just by entering the formula.
Calculate the number of words and number of pages of all your academic documents.
Our Mission Client Satisfaction
Able to get my work done after few changes, which were done as per suggestion provided by us. Appreciate their positive approach for this
Australia
Amazing experience with you guys. I got 20/20. You are the best in the market i tried multiple sites but you guys gave best output.
Australia
good paper, thank you very much. i am looking forward to working with you. Recommended
Australia
thanks a lot thanks a lot thanks a lot thanks a lot thanks a lot thanks a lot thanks a lot
Australia