Can initial conditions for an ODE be given by functions instead of constants?

Click For Summary

Discussion Overview

The discussion revolves around the possibility of using functions as initial conditions for ordinary differential equations (ODEs) instead of constants. Participants explore examples and clarify the nature of the equations involved, distinguishing between ODEs and partial differential equations (PDEs).

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant suggests that initial conditions for an ODE can be given by functions, citing examples from PDEs.
  • Another participant questions the specific ODE being discussed and requests clarification on it.
  • A participant provides the ODE y'' + iy' = 0 and questions whether the initial condition y(0) = 1 is appropriate.
  • Some participants express confusion regarding the classification of the equation as an ODE or PDE, with one participant admitting to a misunderstanding.
  • Another participant offers a solution to the ODE without considering initial conditions, presenting it in a specific form involving arbitrary constants.
  • There is a discussion about simplifying the solution by absorbing constants into the arbitrary constant C.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the use of functions as initial conditions for ODEs, and there is confusion regarding the classification of the equations as ODEs or PDEs. Multiple viewpoints and interpretations remain present throughout the discussion.

Contextual Notes

There are unresolved assumptions regarding the nature of the initial conditions and the classification of the equations. The discussion reflects varying levels of understanding among participants regarding ODEs and PDEs.

SeM
Hi, I am trying to solve an ODE, however, the initial conditions are not known. From PDE examples, which are quite different, I see that some examples have initial conditions given by functions, and not by constants, i.e::

y(0) = x^2

I may have not modeled the problem correctly yet, however, I see that the inhomogenous ODE should have a condition which is as such:

y(0) = cos(x)

MATLAB can't do it. Is it something that can't be done at all?

Thanks!
 
Physics news on Phys.org
Do we have to guess what ODE ? Why don't you post it ?
 
y'' + iy' = 0
 
In other words, y(0) = 1 ?

(your ODE doesn't look inhomogeneous to me at all ?!)
 
BvU said:
In other words, y(0) = 1 ?

(your ODE doesn't look inhomogeneous to me at all ?!)
Thanks, I think that explains it. I see this is a PDE not an ODE I want to solve. Cheers (y(0)=cos(theta)
 
Don't see no partial differential either. Is it me ?
 
BvU said:
Don't see no partial differential either. Is it me ?
It's not you, don't worry. It's me who is horribly wrong here.
 
SeM said:
y'' + iy' = 0

SeM said:
I see this is a PDE not an ODE I want to solve.
y appears to be a function of a single variable, so the above is an ODE. BTW, the solution I get, without considering an initial condition, is ##y = -\frac i C e^{-it} + D = -\frac i C (\cos(t) - i\sin(t)) + D##.
 
  • Like
Likes   Reactions: SeM
Mark44 said:
y appears to be a function of a single variable, so the above is an ODE. BTW, the solution I get, without considering an initial condition, is ##y = -\frac i C e^{-it} + D = -\frac i C (\cos(t) - i\sin(t)) + D##.

Thanks Mark!

Cheers
 
  • #10
As C is an arbitrary constant anyway, this can be written shorter as ##y=Ce^{-it} + D##.
 
  • Like
Likes   Reactions: SeM
  • #11
mfb said:
As C is an arbitrary constant anyway, this can be written shorter as ##y=Ce^{-it} + D##.
Right. I thought of this, but didn't let i be absorbed into the constant, so as to make things a bit clearer.
 
  • Like
Likes   Reactions: SeM

Similar threads

Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K