Determine coefficients the finite difference approximation

Assignment Help Other Engineering
Reference no: EM13863159

Question 1

A forward difference approximation to the first derivative of a function f(x) at xi is given by the formula

(df/dx)= [a1f(xi) + a2f(xi + Δx) + a3f(xi + 2Δx) + a4f(xi + 3Δx) + a5f(xi + 4Δx] / 12Δx

where Δx is the mesh spacing.

(a) Determine coefficients a1, a2, a3, a4, and a5 so that the finite difference approximation is 4th order accurate. You can use Taylor's series expansions, the method of undetermined coefficients or Lagrange polynomial approximation for your derivation, however you should show each step clearly in your calculations.

(b) Use the approximation derived in part (a) to determine the first derivative of the function

f(x) = x3Sin(2x) - 2x

at xi = -3.0 for Δx = 0.1, 0.01, and 0.001. Also calculate the error for each Δx value by using the exact derivative of the function at the given point.

Comment on the results you have obtained.

Question 2

Approximate the function given in part (b) of question 1 using a

(a) natural cubic spline with 13 equally spaced data points on the interval -3.0 ≤ x ≤ 3.0.

(b) clamped cubic spline with 13 equally spaced data points on the interval -3.0 ≤ x ≤ 3.0. For the boundary condition at x = -3.0 approximate the first derivative with the finite difference formula derived in question 1 with ?x = 0.5. For the boundary condition at x = 3.0, use the exact value of the derivative.

For each part (part (a) and part (b)): plot the function and the approximation to the function on the same figure. On another figure plot the
error distribution. Give the error values at x = -2.8, -1.4, 0.0, 1.4, and 2.8 for each case. Using the plots and the error values, comment on the performance of the approximations obtained in part (a) and part (b).

Question 3 Numerically evaluate the integral

x1=0x2=2  y1=0y2=3 (2x 5 +(x2/3) + x)(y3 -(y/4)+ 1)dydx

by using Gaussian quadrature in both directions. For the quadrature in each direction, use the formula with the minimum number of points, which will give you the exact value of the integral in the absence of round-off errors. You can do this problem by hand, with the computer routine you have developed, or using both. However, you should give a full description about your solution and explain your reasoning in the selection of the quadrature formula.

Question 4

dy/dt = (y2 + y)/t,  1.0 ≤ t ≤ 3.0,  y(1) = -2.0

Approximate the solution to the above initial value problem using

(a) 4-step Runge-Kutta Method

(b) 2-step Adams-Bashforth Method

(c) Euler Explicit Method

with a time step of h = 0.1. For the Adams-Bashforth Method, use starting values obtained from 4-stage Runge-Kutta method. For each method, tabulate the error at each time step using the exact solution to this problem:

y(t) = 2t/ (1 - 2t)

Show the approximate solutions and the exact function in the same graph. In another graph, plot the error distributions. Note that you may need to give a separate plot for the error of 4-stage Runge-Kutta scheme to see the trend in a larger scale. Comment on the performance of each method by specifying possible advantages and/or disadvantages.

Reference no: EM13863159

Questions Cloud

Write a program to copy inta to intb in reverse order : Write a code block to compute the individual summation per each column, per each row and the overall summation of chA and write a program to copy intA to intB in reverse order
Describe methods to use in identifying and narrowing : Describe methods to use in identifying and narrowing
Examine the role of internal environmental analysis : Examine the role of internal environmental analysis in identifying the basis for sustained competitive advantage.
Define the three parts of marketing strategy development : What four major psychological factors influence a customer's buying choices? Define the three parts of "Marketing strategy development." A company's products are born, grow, mature, and then decline, just as living things do. To remain vital, a c..
Determine coefficients the finite difference approximation : Determine coefficients a1, a2, a3, a4, and a5 so that the finite difference approximation is 4th order accurate. You can use Taylor's series expansions, the method of undetermined coefficients or Lagrange polynomial approximation for your derivati..
Prepare a formal analysis for case study emr innovations : Prepare a formal analysis (report) for case study "EMR Innovations". Case analyses are required at the beginning of the class period on the assigned date.
Quality improvement milestones : Analyze how this milestone has influenced health care delivery
Who is burberry target customer : Describe Burberry's customer base. Who is Burberry's target customer? How could Burberry's popularity among non-target customers affect the brand? How should Burberry respond to this popularity
How will community diversity issues be addressed : What methods will be used to engage the attention of and involve community members in the accomplishment of your organization's goals? How will community diversity issues be addressed

Reviews

Write a Review

Other Engineering Questions & Answers

  Assignment

I want 8 sources. two books, three articles and three websites. The sources I want to be related to general engineering. Because I want to write a paper, and I cannot find the sources.

  Staff at zack electrical parts case study issues

What were the causes and antecedents of the conflict between the staff audit group and the managers in the plant?

  Industrial engineering job application related problems

Describe a time when you spotted an opportunity and made it happen- What was the situation? Industrial Engineering Job application questions

  Use of videoconferencing technology affect participants

How does the use of videoconferencing technology affect participants' attitudes toward the other teams and teamwork in general?

  Reading output voltage from potentiometer voltage divider

Wire the circuit for Reading the output voltage from Potentiometer Voltage Divider. Verify and upload the sample program, adjust the potentiometer to display reading on the serial monitor

  Effect on the top event frequency

Describes briefly the safety procedure that should be implemented prior to entering a vessel and describes the main requirments of any documentation that could accompany vessel entry particularly with reference to certificates or permits

  Case studya hospital would like to acquire a new medical

case studya hospital would like to acquire a new medical device surgical microscope to improve the success rate of eye

  The test statistic for the hypothesis test

If you randomly select 1 M&M plain candy, what is the probability That the candy will weigh less than 0.8535 g?

  Environmental engineeringquestion 1 analysis of the

environmental engineeringquestion 1 analysis of the movement of a tracer in a contaminated aquifer indicates that the

  Design the digital filter using the bilinear transformation

Design the digital filter using the bilinear transformation and show that the transfer function of the resulting filter may be approximately expressed as:

  How many address bits are needed for each ram chip

How many address bits are needed for each RAM Chip

  Plot a graph using scilab script and include it in

Prepare a Scilab script to evaluate the volumetric flux of smoke in a plume produced by a fire of given HRR Q'' The plume loses a percent of its heat by radiation and ß percent by other means.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd