Applying the finite-difference method, use MATLAB to solve the boundary-value problem y'' = 2y' - x; y(0)=1, y(5)=-1, and plot your numerical solution.
Added by Melissa F.
Step 1
Let's choose \(N+1\) points, which means we have \(N-1\) internal points and 2 boundary points. The step size \(h\) is given by \(h = \frac{5-0}{N}\). Let \(x_i = i \cdot h\) for \(i = 0, 1, \ldots, N\), where \(x_0 = 0\) and \(x_N = 5\). Show more…
Show all steps
Close
Your feedback will help us improve your experience
Sri K and 96 other Physics 103 educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Use the Nonlinear Finite-Difference method with h = 0.5 to approximate the solution to the boundary-value problem y'' = -(y')^2 - y + ln x, 1 <= x <= 2, y(1) = 0, y(2) = ln 2. Compare your results to the actual solution y = ln x.
Shaiju T.
Use the shooting method to solve 7 d^2y/dx^2 - 2 dy/dx - y + x = 0 With the boundary conditions y(0) = 5 and y(20) = 8. Use MATLAB to solve this problem. Write a code that changes the initial guess or uses interpolation to find the correct boundary conditions.
Jiva Y.
Recommended Textbooks
University Physics with Modern Physics
Physics: Principles with Applications
Fundamentals of Physics
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD