Skip to article frontmatterSkip to article content

Basics of IVPs

When tt is meant to be time, sometimes we write u˙\dot{u} (read “u-dot”) instead of uu'.

Linear problems can be solved in terms of integrals. Defining the integrating factor ρ(t)=exp[h(t)dt]\rho(t) = \exp\bigl[\int -h(t)\, dt \bigr], the solution is derived from

ρ(t)u(t)=u0+atρ(s)g(s)ds. \rho(t) u(t) = u_0 + \int_a^t \rho(s) g(s) \, ds.

In many cases, however, the necessary integrals cannot be done in closed form. Some nonlinear ODEs, such as separable equations, may also be solvable with a short formula, perhaps with difficult integrations. Most often, though, there is no analytic formula available for the solution.

An ODE may have higher derivatives of the unknown solution present. For example, a second-order ordinary differential equation is often given in the form u(t)=f(t,u,u)u''(t)=f\bigl(t,u,u'\bigr). A second-order IVP requires two conditions at the initial time in order to specify a solution completely. As we will see in IVP systems, we are always able to reformulate higher-order IVPs in a first-order form, so we will deal with first-order problems exclusively.

6.1.1Numerical solutions

6.1.2Existence and uniqueness

There are simple IVPs that do not have solutions at all possible times.

We can also produce an IVP that has more than one solution.

The following standard theorem gives us a condition that is easy to check and guarantees that a unique solution exists. But it is not the most general possible such condition, so there are problems with a unique solution that it cannot detect. We state the theorem without proof.

6.1.3Conditioning of first-order IVPs

In a numerical context we have to be concerned about the conditioning of the IVP. There are two key items in (6.1.1) that we might consider to be the data of the initial-value ODE problem: the function f(t,u)f(t,u), and the initial value u0u_0. It’s easier to discuss perturbations to numbers than to functions, so we will focus on the effect of u0u_0 on the solution, using the following theorem that we give without proof. Happily, its conditions are identical to those in Theorem 6.1.1.

Numerical solutions of IVPs have errors, and those errors can be seen as perturbations to the solution. Theorem 6.1.2 gives an upper bound of eL(ba)e^{L(b-a)} on the infinity norm (i.e., pointwise) absolute condition number of the solution with respect to perturbations at an initial time. However, the upper bound may be a terrible overestimate of the actual sensitivity for a particular problem.

In general, solutions can diverge from, converge to, or oscillate around the original trajectory in response to perturbations. We won’t fully consider these behaviors and their implications for numerical methods again until a later chapter.

6.1.4Exercises

  1. ✍ For each IVP, determine whether the problem satisfies the conditions of Theorem 6.1.2). If so, determine the smallest possible value for LL.

    (a) f(t,u)=3u,  0t1f(t,u) = 3 u,\; 0 \le t \le 1

    (b) f(t,u)=tsin(u),  0t5f(t,u) = -t \sin(u),\; 0 \le t \le 5

    (c) f(t,u)=(1+t2)u2,  1t3f(t,u) = -(1+t^2) u^2,\; 1 \le t \le 3

    (d) f(t,u)=u,  0t1f(t,u) = \sqrt{u},\; 0 \le t \le 1

  2. ⌨ For each ODE in the preceding problem, assume that uu is initially equal to 1 on the given interval. Solve the resulting IVP with solve and make a plot of the solution.

  3. ✍ Use an integrating factor to find the solution of each problem in analytic form.

    (a) u=tu, 0t5, u(0)=2u' = -t u,\ 0 \le t \le 5,\ u(0) = 2

    (b) u3u=e2t, 0t1, u(0)=5u' - 3 u = e^{-2t},\ 0 \le t \le 1,\ u(0) = 5

  4. ✍ Consider the IVP u=u2u'=u^2, u(0)=αu(0)=\alpha.

    (a) Does Theorem 6.1.1 apply to this problem?

    (b) Show that u(t)=α/(1αt)u(t) = \alpha/(1-\alpha t) is a solution of the IVP.

    (c) Does this solution necessarily exist for all t[0,1]t\in[0,1]?

  5. ⌨ Using solve, compute solutions x(t)x(t) to the logistic equation with harvesting,

    x=k(Sx)(xM),0t10,x' = k (S-x)(x-M), \qquad 0\le t \le 10,

    with k=S=1k=S=1 and M=0.25M=0.25, for the initial conditions x(0)=0.9Mx(0)=0.9M, 1.1M1.1M, 1.5M1.5M, 0.9S0.9S, 1.1S1.1S, 3S3S. Show all the solutions together on one plot with 0x30\le x \le 3. (Note: One of the solutions will throw a warning and fail to reach t=10t=10, but you can plot it anyway.)

  6. (a) Using solve, solve the IVP u=ucos(u)+cos(4t)u'=u\cos(u) + \cos(4t), 0t100\le t \le 10, u(0)=u0u(0) = u_0 for u0=2,1.5,1,,1.5,2u_0 = -2,-1.5,-1,\ldots,1.5,2. Plot all the solutions on a single graph.

    (b) All of the solutions in part (a) eventually settle into one of two periodic oscillations. To two digits of accuracy, find the value of u0u_0 in (1,1)(-1,1) at which the selected long-term solution changes. (This will take repeated trials, narrowing down the range for u0u_0 each time.)

  7. ⌨ Experimental evidence (see Newton et al. (1981)) shows that a 300-mg oral dose of caffeine, such as might be found in a large mug of drip-brewed coffee, creates a concentration of about 8 μg\mu{\rm g}/mL in blood plasma. This boost is followed by first-order kinetics with a half-life of about 6 hours (although this rate can vary a great deal from person to person). We can model the caffeine concentration due to one drink taken over half an hour via

    x(t)=kx+C(t),x(0)=0, x'(t) = -kx + C(t),\quad x(0)=0,

    where k=log(2)/6k=\log(2)/6 and

    C(t)={16,0t0.5,0,t>0.5. C(t) = \begin{cases} 16, & 0\le t \le 0.5, \\ 0, & t > 0.5. \end{cases}

    Use solve to make a plot of the caffeine concentration for 12 hours. Then change k=log(2)/8k=\log(2)/8 (half-life of 8 hours) and plot the solution again.

  8. ⌨ A reasonable model of the velocity v(t)v(t) of a skydiver is

    dvdt=g+kmv2,v(0)=0,\frac{dv}{dt} = -g + \frac{k}{m}v^2, \qquad v(0)=0,

    where g=9.8 m/sec2g=9.8 \text{ m/sec}^2 is gravitational acceleration, mm is the mass of the skydiver with parachute, and kk quantifies the effect of air resistance. At the US Air Force Academy, a training jump starts at about 1200 m and has k=0.4875k=0.4875 for t<13t<13 and k=29.16k=29.16 or t13t\ge 13. (This is an oversimplification; see Meade & Struthers (1999).)

    (a) Solve the IVP for vv for an 80-kg cadet for t[0,200]t\in [0,200], and plot the solution.

    (b) The total distance fallen up to time tt is 0tv(s)ds\displaystyle\int_0^t v(s)\, ds. Use Function 5.7.1 to calculate and plot the altitude of the cadet as a function of time.

    (c) In part (b), you should have found that the altitude becomes negative. Use Function 4.4.2 to determine accurately when the cadet reaches the ground.

References
  1. Newton, R., Broughton, L. J., Lind, M. J., Morrison, P. J., Rogers, H. J., & Bradbrook, I. D. (1981). Plasma and Salivary Pharmacokinetics of Caffeine in Man. European Journal of Clinical Pharmacology, 21(1), 45–52. 10.1007/BF00609587
  2. Meade, D. B., & Struthers, A. A. (1999). Differential Equations in the New Millennium: The Parachute Problem. International Journal of Engineering Education, 15(6), 417–424.