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
Evaluate the expression for x = 3, y = 1/3 , and z = 5.<br><br> 12x − 3y / 4x − z
bixtya [17]

Answer:

30.25 in decimal form

30 1/4 in fraction form

Step-by-step explanation:

12(3) − 3(1/3) / 4(3)− (5)  = 30.25 or 30 1/4  

8 0
2 years ago
Read 2 more answers
Given that e= 2i – 5j + 9k and f= 8i + 15j + k, find 3f – 2e.
ipn [44]

Plug in "8i + 15j + k" for "f", and "2i – 5j + 9k" for "e"

3(8i + 15j + k) - 2(2i – 5j + 9k)

Distribute 3 to (8i + 15j + k) & - 2 to (2i – 5j + 9k)

3(8i + 15j + k) = 24i + 45j + 3k

-2(2i - 5j + 9k) = -4i + 10j - 18k

-------------------------------------------------------------------------------------------------------------------

Simplify. Combine like terms

24i - 4i + 45j + 10j + 3k - 18k

(24i - 4i) + (45j + 10j) + (3k - 18k)

20i + 55j - 15k is your answer, or (C)

-------------------------------------------------------------------------------------------------------------------

hope this helps

5 0
3 years ago
Read 2 more answers
9) Write an inequality to represent the statement:
Karo-lina-s [1.5K]

Answer:

x + 65 <u>< </u>108

Step-by-step explanation:

8 0
3 years ago
AC, DF and YZ are straight lines and all angles are in degrees.
Alinara [238K]

Answer:

ac is parallel to df because it doesn't intersect with each other

7 0
2 years ago
Read 2 more answers
2x+y=5<br>y=3x<br>answer pliz ​
Novosadov [1.4K]

Answer:

1.25

Step-by-step explanation:

2×+3×=5

4×=5........divid both sides by 4

×=5/4 or 1.25

6 0
3 years ago
Read 2 more answers
Other questions:
  • Which pair of angles shares ray a f as a common side?
    8·2 answers
  • Define these terms <br><br> social reform<br><br> predestination<br><br> revival
    11·1 answer
  • -
    5·1 answer
  • Suppose tossing a coin 8 times represents the 8 cups of tea, heads represents a correct identification of what was poured first,
    7·1 answer
  • A few years​ ago, a census bureau reported that​ 67.4% of American families owned their homes. Census data reveal that the owner
    5·2 answers
  • 3) 14 pennies to 35 pennies​
    12·1 answer
  • Line A passes through the points (1,2) and (3,6). what is the slope of a line parallel to line A.
    10·2 answers
  • Branniest to whoever is right plz help
    12·1 answer
  • Save Work out the size of angle AED.<br> b) Work out x
    15·1 answer
  • Whoever answers this will get branlyest
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!