1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
taurus [48]
3 years ago
10

Consider the ODE, dy dx = y 2 1 + x (2) subject to condition y = 1 when x = 0, use your Euler code from class (modified if neces

sary) to find the solution to the above equation. The equation has the solution: y = 1 1 − ln(1 − x) (3) Compare the analytical and Euler result. Explain any differences
Mathematics
1 answer:
makkiz [27]3 years ago
4 0

Answer:

Computation.

Step-by-step explanation:

I'm not really sure if that's the analytical solution of the inital value problem,

because y(0)=11-ln(1-0)(3)=11. Howevwer, let us procede with the given values...

Let us assume that we are going to use euler with n=2 (two steps) and h=0.2(the size of each step)

The update rules of the Euler Methode are

X_i = X_{i-1}+h=X_0+ih

m_i=\dfrac{dY}{dX} \biggr \rvert_{x_i} \\\\Y_{i+1}=m_i\cdot h+y_i

Since the initial value problem tells us that Y=1 when X=0, we know that

X_0=0 and that Y_0=1. Then, we have

X_0=0\\\\X_1=0.2\\\\X_2=0.4

and

Y_0=1\\\\m_0=21 \cdot Y_0 + X_0 \cdot 2=21 \cdot 1 + 0=21\\\\Y_1=0.2 \cdot 21 + 1 =5.2\\\\m_1=21 \cdot Y_1 + X_1\cdot 2=21 \cdot 5.2 + 0.2 \cdot 2=109.6\\ \\Y_2=m_1 \cdot h + Y_1 = 109.6 \cdot 0.2 + 5.2= 27.12

which gives us the points (0,1), (0.2, 5.2) and (0.4, 27.12).

Now, since we want to compare the analyticaland the Euler result, we first compute the value of y=11-ln(1-x)(3) for the values x=0, 0.2 and 0.4. We get that

y(0)=11-\ln(1-0)(3)=11-ln(1)(3)=11\\\\Y(1)=11-\ln(1-0.2)(3)=11.67\\\\Y(2)=11-\ln(1-0.4)(3)=12.53

and we compute Y(i)-Y_i for each i.

It holds

Y(0)-Y_0=11-1=10\\\\Y(1)-Y_1=11.67-5.2=6.47\\\\Y(2)-Y_2=12.53-27.12=-14.59

which tells us that we have a really bad approximation, as I already stated there must be a mistake in the analytical solution since the intial values don't coincide. Also note that the curve that we get using the euler methose is growing faster than the analitical solution.

You might be interested in
How much 74.3 - 18.26​
Oksanka [162]

56.04 is the answer if im correct

3 0
3 years ago
Read 2 more answers
giá tiền cước của một hãng taxi được tính như sau :giá mở đến 1km đầu là 12000 đồng ; 10500 đồng/km cho 20 km tiếp theo và 99000
dolphi86 [110]

<em>Answer:</em>

<em>Ông sáu sẽ mất 4281000 đồng</em>

8 0
3 years ago
Which correctly names a point, line, or plane in the figure?
Ronch [10]
The answer is B; at least, I am pretty sure that's the answer.
3 0
3 years ago
A cab company charges a flat amount of $5 plus $1.10 per mile traveled. If at the end of a cab ride a customer owes the driver $
Luda [366]

I believe that the number of miles traveled would be 8. This is because you would subtract $5.00 from the $13.80 and then divided by $1.10.


8 0
3 years ago
26•26^8 i’m not sure how to solve this
alexira [117]

Answer:

26^9

Step-by-step explanation:

7 0
4 years ago
Read 2 more answers
Other questions:
  • Find the volume of a rectangular prism with the following dimensions. Length: 4yd width: 5 ft height: 11ft volume =
    7·2 answers
  • What is the circumference of a racetrack that has a diameter of 90 feet?
    15·1 answer
  • -12 + (-3) • 3 - 8 = 4​
    14·1 answer
  • Jan walks 40 meters in 15 seconds what is her rate?
    11·1 answer
  • Tom is in dire need of a new washing machine. He knows what model he would like to get, but doesn't have the cash to pay for it.
    7·1 answer
  • What is 5 didvdied by 5836?
    7·2 answers
  • Please enter the missing number: 4, 8, 14, 22, ?
    9·2 answers
  • A rectangle has an area of 19.38 cm2. When both the length and width of the rectangle are increased by 1.50 cm, the area of the
    13·1 answer
  • Riddle me this what goes in the water dry and comes out dry
    11·1 answer
  • Find cos(0)<br> Please help
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!