

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


MATH 640 ā Numerical Analysis Homework # 3: Boundary Value Problems DUE: Monday, March 12th, 2007
(a) Shooting Method for Linear BVPās (use the RK4 provided on the course website and WebCT to solve the two initial value problems) (b) Shooting Method for Nonlinear BVPās using the Secant Method (use either the RK4 m-file provided on the course web site and WebCT OR one of MATLABās built in ODE solvers, like ode45, to solve the initial value problem at each iteration) (c) Finite Difference Method for Linear BVPās (use your choice of direct methods to solve the system of equations youāll get)
Each function should output
(a) a vector of independent variable values (e.g. t), and (b) a corresponding vector dependent vector values (e.g. y)
Turn in: the MATLAB code you wrote in an appendix (as well as electronically).
The elastic curve for the beam is the shape of the beam under this load. To simplify our work, weāll consider the beam to be one dimensional, having length only. The basic differential equation of the elastic curve for a uniformly loaded beam is given by:
d^2 y dx^2
wLx 2
wx^2 2
for 0 < y < L (1) y(0) = y 0 (2) y(L) = yL (3)
where E is the modulus of elasticity and I is the moment of inertia. Weāll assume the following parameter values will apply: E = 30, 000 ksi, I = 800 in^4 , w = 1 kip/ft, and L = 10 ft.
(a) [10 points] The true solution to the boundary value problem is given by:
y(x) = wLx^3 12 EI
wx^4 24 EI
wL^3 x 24 EI
Create a script file in MATLAB that uses your Shooting method for linear boundary value problems function to solve this boundary value problem for N = 5 and N = 10 subdivisions, then plot your approximation and the true solution for each case. Make sure to include a title and a legend on your graph. Make a comment on the performance of your algorithm and the accuracy of your solution. Turn in: the MATLAB script file you used to generate your solutions and graphs as well as any function files you had to define as input to your shooting method function in an appendix. Give your comments and the graphs you generated in the body of the write-up. (b) [6 points] Explain why donāt want to use an adaptive differential equation solver to solve our initial value problems in our shooting method for LINEAR boundary value problems, i.e. why weāre turning to RK4 with a fixed number of evenly spaced subintervals. (c) [10 points] Now solve the same problem using your nonlinear shooting method. Create a script file in MATLAB that uses your shooting method for NONlinear boundary value problems function to solve this boundary value problem for N = 5 and N = 10 subdivisions, then plot your approximation and the true solution for each case. Make sure to include a title and a legend on your graph. Make a comment on the performance of your algorithm and the accuracy of your solution. (d) [6 points] Explain why donāt have to use a fixed mesh-point differential equation solver to solve our initial value problems with our shooting method for NONLINEAR boundary value problems, i.e. why weāre allowed to use the solving method of our choice.
The temperature, u, of the rod can be considered a function of the location along the rod, x where 0 ⤠x ⤠5, and time, t, and we can use partial differential equations to model the dynamics that govern the temperature distribution in the rod. But as we want to stick to single variable differential equations at the moment, weāll deal with the steady-state temperature in the rod (thus, u does not change with respect to time and we can consider it a function of position, x, alone). The boundary value problem that models this situation is given by: k(x)Auā²ā²^ + kā²(x)Auā²^ = Qp for 0 ⤠x ⤠5 (5) u(0) = 0 (6) u(5) = 5 (7) where k(x) is the conductivity of the rod at position x, A is the cross-sectional area of the rod, Q is rate of heat loss from the outer surface of the rod, and p is the perimeter of the cross- sectional area. Letās assume that the radius of the rod is 1 cm = 0.01m (and thus, p = 0. 02 Ļ and A = 0. 0001 Ļ). Also assume that the rate of heat loss from the outer surface is proportional to the difference in temperature between the rod and the surrounding air, us, which may be 15oC. Q = 0 .05(u ā 15)