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
The cost in dollars of making x items is given by the function C(x)=10x+900 .
Stella [2.4K]

For the given cost equation we have:

a) Fixed cost is $900.

b) For making 25 items the cost is $1150.

c) D: x ∈ [0, 150]

   R: c ∈ [900, 2400]

<h3>Working with the cost equation.</h3>

Here we know that the cost equation is:

c(x) = 10*x + 900.

First, we want to get the fixed cost, it is given by evaluating the function in x = 0.

c(0) = 10*0 + 900 = 900

The fixed cost is 900.

b) Now we want to get the cost for making 25 items, to get this, we just evaluate in x = 25.

c(25) = 10*25 + 900 = 250 + 900 = 1150

c) Now, if the maximum cost is 2400, then the maximum number of items that we can make is x₀, such that:

c( x₀) = 2400 = 10*x₀ + 900

Solving for x₀ we get:

x₀ = (2400 - 900)/10 = 150

Now we want to get the range and domain.

We know that we can make between 0 and 150 items, so the domain is:

D: x ∈ [0, 150]

For the range, we know that the fixed cost for 0 items is 900, and the maximum cost is 2400, then the range is:

R: c ∈ [900, 2400]

If you want to learn more about domain and range:

brainly.com/question/10197594

#SPJ1

5 0
2 years ago
Which of the following distances is the longest?
Andru [333]
2,300 meters is the answer to your question.
6 0
3 years ago
Read 2 more answers
What is the value of the number 8 in 4,382,087
LUCKY_DIMON [66]
The value of the number is 80,000
8 0
4 years ago
Read 2 more answers
PLEASEEE HELP ME WITH THIA ASAPP
alexira [117]

Answer:

40

Step-by-step explanation:

to convert into radian measure, multiply by π/180

40 x π/10

4 0
3 years ago
Read 2 more answers
Please help me quickly first person to answer gets branliest
ivolga24 [154]
The answer should be 117.6. tell the teacher that the amount of meters is wrong or the answers are wrong

sorry :(
3 0
3 years ago
Other questions:
  • Genus/ace/expert's PLEASE HELP
    13·2 answers
  • The ratio of men to women to children at a concert was 3:5:2. If there were 360 more adults than children, how many people were
    9·1 answer
  • Solve for x use the completing the square method x^2+6x=5
    10·2 answers
  • A company has $14,000 in liabilities and $15,000 in equity. Calculate the company's debt to equity ratio as a percentage.
    13·1 answer
  • Line segment ON is perpendicular to line segment ML.
    12·1 answer
  • GIVING BRAINLIEST!!!!!!<br><br><br> 32+4X(16 x 1/2)-2<br><br> show your work
    14·2 answers
  • I really need help please!!!
    10·1 answer
  • A cinema sold 1000 tickets on a Saturday evening. Adult tickets cost £9, children's
    11·1 answer
  • For each of the following variables, identify the type of variable (categorical vs. numerical).
    7·1 answer
  • Indicate the method you would use to prove the two Δ's ≅ . If no method applies, enter "none".
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!