Question

I'm not sure where to start since I don't know values for y' or y''. Could someone help me out with number 1? Thanks in advance!!!1. Solve the boundary value problem y +2y +y 0 with boundary conditions y(0) 0 and y(1) 1 using the finite difference method. Write a matlab code that will take as input the number of points n and will output y(x). Plot the solution for 4, 10, 14 and 20 points. 2. If the answer for y(0.5) is 0.82436064, plot the absolute error vs. the number of points.

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
I'm not sure where to start since I don't know values for y' or y''. Could...
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
  • I don't know where to start. Please help! Thanks in advance :) Question 4 0.75 pts...

    I don't know where to start. Please help! Thanks in advance :) Question 4 0.75 pts What is the hybridization on this carbon? O sp о sp? O sp3 spd O sp3d2

  • Please help! I don't even know where to start. I know to do the sum of...

    Please help! I don't even know where to start. I know to do the sum of the forces in both directions but I'm not sure how that translates with the angle! Problem 4 (7 points). The figure below shows the positions of two α particles(each alpha particle (a) has a charge +2e) and an electron. a) Draw a clear and neat free-body diagram for either sphere at equilibrium. (2 points) b) Determine the magnitude and direction of the resultant force...

  • I know how to do part a but i really need help with part B. Thanks...

    I know how to do part a but i really need help with part B. Thanks 1. a) Use MATLAB or Excel to create a Bode plot of the transfer function G(S) +0.5 0.5 s 1.0. for 0.0 1 a) 100 b) Discretize the transfer function using a backwards difference (Euler) transformation. Write a routine in MATLAB or Excel to calculate the output of the transfer function given an input signal. Use your routine to calculate the outputs for the...

  • I'm wondering how to start this problem. I understand you would use spherical coordinates and use...

    I'm wondering how to start this problem. I understand you would use spherical coordinates and use the BVP to solve but I just don't know how to start it. If anyone has a solution for this problem it would be greatly appreciated. Solve the heat equation in a three dimensional ball du - ( + 0 + a)u=0, for (, y, z) satisfying 2² + y +z2 <1, with the boundary condition u22 +2 +22=1 = 0 and the initial...

  • I'm trying to solve this differential equations by using matlab. But I don't know the reason why I can't ge...

    I'm trying to solve this differential equations by using matlab. But I don't know the reason why I can't get the solutions. I've attached matlab code and few differential equation. Please find a the way to solve this problem. second oder ode2.m x+ function, second-oder-ode2 t-0:0.001:30 initial-x = 0; initial-dxdt = 0: lt.影=ode45( @rhs, t, [initial.x initial.dxdt ] ); plot(t.(:,1l): xlabel( t); ylabel(x): 申 function dxdt=rhs( t, x) dxdt-1 =x(2); dxdt-2 (-50 x(2)+61.25+((1-cos(4 pi 10 t))/2) (47380 x(1)-3-7428 x(1) 2...

  • I'm not sure if these are correct. I also don't know how to do the second...

    I'm not sure if these are correct. I also don't know how to do the second one. thank you!! 3. Provide the major product(s) for the transformation below. (1 pt) 2eq. Li, Hexane H.C 1. CH,MgBr, Eto 2. HCI, H,0 애 -C CH 1. CH,CH,MgBr, Et,O 2. HCI, H₂O H9C-

  • I need to create a MATLAB function, bvp_solve.m, to approximate the solution y(x). The function takes...

    I need to create a MATLAB function, bvp_solve.m, to approximate the solution y(x). The function takes the number of grid points n as an input. The outputs are grid vector x and the solution vector y %% This is the function i have so far: function [xi, yi] = bvp_solve(n) % BVP_SOLVE computes the solution y(x) of a two-point boundary value problem % using finite difference method (FDM). % The governing equation is % y''' = -y + (x -...

  • the code in the photo for this I.V.P dy/dx= x+y. y(0)=1 i need the two in the photo thank you New folder Bookmark...

    the code in the photo for this I.V.P dy/dx= x+y. y(0)=1 i need the two in the photo thank you New folder Bookmarks G Google dy/dx x+y, y(0)=1 2 h Exact Solution 1.8 Approximate Solution Mesh Points 1.6 -Direction Fied 1.4 1.2 1 0.8 04 0.2 0.3 0.1 0 X CAUsersleskandara\Desktop\New folder emo.m EDITOR PUBLISH VEW Run Section FILE NAVIGATE EDIT Breakpoints Run Run and FL Advance Run and Advance Time BREAKPOINTS RUN 1 - clear all 2 clc 3-...

  • Hi I'm kinda stuck on this question and I don't know how to go about it....

    Hi I'm kinda stuck on this question and I don't know how to go about it. For a smooth ("low jerk") ride, an elevator is programmed to start from rest and accelerate according to: a(t)=a(max)/2[1-cos(2*pi*t/T)] from intervals 0 <= t <=T and a(t)= -a(max)/2[1-cos(2*pi*t/T)] from intervals T <= t <=2T where a(max) is the maximum acceleration and 2T is the total time for this trip. a) Draw sketches of a(t) and the jerk as functions of time. b)What is the...

  • Discretization, ODE solving, condition number. Consider the differential equation 5y"(x) - 2y'(x) +10y(x)0 on the interval x E [0,10] with boundary conditions y(0)2 and y (10) 3 we set up a f...

    Discretization, ODE solving, condition number. Consider the differential equation 5y"(x) - 2y'(x) +10y(x)0 on the interval x E [0,10] with boundary conditions y(0)2 and y (10) 3 we set up a finite difference scheme as follows. Divide [0,10] into N-10 sub-intervals, i.e. {xo, X1, [0,1,. 10. Denote xi Xo + ih (here, h- 1) and yi E y(x). Approximate the derivatives as follows X10- 2h we have the following equations representing the ODE at each point Xi ,i = 1,...

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
ADVERTISEMENT