mt2_solution

mt2_solution - Numerical Analysis in Engineering ME 140A,...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Numerical Analysis in Engineering ME 140A, Fall 2007 Midterm #2 solutions Problem 1. Solve through separation of variables: dy dx = x 2 1 + y 2 (1) Separate the variables and integrate Z (1 + y 2 ) dy = Z x 2 dx y + y 3 3 = x 3 3 + c where c is a constant of integration that has to be determined from initial conditions. Note that the above equation is a cubic equation in y . Problem 2. Solve by finding an integrating factor: xy + 2 y = sin x, x > (2) Hint: (sin x- x cos x ) = x sin x . Solution : One can show that (see class notes) a first order ODE in the form of y + p ( x ) y = g ( x ) has an integrating factor defined by ( x ) = e R p ( x ) dx . (3) For the given ODE, dividing both sides by x , gives us y + 2 x y = sin x x (4) 1 which is in the form that allows us to use the integrating factor method. Therefore, ( x ) is found as ( x ) = e R 2 x dx = e 2 ln x = e ln ( x 2 ) = x 2 . (5) Multiplying ( x ) to both sides of equation (4) will give us x 2 y + 2 xy = x sin x...
View Full Document

This note was uploaded on 01/04/2011 for the course ME 140A taught by Professor Meiburg during the Spring '08 term at UCSB.

Page1 / 4

mt2_solution - Numerical Analysis in Engineering ME 140A,...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online