Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the differential equation y = -(y')^2 - y + ln(x), 1 lessthanorequalto x lessthanorequalto 2 with the boundary conditions y(1) = 0, y(2) =

image text in transcribed

Consider the differential equation y" = -(y')^2 - y + ln(x), 1 lessthanorequalto x lessthanorequalto 2 with the boundary conditions y(1) = 0, y(2) = ln 2. Show that the exact solutions is y(x) = ln x Implement the shooting method for this problem in Matlab. Use Matlab solver ode45. Note that this is a non-linear problem, so you need to use a secant iteration. Since the secant iteration converges quickly if the initial guess is good, it is crucial to get a good initial guess. Try the values z_1 = 1, z_2 = 0.5. You may choose the tolerance to be 10^-9, and maximum number of iterations for the secant method to be 5. Plot the approximate solutions together with the exact solution. Plot also the error

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions