Single Variable Calculus: Concepts and Contexts, Enhanced Edition
Single Variable Calculus: Concepts and Contexts, Enhanced Edition
4th Edition
ISBN: 9781337687805
Author: James Stewart
Publisher: Cengage Learning
bartleby

Concept explainers

bartleby

Videos

Question
Book Icon
Chapter 7.2, Problem 25E

a.

To determine

To write: A program to use Euler’s method.

a.

Expert Solution
Check Mark

Answer to Problem 25E

  #include <stdio.h>#include <math.h> float main(){ float h,y,x,F; int i; printf("Put the value of h\n"); scanf("%f",&h); y=3; x=0; for(i=1;i<=(1/h);i=i+1) {   F=6*(x*x)3*y*(x*x);   x=x+h;   y=y+h*F; }   printf("%f",y);}

Explanation of Solution

Given information:

  dydx+3x2y=6x2

  y(0)=3

  h=1, h=0.1, h=0.01, h=0.001

Concept used :

Here, we use C language to program a computer.

Calculation:

  dydx+3x2y=6x2dydx=6x23x2y

The required program can be written as following,

#include 
#include 

float main()
{
  float h,y,x,F;
  int i;
  printf("Put the value of h\n");
  scanf("%f",&h);
  y=3;
  x=0;
  for(i=1;i<=(1/h);i=i+1)
  {
    F=6*(x*x)-3*y*(x*x);
    x=x+h;
    y=y+h*F;
  }
    printf("%f",y);
}

We put the given step size h and get the corresponding result.

b.

To determine

To verify: y=2+ex3 is the exact solution of the differential equation.

b.

Expert Solution
Check Mark

Explanation of Solution

Given information:

Differential equation: dydx+3x2y=6x2

  y=2+ex3

Formula used:

  ddx(ex)=ex

  ddx(xn)=nxn1

Calculation:

  y=2+ex3dydx=ddx(2)+ddx(ex3)=3x2ex3

Substituting dydx=3x2ex3 to the right hand side of the given differential equation, we get,

  3x2ex3+3x2y3x2(3ex3+y)3x2(ex3+2+ex3)          [  y=2+ex3]6x2 [verified]

c.

To determine

To find: The error in Euler’s method to compute y(1)

c.

Expert Solution
Check Mark

Answer to Problem 25E

  h=1

    y(1) obtained using Euler’s methodExact value of y(1)error
    32.3678790.632121

  h=0.1

    y(1) obtained using Euler’s methodExact value of y(1)error
    2.3927942.3678790.024915

  h=0.01

    y(1) obtained using Euler’s methodExact value of y(1)error
    2.3701112.3678790.002232

  h=0.001

    y(1) obtained using Euler’s methodExact value of y(1)error
    2.3692122.3678790.001333

As the step size is divided by 10 the mod value of error decrease.

Explanation of Solution

Given information:

The exact solution of the differential equation is y=2+ex3

Formula used :

  error = exact value  value obtained

We use the computer program to get the estimates of Euler’s method.

Calculation:

  h=1

    y(1) obtained using Euler’s methodExact value of y(1)error
    32.3678790.632121

  h=0.1

    y(1) obtained using Euler’s methodExact value of y(1)error
    2.3927942.3678790.024915

  h=0.01

    y(1) obtained using Euler’s methodExact value of y(1)error
    2.3701112.3678790.002232

  h=0.001

    y(1) obtained using Euler’s methodExact value of y(1)error
    2.3692122.3678790.001333

As the step size is divided by 10 the mod value of error decrease.

Chapter 7 Solutions

Single Variable Calculus: Concepts and Contexts, Enhanced Edition

Ch. 7.1 - Prob. 11ECh. 7.1 - Prob. 12ECh. 7.1 - Prob. 13ECh. 7.1 - Prob. 14ECh. 7.1 - Prob. 15ECh. 7.2 - Prob. 1ECh. 7.2 - Prob. 2ECh. 7.2 - Prob. 3ECh. 7.2 - Prob. 4ECh. 7.2 - Prob. 5ECh. 7.2 - Prob. 6ECh. 7.2 - Prob. 7ECh. 7.2 - Prob. 8ECh. 7.2 - Prob. 9ECh. 7.2 - Prob. 10ECh. 7.2 - Prob. 11ECh. 7.2 - Prob. 12ECh. 7.2 - Prob. 13ECh. 7.2 - Prob. 14ECh. 7.2 - Prob. 15ECh. 7.2 - Prob. 16ECh. 7.2 - Prob. 17ECh. 7.2 - Prob. 18ECh. 7.2 - Prob. 19ECh. 7.2 - Prob. 20ECh. 7.2 - Prob. 21ECh. 7.2 - Prob. 22ECh. 7.2 - Prob. 23ECh. 7.2 - Prob. 24ECh. 7.2 - Prob. 25ECh. 7.2 - Prob. 26ECh. 7.2 - Prob. 27ECh. 7.2 - Prob. 28ECh. 7.3 - Prob. 1ECh. 7.3 - Prob. 2ECh. 7.3 - Prob. 3ECh. 7.3 - Prob. 4ECh. 7.3 - Prob. 5ECh. 7.3 - Prob. 6ECh. 7.3 - Prob. 7ECh. 7.3 - Prob. 8ECh. 7.3 - Prob. 9ECh. 7.3 - Prob. 10ECh. 7.3 - Prob. 11ECh. 7.3 - Prob. 12ECh. 7.3 - Prob. 13ECh. 7.3 - Prob. 14ECh. 7.3 - Prob. 15ECh. 7.3 - Prob. 16ECh. 7.3 - Prob. 17ECh. 7.3 - Prob. 18ECh. 7.3 - Prob. 19ECh. 7.3 - Prob. 20ECh. 7.3 - Prob. 21ECh. 7.3 - Prob. 22ECh. 7.3 - Prob. 23ECh. 7.3 - Prob. 24ECh. 7.3 - Prob. 25ECh. 7.3 - Prob. 26ECh. 7.3 - Prob. 27ECh. 7.3 - Prob. 28ECh. 7.3 - Prob. 29ECh. 7.3 - Prob. 30ECh. 7.3 - Prob. 31ECh. 7.3 - Prob. 32ECh. 7.3 - Prob. 33ECh. 7.3 - Prob. 34ECh. 7.3 - Prob. 35ECh. 7.3 - Prob. 36ECh. 7.3 - Prob. 37ECh. 7.3 - Prob. 38ECh. 7.3 - Prob. 39ECh. 7.3 - Prob. 40ECh. 7.3 - Prob. 41ECh. 7.3 - Prob. 42ECh. 7.3 - Prob. 43ECh. 7.3 - Prob. 44ECh. 7.3 - Prob. 45ECh. 7.3 - Prob. 46ECh. 7.3 - Prob. 47ECh. 7.3 - Prob. 48ECh. 7.3 - Prob. 49ECh. 7.3 - Prob. 50ECh. 7.3 - Prob. 51ECh. 7.3 - Prob. 52ECh. 7.3 - Prob. 53ECh. 7.3 - Prob. 54ECh. 7.4 - Prob. 1ECh. 7.4 - Prob. 2ECh. 7.4 - Prob. 3ECh. 7.4 - Prob. 4ECh. 7.4 - Prob. 5ECh. 7.4 - Prob. 6ECh. 7.4 - Prob. 7ECh. 7.4 - Prob. 8ECh. 7.4 - Prob. 9ECh. 7.4 - Prob. 10ECh. 7.4 - Prob. 11ECh. 7.4 - Prob. 12ECh. 7.4 - Prob. 13ECh. 7.4 - Prob. 14ECh. 7.4 - Prob. 15ECh. 7.4 - Prob. 16ECh. 7.4 - Prob. 17ECh. 7.4 - Prob. 18ECh. 7.4 - Prob. 19ECh. 7.4 - Prob. 20ECh. 7.4 - Prob. 21ECh. 7.4 - Prob. 22ECh. 7.5 - Prob. 1ECh. 7.5 - Prob. 2ECh. 7.5 - Prob. 3ECh. 7.5 - Prob. 4ECh. 7.5 - Prob. 5ECh. 7.5 - Prob. 6ECh. 7.5 - Prob. 7ECh. 7.5 - Prob. 8ECh. 7.5 - Prob. 9ECh. 7.5 - Prob. 10ECh. 7.5 - Prob. 11ECh. 7.5 - Prob. 12ECh. 7.5 - Prob. 13ECh. 7.5 - Prob. 14ECh. 7.5 - Prob. 15ECh. 7.5 - Prob. 16ECh. 7.5 - Prob. 17ECh. 7.5 - Prob. 18ECh. 7.5 - Prob. 19ECh. 7.5 - Prob. 20ECh. 7.6 - Prob. 1ECh. 7.6 - Prob. 2ECh. 7.6 - Prob. 3ECh. 7.6 - Prob. 4ECh. 7.6 - Prob. 5ECh. 7.6 - Prob. 6ECh. 7.6 - Prob. 7ECh. 7.6 - Prob. 8ECh. 7.6 - Prob. 9ECh. 7.6 - Prob. 10ECh. 7.6 - Prob. 11ECh. 7.6 - Prob. 12ECh. 7 - Prob. 1RCCCh. 7 - Prob. 2RCCCh. 7 - Prob. 3RCCCh. 7 - Prob. 4RCCCh. 7 - Prob. 5RCCCh. 7 - Prob. 6RCCCh. 7 - Prob. 7RCCCh. 7 - Prob. 8RCCCh. 7 - Prob. 1RQCh. 7 - Prob. 2RQCh. 7 - Prob. 3RQCh. 7 - Prob. 4RQCh. 7 - Prob. 5RQCh. 7 - Prob. 1RECh. 7 - Prob. 2RECh. 7 - Prob. 3RECh. 7 - Prob. 4RECh. 7 - Prob. 5RECh. 7 - Prob. 6RECh. 7 - Prob. 7RECh. 7 - Prob. 8RECh. 7 - Prob. 9RECh. 7 - Prob. 10RECh. 7 - Prob. 11RECh. 7 - Prob. 12RECh. 7 - Prob. 13RECh. 7 - Prob. 14RECh. 7 - Prob. 15RECh. 7 - Prob. 16RECh. 7 - Prob. 17RECh. 7 - Prob. 18RECh. 7 - Prob. 19RECh. 7 - Prob. 20RECh. 7 - Prob. 21RECh. 7 - Prob. 22RECh. 7 - Prob. 23RECh. 7 - Prob. 24RECh. 7 - Prob. 1PCh. 7 - Prob. 2PCh. 7 - Prob. 3PCh. 7 - Prob. 4PCh. 7 - Prob. 5PCh. 7 - Prob. 6PCh. 7 - Prob. 7PCh. 7 - Prob. 8PCh. 7 - Prob. 9PCh. 7 - Prob. 10PCh. 7 - Prob. 11PCh. 7 - Prob. 12PCh. 7 - Prob. 13PCh. 7 - Prob. 14P
Knowledge Booster
Background pattern image
Calculus
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, calculus and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
Calculus: Early Transcendentals
Calculus
ISBN:9781285741550
Author:James Stewart
Publisher:Cengage Learning
Text book image
Thomas' Calculus (14th Edition)
Calculus
ISBN:9780134438986
Author:Joel R. Hass, Christopher E. Heil, Maurice D. Weir
Publisher:PEARSON
Text book image
Calculus: Early Transcendentals (3rd Edition)
Calculus
ISBN:9780134763644
Author:William L. Briggs, Lyle Cochran, Bernard Gillett, Eric Schulz
Publisher:PEARSON
Text book image
Calculus: Early Transcendentals
Calculus
ISBN:9781319050740
Author:Jon Rogawski, Colin Adams, Robert Franzosa
Publisher:W. H. Freeman
Text book image
Precalculus
Calculus
ISBN:9780135189405
Author:Michael Sullivan
Publisher:PEARSON
Text book image
Calculus: Early Transcendental Functions
Calculus
ISBN:9781337552516
Author:Ron Larson, Bruce H. Edwards
Publisher:Cengage Learning
01 - What Is A Differential Equation in Calculus? Learn to Solve Ordinary Differential Equations.; Author: Math and Science;https://www.youtube.com/watch?v=K80YEHQpx9g;License: Standard YouTube License, CC-BY
Higher Order Differential Equation with constant coefficient (GATE) (Part 1) l GATE 2018; Author: GATE Lectures by Dishank;https://www.youtube.com/watch?v=ODxP7BbqAjA;License: Standard YouTube License, CC-BY
Solution of Differential Equations and Initial Value Problems; Author: Jefril Amboy;https://www.youtube.com/watch?v=Q68sk7XS-dc;License: Standard YouTube License, CC-BY