Example on eulers method, Mathematics

Assignment Help:

For the initial value problem

y' + 2y = 2 - e-4t, y(0) = 1

By using Euler's Method along with a step size of h = 0.1 to get approximate values of the solution at t = 0.1, 0.2, 0.3, 0.4, and 0.5. Compare them to the accurate values of the solution as such points.

Solution

It is a fairly simple linear differential equation thus we'll leave it to you to check that the solution as

y(t) = 1 + ½ e-4t - ½ e-2t

Thus as to use Euler's Method we first want to rewrite the differential equation in the form specified in (1).

y'= 2 - e-4t-2y

From that we can notice that f (t, y ) = 2 - e-4t  - 2y.  Also see that t = 0 and y0 = 1.  We can here start doing many computations.

fo = f(0,1) = 2 - e-4(0)  - 2(1) = -1

y1 = y0 + h f0 = 1 (0.1) (-1) = 0.9

Therefore, the approximation to the solution at t1 = 0.1 is y1 = 0.9.

At the next step we contain

f1 = f(0.1,0.9) = 2 - e-4(0.1)  - 2(0.9) = -0.470320046

y2 = y1 + h f1 = 0.9 + (0.1) (-0.470320046) = 0.852967995

Therefore, the approximation to the solution at t2 = 0.2 is y2 = 0.852967995.

I'll leave this to you to verify the remainder of these calculations.

 f2  =-0.155264954,     y3  = 0.837441500

f3  =0.023922788,        y4  = 0.839833779

f4  =0.1184359245,      y5  = 0.851677371

Here's a rapid table which gives the approximations and also the exact value of the solutions at the specified points.

Time, tn

Approximation

Exact

Error

t0 = 0 t1 = 0.1 t2 = 0.2 t3 = 0.3 t4 = 0.4 t5 = 0.5

y0 =1

y1 =0.9

y2 =0.852967995

y3 =0.837441500

y4 =0.839833779

y5 =0.851677371

y(0) = 1

y(0.1) = 0.925794646

y(0.2) = 0.889504459 y(0.3) = 0.876191288 y(0.4) = 0.876283777 y(0.5) = 0.883727921

0 %

2.79 %

4.11 %

4.42 %

4.16 %

3.63 %

We've also comprised the error as a percentage. It's frequently easier to notice how well an approximation does whether you look at percentages. The formula for that is,

 Percent error = (|exact - approximate|/exact) - 100

We utilized absolute value in the numerator because we actually don't care at this point if the approximation is smaller or larger than the exact. We're merely interested in how close the two are.

The maximum error in the approximations from the previous illustration was 4.42 percent that isn't too bad, although also isn't all that great of an approximation. Thus, provided we aren't after very correct approximations such didn't do too badly. This type of error is commonly unacceptable in almost all actual applications though. Consequently, how can we get better approximations?

By using a tangent line recall that we are getting the approximations to approximate the value of the solution and which we are moving forward in time through steps of h. Therefore, if we need a more accurate approximation, so it seems like one manner to get a better approximation is to not move forward as much along with each step. Conversely, take smaller h's.


Related Discussions:- Example on eulers method

Speed and distance, Two trains were traveling in opposite directions, movin...

Two trains were traveling in opposite directions, moving away from one another. One train was moving at 5 miles per hour. The other train was moving at 6 miles per hour. They were

Determine the value of the unknown side of a right triangle, Determine the ...

Determine the value of the unknown side of a right triangle: The two legs of a right triangle are 5 ft and 12 ft.  How long is the hypotenuse? Now Let the hypotenuse be c ft.

How many relations are possible from a set, How many relations are possible...

How many relations are possible from a set A of 'm' elements to another set B of 'n' elements?     Ans: A relation R from a set A to other set B is specified as any subset of A

Angles, Find the acute angle theta that satisfies the given equation. Give ...

Find the acute angle theta that satisfies the given equation. Give theta in both degrees and radians. You should do these problems without a calculator. Sin= sqroot3/2

What percent the girls surveyed said that area hockey sport, 450 girls were...

450 girls were surveyed about their favorite sport, 24% said in which basketball is their favorite sport, 13% said in which ice hockey is their favorite sport, and 41% said which s

Find out the center of mass, Find out the center of mass for the region bou...

Find out the center of mass for the region bounded by y = 2sin (2x), y =0 on  the interval  [0 , Π/2] Solution Here is a sketch (diagram) of the region along with the cent

Surface area of prisms , Can you help me find out how to find the surface a...

Can you help me find out how to find the surface area of a prism

Sketch the plot first-order integrated rate, Show that the first-order inte...

Show that the first-order integrated rate expression can be written as [A] t = [A] 0 e -n(in)t where n represents the number of elapsed halftimes. Sketch the plot of [A] 1

Level curves or contour curves - three dimensional space, Level Curves or C...

Level Curves or Contour Curves Another topic that we should look at is that of level curves or also known as contour curves. The level curves of the function z = f (x, y) are t

Hyperboloid of two sheets - three dimensional spaces, Hyperboloid of Two Sh...

Hyperboloid of Two Sheets The equation which is given here is the equation of a hyperboloid of two sheets. - x 2 /a 2 - y 2 / b 2 + z 2 /c 2 = 1 Here is a diagram of

Write Your Message!

Captcha
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