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

  Why are the project charter statement artifacts critical

Why are the Project Charter and Project Scope Statement artifacts critical to the success of a project? Describe some of the key elements of these artifacts.

  Data classification and ontology hl7, snomed ct and other

Data classification and ontology (HL7, Snomed CT, other ontologies)

  Enmin 5120 tunnelling and mine development a continuous

a continuous miner has the following specifications ltbrgtcutter drum width 3.2m ltbrgtdrum diameter across the picks

  Thin, thick and combined cylinder theory

Strength of Materials: Advanced DV01 35, LO2 Thin, Thick and Combined Cylinder Theory:  This outcome is assessed using all three of the assignments detailed below.   For each assignment you are required to write a report.

  Environmental engineering design - water treatment plant

A flat field, with a standard surface of water, which needs to get to 50,000 people by means of a water treatment facility that you have to design.

  Manufacturing planning

Define the nodes, what they represent, and node values and define the arcs, arc costs, arc capacities if any.

  Find the ultimate bod of the river water

Environmental engineering, CEE 357 Winter 2014. HW#6 Assignment: -  Find the ultimate BOD of the river water as it enters the lake. Find the value of the rate constant for BOD utilization in the river, k d,riv .

  Determine the volume of seawater

CEE 357 Win 2014 HW#1:  What volume of seawater would have to be processed to recover one kilogram of silver, assuming an extraction process with 100% efficiency?

  Introduction of the electrooculogram

Introduction of the electrooculogram (EOG). - theory and usage

  Computer and software purchases are capital expenditures

Computer and software purchases are capital expenditures, even though the expected useful lifetime of computer hardware and software has decreased in recent years because of rapid technological change.

  How thermoelecteric thermometer is contructed

How thermoelecteric thermometer is contructed and how it working

  Determine the airflows and pressure drop

Determine the airflows and pressure drop in each of the branches and what are the flows and pressure drops in each of the branches?

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