ANSWER:
CODE TEXT
% defining given variables
a = 1; b = 2; c = 3;
% q = abc, i.e.
q = a*100 + b*10 + c;
% 1. function required for ode45
% for eqn, y'' = -y'/x + (1/x^2 - 1)*y,
% puting, y' = y(2)
% hence, y'' = A - 2*a*w*y(2) - w^2*y(1)
% defining inline function vdp1
vdp1 = @(x,y) [y(2); -y(2)/x + (1/x^2 - 1)*y(1)];
% defining error tollerance to least four significant figures
% i.e 10^-4
opts = odeset('AbsTol',1e-4);
% using vdp1 , initial values and tollerance
% solving eqn by ode45, it returns x [y y']
[x,Y] = ode45(vdp1,[0.5 3],[0.7145*q; q],opts);
% 2. Ploting curve, x vs y
plot(x,Y(:,1));
xlabel('X');
ylabel('y');
title("Curve for y'' = -y'/x + (1/x^2 - 1)*y");
grid on;
% 3. slopes i.e y'(x) at end points
y_diff = Y(:,2);
fprintf("End point slopes on intervals [0.5 , 3] is: [%.2f, %.2f]", ...
y_diff(1),y_diff(end));
% 4.
% shooting method is good method can find values with low error
% results shown in graph
CODE IMAGE
OUTPUT IMAGE
Please answer #2 A and B for the Lightbulb problem "dy", etc. (a). The marginal density, fr (y), of Y. (Be explicit about all cases.) (b). P(X > 0.1 IY 0.5) (c), E(X | Y 0.5) 2x +2y ) dy 3y: if 0 y < 1, and 0 otherwise 0.1 r2x +2 (0.5) (3) 0.5 dx 64/75 2x +2(0.5) (3)0.52 dx- 5/18 2. Let Y be the lifetime, in minutes, of a lightbulb. Assume that the lightbulb has an expected...
Question 3 døy Not yet answered Marked out of 2.0000 P Flag question Consider the following Ordinary Differential Equation (ODE) for function y(x) on interval [0, 1] dy dy + (-8.6) + 14.03 dx3 dx2 dx +(-2.47) + y(x) = 3.762 with the following initial conditions at point x = 0: dy y = 4.862, = 15.4696 = 77.4217 dx dx? Introducting notations dy dydy dx dx dx2 convert the ODE to the system of three first-order ODEs for functions...
A=14 B=9 Let A be the sum of the last three digits and let B be the last digit of your 8-digit student ID. Example: for 20245347, A 14 and B-7 Consider a pipe with a length of <A+32.5-cm. If the temperature of the air is <12.5-B> ℃ and the pipe is closed in one end and open in the other, what is the frequency of the third harmonic for the pipe? Post your answer in hertz (Hz) and with...
Find an approximate solution to the pendulum problem such that d2 theta /dt2 +g/l theta = 0. Use an approximate solver in matlab to find the solution to the exact equation d2 theta/dt2 +g/l * sin( theta) = 0. Compare the two solutions when the initial angle is 10, 30, and 90. Find a way to quantify the difference. One approximate method for solving differential equations is Runge-Kutta, which in Matlab goes by the name ode45. I have made a...
(b) Let C be the closed curve formed by intersecting the cylinder x2 +y= 1 with the plane x z= 2. Let the tangent to the curve from above. point in the anti-clockwise direction when viewed Calculate the line integral (e (e sin y+ 4) dy+(e(cos z+ sin z)+ay) dz. cos x2yz) dx + (b) Let C be the closed curve formed by intersecting the cylinder x2 +y= 1 with the plane x z= 2. Let the tangent to the...
Let A be the sum of the last three digits and let B be the last three digits of your 8-digit student ID. Example: for 20245347, A = 14 and B = 347. A (B+25.0) g mass is hung on a spring. As a result the spring stretches (8.50+A) cm. If the object is then pulled an additional 3.0 cm downward and released, what is the period of the resulting oscillation? Give your answer in seconds with 3 significant figures....
please solve all thank you so much :) Let C be the curve consisting of line segments from (0, 0) to (3, 3) to (0, 3) and back to (0,0). Use Green's theorem to find the value of [ xy dx + xy dx + y2 + 3 dy. Use Green's theorem to evaluate line integral fc2x e2x sin(2y) dx + 2x cos(2) dy, where is ellipse 16(x - 3)2 + 9(y – 5)2 = 144 oriented counterclockwise. Use Green's...
MATLAB help please!!!!! 1. Use the forward Euler method Vi+,-Vi + (ti+1-tinti , yi) for i=0.1, 2, , taking yo-y(to) to be the initial condition, to approximate the solution at 2 of the IVP y'=y-t2 + 1, 0 2, y(0) = 0.5. t Use N 2k, k2,...,20 equispaced timesteps so to 0 and t-1 2) Make a convergence plot computing the error by comparing with the exact solution, y: t (t+1)2 exp(t)/2, and plotting the error as a function of...
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)....
Please write code in MATLAB. HW12_4: Solve the system of nonlinear equations over the interval 0 st0.03 using ode45. Display the results on the same graph. Include a legend. x(0)-3, y(0)-2, z(0)-1 ax dt dy dz HW12_4: Solve the system of nonlinear equations over the interval 0 st0.03 using ode45. Display the results on the same graph. Include a legend. x(0)-3, y(0)-2, z(0)-1 ax dt dy dz