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]
2 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]2 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
What is seventy divided by four?
Nataly_w [17]

Answer:

17.5

Step-by-step explanation:

17×4=68; half of 4 is 2; 68+2=70

5 0
3 years ago
Read 2 more answers
Can some one help me with this question its hard :( down below ill give brainliest
Step2247 [10]

Answer:

D) 3^{6}

Step-by-step explanation:

if you multiply exponents, you actually add them

so... 4+2=6

8 0
2 years ago
Read 2 more answers
Does -2(z+3)-z=-z-4(z+2) have one,zero or infinite solutions
Andrew [12]

Hello from MrBillDoesMath!

Answer:

One solution (z = -1)

Discussion:

-2(z+3)-z=-z-4(z+2)        =>

-2z -6 -z = -z -4z - 8       =>

-3z -6 = -5z -8                =>  add 6 to both sides

-2z = -5z -2                     => add 5z to both sides

3z = -5z +5z -3               =>

3z = -3                            =>

z = -1

Thank you,

MrB

6 0
3 years ago
Please try to give me the answers
gladu [14]

Answer:

a = 1, b = 2, c = 3

Step-by-step explanation:

a +  \frac{1}{b +  \frac{1}{c} }  =  \frac{10}{7}  \\  \\ a +  \frac{1}{b +  \frac{1}{c} }  = 1 +  \frac{3}{7}  \\  \\ a +  \frac{1}{b +  \frac{1}{c} }  = 1 +   \frac{1}{\frac{7}{3} }  \\  \\ a +  \frac{1}{b +  \frac{1}{c} }  = 1 +   \frac{1}{2 + \frac{1}{3} }  \\  \\ equating \: like \: terms \: on \: both \: sides \\  \\ a = 1 \\  \\ b = 2 \\  \\ c = 3

5 0
2 years ago
Which relation is a function?
Step2247 [10]
{(2, 3), (1, 5), (2, 7)} - NOT because 2->3 and 2->7
{(11, 9), (11, 5), (9, 3)} - NOT because 11->9 and 11->5
{(3, 8), (0, 8), (3, -2)} - NOT because 3->8 and 3->-2

{(-1, 5), (-2, 6), (-3, 7)} - YES
4 0
3 years ago
Other questions:
  • What is 17/12 in simplest form
    9·2 answers
  • Which one weighs more a pound of bricks or a pound of cotton balls?
    12·2 answers
  • A store is selling t-shirts $40 per shirt.None of the buyers are willing to pay this price.In 2 or 3 sentences, describe the sig
    5·1 answer
  • How to find the common ratio of a geometric sequence?
    12·1 answer
  • How to do arc measurements?
    9·1 answer
  • Consider the cartesian equation of a circle, y=-2+- sqrt 36-(x-1)^2 , verses the parametric equations of the same circle: x=1+6
    12·1 answer
  • Marking brainliest!<br> In your own words, why does erosion mean?
    12·2 answers
  • Please try to help thanks
    11·1 answer
  • HELP FAST PLEASE <br> Which table represents y as a function of x?
    9·1 answer
  • 2sinx / cos3x = tan3x - tanx -verify the identity-
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!