Solving differential equations

Click For Summary
SUMMARY

The discussion focuses on solving a system of differential equations defined by the equations x' = y with initial condition x(0) = 0 and y' = -x with initial condition y(0) = 1 for the interval 0 < t < 1. The appropriate method for solving this system is the Runge-Kutta method, a numerical approach. Participants confirm that it is indeed a system of differential equations and suggest that numerical solutions should be compared with exact solutions for validation.

PREREQUISITES
  • Understanding of first-order differential equations
  • Familiarity with the Runge-Kutta method for numerical solutions
  • Knowledge of initial value problems in differential equations
  • Ability to interpret and analyze systems of equations
NEXT STEPS
  • Study the implementation of the Runge-Kutta method in Python using libraries like NumPy
  • Learn how to derive exact solutions for simple systems of differential equations
  • Explore the comparison of numerical and analytical solutions in differential equations
  • Investigate other numerical methods for solving differential equations, such as Euler's method
USEFUL FOR

Students, educators, and professionals in mathematics, engineering, and physics who are working with differential equations and numerical methods for solving them.

johnchau123
Messages
8
Reaction score
0
I have the following question. I am not sure if the question is a system of differential equations or it is actually 2 questions.

The question is as follows.
Solve the initial problems
x' = y, x(0)=0
y' = -x, y(0)=1
for 0 < t < 1 .

Thanks. :smile:
 
Physics news on Phys.org
Hi John and welcome to the forums,

For future reference please note that we have homework forums for such questions. However, in reply to your question, what methods do you know for solving first order differentials and which would be appropriate here?
 
Sorry for posting the questions in a wrong area, I will post my homework questions to an appropriate area next time. :smile:

Actually, the question requires us to use Runge Kutta method to solve the question, a numerical approach. However, I am confused if the question is a system of DE or it is actually questions.

Thanks. :smile:
 
Yes, it is a system of differential equations! It looks pretty close to trivial to solve directly. I expect that if you are being asked to solve it numerically you will also be expected to compare it to an exact solution.

The best way to handle a system of two equations with Runge Kutta is to set up two simultaneous "solvers", at each step using the values of x and y just calculated in the previous step to find the new values or x and y.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
Replies
3
Views
2K
  • · Replies 27 ·
Replies
27
Views
2K
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
3
Views
2K