1. We discussed at length the "shooting method" for solving differential equations. Use it to solve the simple differential equation y" = y, = = = 5.81. You will need to subject to the boundary conditions (BCs) y(0) 3 and y(1) guess an initial slope y'(0). A suitable tolerance for knowing when you are close enough to the BC at x = 1 to quit is up to you but there is no need to be too stringent. Perhaps try a tolerance tol 103. The choice is up to you. By solution, I mean your code should print your final estimate of the initial slope y'(0), your computed value of y(1) to show how close you came, and a plot showing y(x) over the x-interval [0,1]. As further guidance, I recommend you insert simple code that adjusts the initial slope slightly for each iteration of calling solve ivp. An increment/decrement of ±0.1 or so may prove useful. This will save you some time guessing the initial slope.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

please write the code for this problem using python in a jupyter notebook. I am stuck

1. We discussed at length the "shooting method" for solving differential equations. Use
it to solve the simple differential equation
y" = y,
=
=
= 5.81. You will need to
subject to the boundary conditions (BCs) y(0) 3 and y(1)
guess an initial slope y'(0). A suitable tolerance for knowing when you are close enough
to the BC at x = 1 to quit is up to you but there is no need to be too stringent. Perhaps
try a tolerance tol 103. The choice is up to you. By solution, I mean your code
should print your final estimate of the initial slope y'(0), your computed value of y(1) to
show how close you came, and a plot showing y(x) over the x-interval [0,1]. As further
guidance, I recommend you insert simple code that adjusts the initial slope slightly for
each iteration of calling solve ivp. An increment/decrement of ±0.1 or so may prove
useful. This will save you some time guessing the initial slope.
Transcribed Image Text:1. We discussed at length the "shooting method" for solving differential equations. Use it to solve the simple differential equation y" = y, = = = 5.81. You will need to subject to the boundary conditions (BCs) y(0) 3 and y(1) guess an initial slope y'(0). A suitable tolerance for knowing when you are close enough to the BC at x = 1 to quit is up to you but there is no need to be too stringent. Perhaps try a tolerance tol 103. The choice is up to you. By solution, I mean your code should print your final estimate of the initial slope y'(0), your computed value of y(1) to show how close you came, and a plot showing y(x) over the x-interval [0,1]. As further guidance, I recommend you insert simple code that adjusts the initial slope slightly for each iteration of calling solve ivp. An increment/decrement of ±0.1 or so may prove useful. This will save you some time guessing the initial slope.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education