Finite differences for odes

Assignment Help Engineering Mathematics
Reference no: EM13916292

Question 1:

Finite differences for ODES:

Consider the following ordinary differential equation (which is a type of Euler's equation):

x2y'' + 2xy' -6y = 4x

Consider several accompanying conditions:
IV P1 : y(1) = 0, y'(1) = 3
IV P2 : y(1) = 6, y'(1) = 3
BVP : y'(1) = 3, y(2) = 5

For the following parts use a step size h ≤ 0.5. If you are doing it by hand, it is recommended you use the largest permissible size (h = 0.5) in all calculations below.

1. Convert the differential equation into a finite difference equation. Hints: Ignore the conditions for the moment. You can use forward, backwards or centred differences for the derivative and double derivative. Several choices will work, but it is advisable to make your selections in order to minimise truncation errors.

2. Use the finite difference equation from part1 to calculate numerically for IV P1, y(2). Hint: you will need to convert the derivative condition into a finite difference equation. As before, minimise the truncation error for your choice of differences.

3. Use the finite difference equation from part1 to calculate numerically for IV P 2, y(2).

4.Use parts2 and 3 to estimate for BV P y(1).

5. Solve the differential equation for all three conditions analytically to check the accuracy of your numerical answers. Hint: apply the transformation t = ln(x) to convert to a 2nd order linear differential equation with constant coefficients.

6. Is the method used here based on finite differences more or less accurate than using the Euler method? Compare them with equal step size. Try to answer using theory (and then check using a program if you wish).

Notes: This question can be done manually by using h = 0.5. This will provide practice for the exam. For this assignment this is satisfactory (even if highly inaccurate!). However if you want reasonable accuracy, you should decrease h and use a computer program. Most marks are nevertheless awarded for the methods (eg deriving the difference equations) rather than numbers or computer programs.

Question 2:

Fourier series:

1. Find the Fourier series (by using integrals) for the half-wave rectified sine function:

f(x) =  0           -1 < x< 0

         sin (Πx)    0 <  x < 1

where f (x) has period 2. (This needs to be attempted by hand, but you can use Maple to check your answer.)

2. Generate graphical output for the series obtained in the previous part with 2 nonzero cosine terms for -2 ≤ x ≤ 2.

3. Generate graphical output for the series obtained in the previous part with 10 nonzero cosine terms for -2 ≤ x ≤ 2.

4. Generate graphical output for the series obtained in the previous part with 2 nonzero cosine terms and sigma-approximation for -2 ≤ x ≤ 2.

5. Generate graphical output for the series obtained in the previous part with 10 nonzero cosine terms and sigma-approximation for -2 ≤ x ≤ 2.

6. Comment on the effect that sigma-approximation has on the convergence of these (truncated) series.

Question 3:

Diffusion-advection equation:

A commonly used partial differential equation when modelling fluids is the diffusion-advection equation (also called the convection-diffusion equation). It is a combination of the heat equation (section 5.2) and advection equation (example 6.7) but we will consider it in its own right here.

Consider a river where the flow is a constant u = 0.5ms-1. At one point on the river a hydrologist is going to continually add a fixed concentration of C0 = 0.1kgm-3 of dye. The dye will flow with the water but will also diffuse according to a diffusion coefficient of D = 0.1m2s-1. Let C(x, t) be the concentration x metres downstream from the release point and t seconds from starting the release.

Furthermore at t = 0 the hydrologist has spread some more dye for the first 7.5m.

A simple model for this situation is given by the diffusion-advection equation:

∂C/∂t + ∂C/∂x = D∂2C/∂x2

We have initial time and spatial conditions (respectively) of:

C(x, 0) = f (x) = C0 (1 - x/7.5) 0 ≤ x ≤ 7.5

                               0                x > 7.5

C(0, t) = g(t) = C0

In this question we will develop a numerical method to solve this PDE.

1. Classify the diffusion-advection equation as hyperbolic/parabolic/elliptic/mixed.

2. Construct a finite difference equation for the diffusion-advection equation.

Some tips: one boundary is the initial time. Therefore we want to work forward in time. This should suggest what type of difference to use for the time derivative. Due to the double derivative of C being present, you will naturally have to sample values for (at least) 3 different C values. This means it does not matter so much which type of difference you use for the (single) C derivative. It is best to choose the lowest truncation error where possible.

Let xi = ih, tj = jk and Ci,j = C(xi, tj ) where h and k are step sizes. Use h = 3 and k = 5. The finite difference equation will probably be Ci,j+1 = ....

3. Use your finite difference equation to predict the value at x = 3m and t = 10s.

Note: You may use a computer program to help you here with these calculations. You can alternatively do them by hand instead.

4. How many iterations are required to evaluate the concentration at x = nh and t = mk?

(That is, how many times must you use the finite difference equation?)

Reference no: EM13916292

Questions Cloud

Calculate the sample size : Calculate the sample size needed given these factors:
State reasons why seniority received increasing attention : State the five reasons why seniority has received increasing attention in labor negotiations over the past few decades, and identify the advantages of the three major systems used where an employee acquires and applies seniority credits.
What are degrees of freedom : 2.What are degrees of freedom? How are they calculated? 3.What do inferential statistics allow you to infer? 4.What is the General Linear Model (GLM)? Why does it matter?
Disadvantages of quasi-experiments : Jackson (2012), even-numbered chapter exercises, p 360. Describe the advantages and disadvantages of quasi-experiments? What is the fundamental weakness of a quasi-experimental design? Why is it a weakness? Does its weakness always matter?
Finite differences for odes : Convert the differential equation into a finite difference equation -  Use the finite difference equation from part1 to calculate numerically.
What is the employee free choice act : How will it help or hurt companies? What is your opinion of the act as far as how it will affect the workplace and work force? (facts to back it up if possible) Please be as detailed as possible and cite all sources.
How are the skill sets different for answering phones : How are the skill sets different for answering phones and for writing e-mail responses? What suggestions could you make to a trainer preparing customer service reps for chat and e-mail responses?
Criminal procedure and criminal evidence : Criminal Procedure and Criminal Evidence-What are the charges (what crime is alleged to have occurred);
Losing sight of underlying consumer needs : Q1. ________ refers to sellers being preoccupied with their own products and losing sight of underlying consumer needs.

Reviews

Write a Review

Engineering Mathematics Questions & Answers

  Prime number theorem

Dirichlet series

  Proof of bolzano-weierstrass to prove the intermediate value

Every convergent sequence contains either an increasing, or a decreasing subsequence.

  Antisymmetric relations

How many relations on A are both symmetric and antisymmetric?

  Distributed random variables

Daily Airlines fies from Amsterdam to London every day. The price of a ticket for this extremely popular flight route is $75. The aircraft has a passenger capacity of 150.

  Prepare a system of equations

How much money will Dave and Jane raise for charity

  Managing ashland multicomm services

This question is asking you to compare the likelihood of your getting 4 or more subscribers in a sample of 50 when the probability of a subscription has risen from 0.02 to 0.06.]  Talk about the comparison of probabilities in your explanation.

  Skew-symmetric matrices

Skew-symmetric matrices

  Type of taxes and rates in spokane wa

Describe the different type of taxes and their rates in Spokane WA.

  Stratified random sample

Suppose that in the four player game, the person who rolls the smallest number pays $5.00 to the person who rolls the largest number. Calculate each player's expected gain after one round.

  Find the probability density function

Find the probability density function.

  Develop a new linear programming for an aggregate production

Linear programming applied to Aggregate Production Planning of Flat Screen Monitor

  Discrete-time model for an economy

Discrete-time model for an economy

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