Differential equations, euler's method and bisection method

Click For Summary

Homework Help Overview

The problem involves a second-order ordinary differential equation (ODE) that needs to be converted into two first-order ODEs. Participants are tasked with using Euler's method to approximate the solution over a specified interval and then applying the bisection method to find values of a parameter that yield specific results.

Discussion Character

  • Exploratory, Mathematical reasoning, Problem interpretation

Approaches and Questions Raised

  • The original poster attempts to break down the second-order ODE into two first-order equations and apply Euler's method for numerical integration. They express uncertainty about selecting an appropriate step size and how to determine y(Iab).
  • Some participants question the initial conditions provided, specifically the meaning of X(0) in the context of the problem.
  • Others suggest clarifying the initial conditions and the implications of the chosen step size for the integration process.

Discussion Status

The discussion is ongoing, with participants exploring the setup of the problem and clarifying initial conditions. Some guidance has been offered regarding the formulation of the first-order ODEs and the application of Euler's method, but no consensus has been reached on the best approach to find y(Iab) or the appropriate step size.

Contextual Notes

Participants are working within the constraints of a homework assignment, which includes specific requirements for accuracy and the use of numerical methods. There is an emphasis on understanding the relationships between the variables and the implications of the chosen methods.

meddi83
Messages
3
Reaction score
0

Homework Statement



Hi guys, I have the following problem and I don't know how to start.

I am given that W = 0.5, X(0) = 0, Iab = 20m and ha = 5m [tex]\frac{dy}{dx}=0[/tex]

and

[tex] \frac{dy^2}{d^2x}=\frac{W}{T}\sqrt{1 + (\frac{dy}{dx})^2}[/tex]

I am told to convert the 2nd order ODE to two 1st order ODEs at first. Then I am asked to choose an arbitrary value of T and integrate the system of equations using Euler's method from 0-Iab, where Iab=20, with 3 different step sizes. Then, I have to select the step size that gives an accurate value of y(Iab) (i.e. approximate relative error less than 0.1% if comparing with ha = 5).. Then I am asked to chose two values of T such that one gives y(Iab) smaller than ha and the other one gives y(Iab) bigger than ha and use those two values with the bisection method


Homework Equations



Euler's method: [tex]yi+1 = yi + f(xi,yi)*h[/tex] where [tex]f(x,y) = \frac{dy}{dx}[/tex]



The Attempt at a Solution



At first I broke it to two 1st order ODES:

[tex]\frac{dy}{dx}=g[/tex] and [tex]\frac{dg}{dx}=\frac{W}{T}\sqrt{1 + g^2}[/tex]

Then, for Euler's method: [tex]yi+1 = yi + gi*h[/tex] and [tex]gi+1 = gi + (\frac{W}{T}\sqrt{1+gi^2})*h[/tex]

My problem is, I don't know where to start in order to find y(Iab) (because the problem is asking for an accurate value of y(Iab) )... and what step size (h) to use. .. I also don't know which equation shall be used with the bisection method..

any help would be really appreciated. thank you
 
Physics news on Phys.org
I would suggest you go back and reread the problem. You say that X(0)= 0 but your differential equation has y as a function of x. What does X(0) mean?
 
Sorry, typo mistake. It says that the slope, at x=0, is dy/dx=0
 
and from the Picture I have, the graph, when x=0 -> y=0.

So I suppose for euler's method, suppose I choose a step size of ie, h=5, then it would be

[tex]y(5) = y(0) + g(0)*h[/tex] and [tex]g(5) = g(0) + (\frac{W}{T}\sqrt{1+g(0)^2})*h[/tex]

Is that correct ? And since I have to integrate from 0-20, I suppose I'll have to do y(10), y(15) and y(20) aswell, right ? (Same for g(10),g(15),g(20) ) ?
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
Replies
3
Views
2K
Replies
19
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
4
Views
3K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
10
Views
2K