Question Regarding Initial Conditions.

Click For Summary
SUMMARY

The discussion focuses on the necessity of initial conditions when using Euler's method to numerically integrate the differential equation dy/dt=2ty^2 over the interval [0,1] with a step size of h=0.2. It is established that without initial conditions, one cannot determine a unique solution, as the general solution includes Y1(t)=0 and Y2(t)=-1/(C+t^(2)), where C is a constant. The recommended approach is to assume an initial condition, such as y(0)=-a^(2), to facilitate numerical integration. Additionally, users can refine their initial assumptions by comparing calculated values with actual solutions or using graphing tools for visual estimation.

PREREQUISITES
  • Understanding of Euler's method for numerical integration
  • Familiarity with differential equations and their general solutions
  • Knowledge of singularities in mathematical functions
  • Basic graphing skills or experience with graphing software
NEXT STEPS
  • Study the implementation of Euler's method for different types of differential equations
  • Explore the concept of initial conditions in solving ordinary differential equations
  • Learn about singularities and their implications in numerical solutions
  • Utilize graphing software to visualize differential equations and their solutions
USEFUL FOR

Mathematicians, engineering students, and anyone involved in numerical analysis or solving differential equations will benefit from this discussion.

abcd200x
Messages
1
Reaction score
0
I was doing a question which involved using euler's method to numerically integrate the equation dy/dt=2ty^2 in the interval [0,1], with h=0.2 but no initial conditions were given. How do I find them. I know it's something simple but I can't get it.

Thanks
 
Physics news on Phys.org
You cannot "find" an initial condition if you only have a differential equation to begin with.
The initial condition is an arbitrary parameter which secures the uniqueness of a solution to a differential equation problem. Without it, you have, in general, an infinity of solutions (the general solution).

However, knowing the general solution can give you a good hint as to which initial conditions may cause you trouble in a numerical procedure.

In your case, the general solution consists of the following functions:
Y1(t)=0
Y2(t)=-1/(C+t^(2)), C not eq. 0.

Y1(t) is the unique solution to the problem with init. cond. y(0)=0,
while Y2(t) yields the unique solution for any other choice of y(0).

Note however, that if y(0) is positive, C will be negative, and there will exist two singularities in your solution, at t1=-sqrt(-C), t2=sqrt(-C).

For a numerical integration with an arbitrary parameter y(0) included, this will be destructive.
The most general and safe way to proceed is to assume y(0)=-a^(2), where a is a real number.
 
for reaching out with your question! In order to use Euler's method to numerically integrate a differential equation, we do need to have initial conditions. These initial conditions represent the starting point for our integration and help us determine the value of the solution at each step. In this case, since no initial conditions were given, you will need to make assumptions or estimates for the initial values of y and t in order to proceed with the integration.

One approach could be to assume a value for y at t=0, and then use that to calculate the value of y at t=0.2, 0.4, 0.6, and so on until you reach t=1. You can then compare your calculated values with the actual solution at those time points to see how close your initial assumption was. If it is not accurate enough, you can adjust your initial assumption and repeat the process until you are satisfied with the results.

Another approach could be to use a graphing tool or software to plot the differential equation and visually estimate the initial values of y and t based on where the solution curve intersects the t-axis at t=0. This can give you a rough estimate to start with and then you can refine it as needed.

I hope this helps and good luck with your problem!
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
5K
Replies
10
Views
3K
Replies
1
Views
3K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 8 ·
Replies
8
Views
5K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K