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
Women athletes at the university of colorado, boulder, have a long-term graduation rate of 67% (source: the chronicle of higher
Elodia [21]

 

The solution would be like this for this specific problem:

H0: p = p0, or <span>
H0: p ≥ p0, or 
H0: p ≤ p0 </span>

 

find the test statistic z = (pHat - p0) / sqrt(p0 * (1-p0) / n) 

 

where pHat = X / n 

 

The p-value of the test is the area under the normal curve that is in agreement with the alternate hypothesis. <span>
H1: p ≠ p0; p-value is the area in the tails greater than |z| 
H1: p < p0; p-value is the area to the left of z 
H1: p > p0; p-value is the area to the right of z </span>

 

Hypothesis equation:

 

H0: p ≥ 0.67 vs. H1: p < 0.67 

 

The test statistic is: <span>
z = ( 0.5526316 - 0.67 ) / ( √ ( 0.67 * (1 - 0.67 ) / 38 ) 
z = -1.538681 </span>

 

The p-value = P( Z < z ) <span>
= P( Z < -1.538681 ) 
<span>= 0.0619</span></span>

6 0
3 years ago
The store has 28 notebooks in packs of 4. Three packs of notebooks are sold. How many packs of notebooks are left?
loris [4]
28 divided by 4= 7
7-3=4

answer: 4 notebooks left.
6 0
3 years ago
Read 2 more answers
Select all triangles whose side lengths prove they are right triangles. You must select all that apply.
Bogdan [553]
It is D.

Reason. 3^2 is 9, 4^2 is 16.
16+9= 25
The square root of 25 is 5.
Therefore it is D.
6 0
2 years ago
Read 2 more answers
Which of the following statements are true?
atroni [7]

Answer:

Letter B. Both graphs have been shifted and flipped

5 0
3 years ago
Match the real-world descriptions with the features they represent within the context of Melissa's garden. Not all tiles will
musickatia [10]
Can’t see photo so I can answer
7 0
3 years ago
Other questions:
  • what is the sum of a 7-term geometric series if the first term is −6, the last term is −24,576, and the common ratio is −4? −32,
    8·1 answer
  • If you have $ twentyfive of quarters and dimes how much quarters and dimes do u have
    14·1 answer
  • A caterer needs to buy 21 pounds of pasta to cater a wedding. At a local store, 8 pounds of pasta cost $12. How much will the ca
    8·1 answer
  • Please answer correctly !!!!!!!! Will mark brianliest !!!!!!!!!!!!!
    7·1 answer
  • What’s the answer to this problem?
    15·1 answer
  • Please help me I really need help
    11·1 answer
  • AD is tangent to circle B at point C. What is the measure of BCA? O 40° O 50° O 90° O 180° ​
    14·1 answer
  • Please only answer if you can help!!
    9·1 answer
  • Point slope formula.. help
    15·2 answers
  • 50 PTS!!A right triangle has a leg measuring 16in. And 28in.
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!