Finite difference scheme for u'=u^2, u0=1, 0<t<2

In summary, the conversation discusses a finite difference scheme for solving the initial value problem u'(t)=u(t)^2, u(0)=1, 0<t<2. The difficulty arises when t approaches 1+, and the solution jumps to the negative branch. The proposed solution of u=1/(1-t) is deemed problematic and it is suggested to use an antiderivative of 1/(t-1)^2 instead. The conversation concludes that starting from an initial t0>1 is necessary when looking at t>1.
  • #1
feynman1
435
29
u'(t)=u(t)^2, u(0)=1, 0<t<2
What finite difference scheme can overcome the difficulty when t->1+ and help the solution jump to the negative branch?
 
Last edited:
Physics news on Phys.org
  • #2
[tex]\frac{du}{u^2}=dt[/tex]
[tex]\frac{1}{u}+t=const.=1[/tex]
Negative branch ?
 
  • #3
anuttarasammyak said:
[tex]\frac{du}{u^2}=dt[/tex]
[tex]\frac{1}{u}+t=const.=1[/tex]
Negative branch ?
when t>1, u<0
 
  • #4
Yes.
[tex]u=\frac{1}{1-t}[/tex]
What's wrong with it ?
 
  • #5
anuttarasammyak said:
[tex]u=\frac{1}{1-t}[/tex]
What's wrong with it ?
Starting from t=0, when t->1+, finite differences fail.
 
  • #6
Yes, but why do you estimate it fails ?
2021-09-14 13.49.46.jpg
 
Last edited:
  • #7
just try numerics yourself and you'll see.
 
  • #8
The solution says
[tex]|u|>1[/tex]
, or
[tex]|1/u|<1[/tex]
if you do not like divergence to ##\pm## infinity. {1/u} (0) = 0.
 
  • #9
feynman1 said:
Starting from t=0, when t->1+, finite differences fail.

The domain of the initial value problem at [itex]t = 0[/itex] does not extend past [itex]t \to 1^{-}[/itex].

An antiderivative of [itex]1/(t-1)^2[/itex] looks like [tex]
f: t \mapsto \begin{cases} 1/(1- t) + c_1 & t < 1 \\
1/(1 - t) + c_2 & t > 1.\end{cases}[/tex] The arbitrary constants [itex]c_1[/itex] and [itex]c_2[/itex] don't have to be equal, and the constraint that [itex]u(0) = 1[/itex] only fixes [itex]c_1 = 0[/itex].

If you want to look at [itex]t > 1[/itex] then you must start from an initial [itex]t_0 > 1[/itex] - for example [itex]u = -1[/itex] when [itex]t = 2[/itex].
 
  • Like
Likes feynman1

1. What is a finite difference scheme?

A finite difference scheme is a numerical method used to approximate the solution of a differential equation by dividing the domain into a finite number of points and using the values at these points to calculate the solution at subsequent points.

2. How does the finite difference scheme work for u'=u^2?

The finite difference scheme for u'=u^2 involves approximating the derivative of u at a given point by using the values of u at neighboring points. This is done by using the formula u'(x) ≈ (u(x+h) - u(x))/h, where h is the distance between neighboring points. This approximation is then used to calculate the value of u at the next point in the domain.

3. What is the initial condition u0=1?

The initial condition u0=1 means that the solution of the differential equation u'=u^2 starts at the point (0,1) on the u-t plane. This means that the value of u at t=0 is equal to 1.

4. What is the domain of the finite difference scheme for u'=u^2, 0

The domain of the finite difference scheme for u'=u^2, 0

5. How accurate is the finite difference scheme for u'=u^2?

The accuracy of the finite difference scheme for u'=u^2 depends on the choice of step size h and the number of points used in the approximation. Generally, as the step size decreases and the number of points increases, the accuracy of the approximation improves. However, the scheme may still introduce some error as it is an approximation of the exact solution.

Similar threads

  • Differential Equations
Replies
11
Views
2K
  • Differential Equations
Replies
2
Views
958
  • Differential Equations
Replies
7
Views
395
  • Differential Equations
Replies
1
Views
2K
Replies
2
Views
1K
  • Differential Equations
Replies
1
Views
757
  • Differential Equations
Replies
5
Views
1K
  • Differential Equations
Replies
3
Views
1K
  • Differential Equations
Replies
2
Views
2K
  • Differential Equations
Replies
2
Views
2K

Back
Top