Question

Please provide the program in Matlab.

Question 12) Solve the boundary value problem using a program/script that applied the shooting method. (t) + y()-8 with the b

0 0
Add a comment Improve this question Transcribed image text
Answer #1

syms y(t)

ode = diff(y,x,2)+1/4 * diff(y,x)-8 == 0;

cond1 = y(0) ==0;

cond2 = y(10) ==0;

conds = [cond1 cond2];

ysol(t) = dsolv(ode,conds);

ysol = simplify(ysol)

Add a comment
Know the answer?
Add Answer to:
Question 12) Solve the boundary value problem using a program/script that applied the shooting me...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Set up and solve a boundary value problem using the shooting method using Matlab

    Set up and solve a boundary value problem using the shooting method using Matlab A heated rod with a uniform heat source may be modeled with Poisson equation. The boundary conditions are T(x = 0) = 40 and T(x = 10) = 200 dTf(x) Use the guess values shown below. zg linspace (-200,100,1000); xin-0:0.01:10 a) Solve using the shooting method with f(x) = 25 . Name your final solution "TA" b) Solve using the shooting method with f(x)-0.12x3-2.4x2 + 12x....

  • Problem 2: Use the shooting method to solve d T _-10-7 (T +273)' + 4(150-7): 0 With the boundary ...

    solution with matlab only please Problem 2: Use the shooting method to solve d T _-10-7 (T +273)' + 4(150-7): 0 With the boundary conditions T(O)- 200 and T(0.5)-100 Problem 2: Use the shooting method to solve d T _-10-7 (T +273)' + 4(150-7): 0 With the boundary conditions T(O)- 200 and T(0.5)-100

  • Problem 3. Given the initial conditions, y(0) from t- 0 to 4: and y (0 0, solve the following initial-value problem...

    Problem 3. Given the initial conditions, y(0) from t- 0 to 4: and y (0 0, solve the following initial-value problem d2 dt Obtain your solution with (a) Euler's method and (b) the fourth-order RK method. In both cases, use a step size of 0.1. Plot both solutions on the same graph along with the exact solution y- cos(3t). Note: show the hand calculations for t-0.1 and 0.2, for remaining work use the MATLAB files provided in the lectures Problem...

  • Given the following non-linear boundary value problem Use the shooting method to approximate solution Use finite...

    Given the following non-linear boundary value problem Use the shooting method to approximate solution Use finite difference to approximate solution Plot the approximate solutions together with the exact solution y(t) = 1/3t2 and discuss your results with both methods

  • solve it with matlab 25.24 Given the initial conditions, y(0) = 1 and y'(0) = 1...

    solve it with matlab 25.24 Given the initial conditions, y(0) = 1 and y'(0) = 1 and y'(0) = 0, solve the following initial-value problem from t = 0 to 4: dy + 4y = 0 dt² Obtain your solutions with (a) Euler's method and (b) the fourth- order RK method. In both cases, use a step size of 0.125. Plot both solutions on the same graph along with the exact solution y = cos 2t.

  • 03. Consider the boundary value problem 0 Sts1 y(0) & y(1)-1 where k > 0 is a given real paramete...

    03. Consider the boundary value problem 0 Sts1 y(0) & y(1)-1 where k > 0 is a given real parameter a. Verify that y(t) = e-kt (14) is the exact solution of the BVP. b. Use the function mybvp() from the previous problem with h -0.1 and k -10, to solve the BVP by the Finite Difference Method. Plot, on the same axes, the numerical and exact solution. c. Using a log-log plot, graph the maximum error as a function...

  • Problem #4. The convective heat transfer problem of cold oil flowing over a hot surface can...

    Problem #4. The convective heat transfer problem of cold oil flowing over a hot surface can be described by the following second-order ordinary differential equations. d'T dT +0.83x = 0 dx? dx T(0)=0 (1) T(5)=1 where T is the dimensionless temperature and x is the dimensionless similarity variable. This is a boundary-value problem with the two conditions given on the wall (x=0, T(O) = 0) and in the fluid far away from the wall (x = 5, T(5) = 1)....

  • answer in matlab code Employ the bvp4c command to find the approximate solution of the boundary value problem governed by the second-order nonhomogeneous differential equation, 9. with the bound...

    answer in matlab code Employ the bvp4c command to find the approximate solution of the boundary value problem governed by the second-order nonhomogeneous differential equation, 9. with the boundary conditions of y(0) 5 and y(1)-2. Plot to compare the approximate solution with the exact solution obtained by using the dsolve command. Employ the bvp4c command to find the approximate solution of the boundary value problem governed by the second-order nonhomogeneous differential equation, 9. with the boundary conditions of y(0) 5...

  • Question 3: BVP with periodic boundary conditions. Part I: Solve the following boundary value problem (BVP)...

    Question 3: BVP with periodic boundary conditions. Part I: Solve the following boundary value problem (BVP) where y(x,t) is defined for 0<x<. You must show all of your work (be sure to explore all possible eigenvalues). агу д?у 4 axat2 Subject to conditions: = y(x,0) = 4 sin 6x ayi at = 0 y(0) = 0 y(T) = 0 Solution: y(x, t) = Do your work on the next page. Part II: Follow up questions. You may answer these questions...

  • Problem #4. The convective heat transfer problem of cold oil flowing over a hot surface can...

    Problem #4. The convective heat transfer problem of cold oil flowing over a hot surface can be described by the following second-order ordinary differential equations. der 0 dx T(0)=0 (1) T(5)=1 where T is the dimensionless temperature and x is the dimensionless similarity variable. dr? +0.83, dT This is a boundary-value problem with the two conditions given on the wall (x=0, T(O) = 0) and in the fluid far away from the wall (x = 5,7/5) = 1). You are...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT