Numerical problem central-difference discretized forms of dy/dx and dy/dx with error of the order of (Ax)...
Solve the following differential equations x2d2y/dx2 − xdy/dx − 3y = lnx/ x , x > 0. show that the answer is y = A/x + Bx3 − lnx/ 6x (2lnx + 1) x d2y/dx2 − dy/dx + 2y/x = (ln x)2 .show that the answer is y = x { A cos(ln x) + B sin(ln x) + (lnx) 2 − 2 }
Write a MATLAB code to solve below 2nd order linear ordinary differential equation by finite difference method: y"-y'-0 in domain (-1, 1) with boundary condition y(x-1)--1 and y(x-1)-1. with boundary condition y an Use 2nd order approximation, i.e. O(dx2), and dx-0.05 to obtain numerical solution. Then plot the numerical solution as scattered markers together wi exp(2)-explx+1) as a continuous curve. Please add legend in your plot th the analytical solution y-1+ Write a MATLAB code to solve below 2nd order...
4. [10 marks] A second order ordinary differential equation is defined on an interval [0,5) with boundary conditions, and is given as follows 2 + 3ty = 1+ cos(it), y(0) = 1, y(5) = 0 To solve the equation numerically we approximate it on a one-dimensional discrete mesh with N + 1 grid points. That is, we divide the interval (0,5) into subintervals of size h = 5/N and denote t; = ih, y(t) = y(ih)=yi, i = 0,1,... N...
Here is 11.1 for reference. I need help with 11.3 11.3 Concepts: Error Order and Precision pts The following is a 5-point backward difference scheme, over equally-spaced x, for df/dx at xx 25/,-48f-+36f-2-16-3+34 12 Ar Write out Taylor Series expressions for each of the four fa, f f fto the SIXTH derivative, like you did in 11.1, and then combine them using the difference scheme above to a) Calculate the discretization error order (i.e. write the erro(Ax) for some integer...
Given the following two point boundary value problem: ty" + 2y + (3 - t)y = 4, y(2) = -1, y(8) = 1. Divide the given interval (3.7] into three equal sub-intervals, and apply the finite difference method (i,e: use the formulas for approximating y' and y" derive from Taylor series erpansion) to SETUP ( do not solve) a system of linear equations (write it in "A.r = b" form that will allow you to approximate the function value of...
In the previous lecture this method was explained. Recall that an ODE of the type dy/dr+py be rewritten as may 讐-劘塭 dr with ydl/dx- Ipy from where /(x) can be derived The complete solution of this ODE then is a sum of two terms: a term y. which is a solution of the ODE rewritten as d(ly)/dx- lq and a term y2, which follows from solving the homogeneous equation (the ODE with q-0 Task Solve two differential equations and determine...
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)....
Problem 4. The higher order differential equation and initial conditions are shown as follows: = dy dy +y?, y(0) = 1, y'(0) = -1, "(0) = 2 dt3 dt (a) [5pts. Transform the above initial value problem into an equivalent first order differential system, including initial conditions. (b) [2pts.] Express the system and the initial condition in (a) in vector form. (c) [4pts.] Using the second order Runge Kutta method as follows Ū* = Ūi + hĚ(ti, Ūi) h =...
use matlab only please Problem # 1 P-1 Solve the following initial value problem using a4 order RK scheme: dy dx=tan(x), y(0)= 0.0 - Compare your results by calcudating the error andploting with the equation analytical solution y = In Isec(x)| for a = 0 to b = π/4 and step size 0.01 π: b- Solve the same problem with an accurate library scheme that can improve the answer 03 03 07 Problem # 1 P-1 Solve the following initial...
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...