Solution of a first order ODE.

In summary, I found the exact fourth order polynomial solution to the first order ODE problem for which I have found the exact solution, namely a fourth order polynomial. Specifically, I found the solution y=(t^2+C)^2 for which t=0, 1, 2, 3, 4, 5. I want a numerical method to solve the problem exactly. This method has to be a fourth order method, since this implies that the local error vanishes.
  • #1
sigmund
23
0
We have the first order ODE

[tex] y'=4t \sqrt y,~y(0)=1, [/tex]

for which i have found the exact solution, namely a fourth order polynomial.

I want a numerical method to solve the problem exactly. This method has to be a fourth order method, since this implies that the local error vanishes.

Now we change the problem so it becomes

[tex] y'=4t \sqrt y - \lambda(y-(1+t^2)^2),~y(0)=a, [/tex]

and the question is: for which values of [itex]\lambda[/itex] and [itex]a[/itex] does a method that has the above mentioned property solve the new problem exactly.

Of course, the obvious case is [itex]\lambda=0[/itex] and [itex]a=1[/itex], because in this case the new problem reduces to the first problem.

My idea is that the solution must be a fourth order polynomial, since a fourth order numerical method has to solve the new problem exactly.

Although I want your view on this and a strategy to find the values of [itex]\lambda[/itex] and [itex]a[/itex] for which the new problem is solved exactly by a fourth order numerical method.
 
Physics news on Phys.org
  • #2
I want a numerical method to solve the problem exactly.

By definition, a numerical solution is not exact.
 
  • #3
What are you talking about, tide?
A numerical method is at times perfectly capable of yielding the exact solution's function values at the grid points.

That is what is ordinarily meant with "solving exactly" in CFD, for example.
 
Last edited:
  • #4
arildno said:
What are you talking about, tide?
A numerical method is at times perfectly capable of yielding the exact solution's function values at the grid points.

That is what is ordinarily meant with "solving exactly" in CFD, for example.

Any numerical solution is limited (at best) to machine precision - ergo it is not exact. :)

You surely are not suggesting that an exact analytic solution is mathematically equivalent to a numerical approximation? As a practical matter and when making engineering use of an exact analytic solution one is similarly limited by machine precision. Nevertheless, the (actual) real solution has many advantages over an approximate solution.
 
  • #5
I'm not talking about finite-precision arithmetic (and the errors induced by that), but the discretization techniques used on the original diff. eq It is common to call that a numerical METHOD (as OP said). If the exact solution of the difference equation equals the exact solution of the differential equation (restricted to the grid points), then the discretization scheme (i.e, numerical method) is said to reproduce the diff eq.solution.

The term "numerical SOLUTION" is often restricted to the solution as given by a machine, but neither OP or me used that term. Only you did that.
 
Last edited:
  • #6
By "I want a numerical method to solve the problem exactly", I mean a method for which the local error, in theory, vanishes. However, that is not my problem, because I know that with a fourth order numerical method this is achieved.

On the contrary, I want some help with the the second problem I mentioned in the original post.
 
  • #7
Note that insofar as y is a polynomial, then the term [tex]t\sqrt{y}[/tex] must be a polynomial as well.
Try first to see what conditions on [itex],\lambda[/itex] you'd get (if any) on a fourth-order solution on the form [tex]y=(t^{2}+kt+\sqrt{a})^{2}[/tex]
where k is some constant.

Due to the square root term, we have of course a>=0
We get, by inserting it in the diff. eq.:
[tex]4t^{3}+6kt^{2}+2(k^{2}+2\sqrt{a})t+2k\sqrt{a}=4t^{3}+4kt^{2}+4\sqrt{a}t-\lambda(2kt^{3}+(k^{2}+2\sqrt{a}-2)t^{2}+2k\sqrt{a}t+(a-1))[/tex]
Setting each coefficient of different powers zero, you'll get the conditions on your constants.

You'll get that k is necessarily 0, for example..
 
Last edited:
  • #8
What is the exact fourth order polynomial solution given y(0) = 1 ?

I can easily go from y' = 4t*sqrt(y) to
y = t^4

But I am not able to perform the integration when using the initial value y(0) = 1.
 
Last edited:
  • #9
Found a away to get the solution y = (t^2 + C)^2
where C equals the initial value for y(0) = C
 

1. What is a first order ODE?

A first order ODE, or ordinary differential equation, is a mathematical equation that contains a function and its derivative. It represents the relationship between a function and its rate of change.

2. What is the solution of a first order ODE?

The solution of a first order ODE is a function that satisfies the given equation. It is obtained by integrating the equation and finding a function that satisfies the initial conditions.

3. How is a first order ODE solved?

A first order ODE can be solved using various methods such as separation of variables, integrating factors, or using a substitution. The choice of method depends on the specific equation and initial conditions.

4. What are the applications of first order ODEs?

First order ODEs have many applications in physics, engineering, economics, and other fields. They are used to model rates of change and can be used to solve problems related to growth, decay, and other phenomena.

5. Can a first order ODE have multiple solutions?

Yes, a first order ODE can have multiple solutions. This is because the solution depends on the initial conditions, and different initial conditions can lead to different solutions. However, there are cases where a first order ODE has a unique solution, known as an autonomous equation.

Similar threads

  • Calculus and Beyond Homework Help
Replies
7
Views
2K
  • Calculus and Beyond Homework Help
Replies
4
Views
493
  • Calculus and Beyond Homework Help
Replies
7
Views
680
  • Calculus and Beyond Homework Help
Replies
6
Views
292
  • Calculus and Beyond Homework Help
Replies
3
Views
325
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
33
Views
3K
  • Calculus and Beyond Homework Help
Replies
2
Views
521
  • Calculus and Beyond Homework Help
Replies
5
Views
907
  • Calculus and Beyond Homework Help
Replies
2
Views
314
Back
Top