Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Find the analytic solution of the initial-value problem in Example 1 . Compare the actual values of \({\bf{y}}\left( {{\bf{0}}.{\bf{2}}} \right),{\rm{ }}{\bf{y}}\left( {{\bf{0}}.{\bf{4}}} \right),{\rm{ }}{\bf{y}}\left( {{\bf{0}}.{\bf{6}}} \right),\)and \({\bf{y}}\left( {{\bf{0}}.8} \right)\)with the approximations \({\bf{y}}\left( {{\bf{0}}.{\bf{2}}} \right),{\rm{ }}{\bf{y}}\left( {{\bf{0}}.{\bf{4}}} \right),{\rm{ }}{\bf{y}}\left( {{\bf{0}}.{\bf{6}}} \right),\)and \({{\bf{y}}_4}.\)

Short Answer

Expert verified

The approximation value of \(y\left( {0.2} \right){\rm{, y}}\left( {0.4} \right){\rm{, y}}\left( {0.6} \right)\)and \(y\left( {0.8} \right)\) are \(1.02140000\),\(1.09181796\),\(1.22210646\)and \(1.42552788\)

Step by step solution

01

Definition of analytic solution

  • An analytical answer involves rephrasing the problem in a comprehensible manner and calculating the exact solution.
  • In general, the analytical method is preferred since it is quicker and provides more precise results.
  • Nonetheless, due to time or hardware constraints, we may be forced to use a numerical method.
02

To find the analytic solution

We have the first order differential equation

\({y^\prime } = x + y - 1\)

Which is

\({y^\prime } - y = x - 1\)

With the initial condition

\(y(x = 0) = 1\)

Which is in the differential equation form

\(\frac{{dy}}{{dx}} + P(x)y = Q(x)\)

and we have to solve it as the following technique :

First, we have to find an integrating factor as

\({\rm{ I}}{\rm{.F }} = {e^{\int P (x)dx}}\)

\(\begin{aligned}{l} = {e^{ - \int d x}}\\ = {e^{ - x}}\end{aligned}\)

Second, multiply both sides of the given differential equation by this integrating factor, then we have

\({e^{ - x}}{y^\prime } - {e^{ - x}}y = (x - 1){e^{ - x}}\)

Now, if we backed one step, we would have

\(\begin{aligned}{l}\frac{d}{{dx}}\left( {{e^{ - x}}y} \right) = (x - 1){e^{ - x}}\\\int d \left( {{e^{ - x}}y} \right) = \int {(x - 1)} {e^{ - x}}dx{e^{ - x}}y = \int {(x - 1)} {e^{ - x}}dx\end{aligned}\)

03

Integrating \(\int {(x - 1)} {e^{ - x}}dx\) to find the solutions.

This integration \(\int {(x - 1)} {e^{ - x}}dx\)can be made using integration by parts as the following

If we set \(u = \left( {x - 1} \right),\)then we have \(d{\rm{ }}u = d{\rm{ }}x,\)and if we set \(dv = {e^{ - x}}dx,\)then we have \(v = - {e^{ - x}},\) then we can solve integration as

\(\int {(x - 1)} {e^{ - x}}dx = u \times v - \int v du\)

\(\begin{aligned}{l} = (1 - x){e^{ - x}} + \int {{e^{ - x}}} dx\\ = (1 - x){e^{ - x}} - {e^{ - x}} + c\\ = - x{e^{ - x}} + c\end{aligned}\)

Then we have

\({e^{ - x}}y = - x{e^{ - x}} + c\) (1)

After that, to find the value of constant \(c,\)we have to apply the condition \((x,y) = (0,1)\)into equation \(\left( 1 \right),\)then we have

\(\begin{aligned}{l}{e^0} \times 1 = 0 + c\\1 = 0 + c\\c = 1\end{aligned}\)

Finally, substitute with the value of constant \(c\)into equation (1), then we have

\({e^{ - x}}y = - x{e^{ - x}} + 1\)

Then we have

\(y = - x + {e^x}\) (2)

Is the solution of equation.

04

Determining the actual values from its approximated values.

Now using equation(2), we can obtain the required actual values as the following

The actual value \(y(0.2)\) is

\(y(0.2) = - 0.2 + {e^{0.2}}\)

=1.02140275

The approximated value from example (1) is

\({y_1} = 1.02140000\)

The actual value \(y(0.4)\)is

\(y(0.4) = - 0.4 + {e^{0.4}}\)

\( = 1.09182470\)

The approximated value from example (1) is

\({y_2} = 1.09181796\)

The actual value \(y(0.6)\)is

\(y(0.4) = - 0.6 + {e^{0.6}}\)

\( = 1.22211880\)

The approximated value from example (1) is

\({y_3} = 1.22210646\)

The actual value \(y(0.8)\)is

\(y(0.4) = - 0.8 + {e^{0.8}}\)

\( = 1.42554093\)

The approximated value from example (1) is

\({y_4} = 1.42552788\)

The analytic solution is \(y = - x + {e^x}\)

Therefore the actual value of \(y\left( {0.2} \right){\rm{, y}}\left( {0.4} \right){\rm{, y}}\left( {0.6} \right)\)and \(y\left( {0.8} \right)\) are \(1.02140000\),\(1.09181796\),\(1.22210646\)and \(1.42552788\)respectively.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

In Problems 3 and 4 repeat the indicated problem using the RK4 method. First use h=0.2 and then use h=0.1 .

Approximatey(1.2) , wherey(x) is the solution of the given initial-value problem.

.x2y''โˆ’2xy'+2y=0,y(1)=4,y'(1)=9

Find the analytic solution of the problem and compare the actual value of y (1.2) with y2.

Consider the initial-value problem y'=x2+y3,y(1)=1. See Problem 12 in Exercises 9.1.

  1. Compare the results obtained from using the RK4 method over the interval [1,1.4] with step sizes h = 0.1and h = 0.05.
  2. Use a numerical solver to graph the solution of the initial value problem on the interval [1,1.4].

Repeat Problem 18 for the initial-value problem y'=e-y,y(0)=0.The analytic solution is y(x)=ln(x+1). Approximate y(0.5) See Problem 7

(a) Find a formula involving cand h for the local truncation error in the nth step if the RK4 method is used.

(b) Find a bound for the local truncation error in each step if h = 0.1is used to approximate

(c) Approximate y(1.5)using the RK4 method with h = 0 and h = 0.05 See Problem 3. You will need to carry more than six decimal places to see the effect of reducing the step size.

In Problems 5โ€“12 use computer software to obtain a direction field for the given differential equation. By hand, sketch an approximate solution curve passing through each of the given points.

y'=xa)y(0)=0b)y(0)=-3

Consider the initial-value problem y'=(x+y-1)2,y(0)=2. Use the improved Euler's method with h=0.1and h=0.05to obtain approximate values of the solution at x=0.5. At each step, compare the approximate value with the actual value of the analytic solution.

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free