Chapter 6 · Ordinary Differential Equations

6.1 First-Order Equations, Existence–Uniqueness and Linear Equations

Exact, linear and Bernoulli equations; the Lipschitz condition, Picard iterates and the Picard–Lindelöf theorem; linear equations of order $n$, the Wronskian and Abel's formula; constant coefficients, undetermined coefficients, variation of parameters and Cauchy–Euler equations — the core ODE toolkit of GATE MA.

A differential equation is a rule for how a quantity changes; solving it means recovering the quantity itself. Two questions come before any formula. Is there a solution at all, and is it the only one? A physical model whose equation has two different solutions with the same initial state cannot predict anything, and an equation whose solution exists only for a short time describes a system that breaks down. The Picard–Lindelöf theorem answers both questions for $y'=f(x,y)$ under a simple condition on $f$, and its counterexamples show precisely what goes wrong without that condition. What do all the solutions look like? For linear equations the answer is complete: the solutions of a homogeneous linear equation of order $n$ form an $n$-dimensional vector space, a Wronskian decides whether $n$ given solutions span it, and for constant coefficients and for Cauchy–Euler equations the space can be written down from the roots of a polynomial.

GATE MA tests this material in all three formats. Computational MCQs and NATs ask you to solve an exact, linear or Bernoulli equation through a point, to evaluate a Cauchy–Euler or constant-coefficient solution at a given $x$, to compute a Picard iterate, a Wronskian from Abel's formula, or the interval of existence the theorem guarantees. MSQs ask which initial value problems have unique solutions, which pairs of functions can solve a second-order linear equation, and which trial function the method of undetermined coefficients needs. This section develops all of it, with proofs of the central results and a counterexample for each hypothesis.

First-Order Equations You Can Solve Exactly

📘 Definition 6.1 — First-order equation, initial value problem, solution

Let $D\subseteq\mathbb{R}^2$ be open and $f:D\to\mathbb{R}$ continuous. A solution of the first-order equation $y'=f(x,y)$ on an interval $I$ is a differentiable function $\varphi:I\to\mathbb{R}$ with $(x,\varphi(x))\in D$ and $\varphi'(x)=f(x,\varphi(x))$ for every $x\in I$. Given $(x_0,y_0)\in D$, the initial value problem (IVP) is

$$y'=f(x,y),\qquad y(x_0)=y_0 ,$$

and a solution of it is a solution on an interval containing $x_0$ with $\varphi(x_0)=y_0$. We also write equations in differential form $M(x,y)\,dx+N(x,y)\,dy=0$; a solution is then a curve along which $M+Ny'=0$ (or $Mx'+N=0$ if $x$ is regarded as a function of $y$).

The simplest equations are separable, $y'=g(x)h(y)$. Where $h(y)\ne0$ we may write $\int\frac{dy}{h(y)}=\int g(x)\,dx+C$; every zero $c$ of $h$ gives in addition the constant solution $y\equiv c$, which this formula never produces. (For $y'=2x(1+y)$: $\log|1+y|=x^2+C$ gives $y=Ae^{x^2}-1$ with $A\ne0$, and $y\equiv-1$ is the solution with $A=0$.) Most of the equations GATE asks about are not separable, but become so — or become derivatives of something — after the right manipulation.

📘 Definition 6.2 — Exact equation, potential, integrating factor
Let $M,N$ be $C^1$ on an open set $D$. The equation $M\,dx+N\,dy=0$ is exact on $D$ if there is a $C^1$ function $F$ on $D$ (a potential) with $F_x=M$ and $F_y=N$. Then $\frac{d}{dx}F(x,y(x))=M+Ny'$, so the solutions are exactly the curves $F(x,y)=c$ (on which $N\ne0$ gives $y$ as a function of $x$ by the implicit function theorem of §1.1). A nowhere-zero $C^1$ function $\mu$ is an integrating factor if $\mu M\,dx+\mu N\,dy=0$ is exact.
📐 Theorem 6.1 — Test for exactness
Let $M,N$ be $C^1$ on an open rectangle $D=(\alpha,\beta)\times(\gamma,\delta)$ (or, more generally, on a simply connected open set). Then $M\,dx+N\,dy=0$ is exact on $D$ if and only if $$\frac{\partial M}{\partial y}=\frac{\partial N}{\partial x}\quad\text{on }D .$$ A potential is then $F(x,y)=\displaystyle\int_{x_0}^{x}M(t,y_0)\,dt+\int_{y_0}^{y}N(x,t)\,dt$ for any fixed $(x_0,y_0)\in D$.

Proof. If $F_x=M$ and $F_y=N$ with $M,N\in C^1$, then $F\in C^2$ and Schwarz's theorem on mixed partials (§1.1) gives $M_y=F_{xy}=F_{yx}=N_x$. Conversely, suppose $M_y=N_x$ on the rectangle and define $F$ by the formula; both integrals run along segments that stay in $D$. By the fundamental theorem of calculus $F_y=N(x,y)$. Differentiating under the integral sign (allowed because $N_x$ is continuous on the compact segment),

$$F_x=M(x,y_0)+\int_{y_0}^{y}N_x(x,t)\,dt=M(x,y_0)+\int_{y_0}^{y}M_y(x,t)\,dt ,$$

and the last integral equals $M(x,y)-M(x,y_0)$. So $F_x=M$. ∎

The domain matters. On $\mathbb{R}^2\setminus\{0\}$ the form $\dfrac{-y\,dx+x\,dy}{x^2+y^2}$ satisfies $M_y=N_x$ but has no potential there: its potential would be the polar angle $\theta$, which cannot be defined continuously all the way round the origin. This is the conservative-field phenomenon of §2.1.

📐 Theorem 6.2 — Three integrating factors

Let $M,N$ be $C^1$ on a rectangle $D$.

  1. If $\dfrac{M_y-N_x}{N}=g(x)$ depends on $x$ alone, then $\mu(x)=e^{\int g(x)\,dx}$ is an integrating factor.
  2. If $\dfrac{N_x-M_y}{M}=h(y)$ depends on $y$ alone, then $\mu(y)=e^{\int h(y)\,dy}$ is an integrating factor.
  3. If $M$ and $N$ are homogeneous of the same degree $k$ (homogeneous functions, §1.1) and $xM+yN\ne0$ on $D$, then $\mu=\dfrac{1}{xM+yN}$ is an integrating factor.

Proof. (1) With $\mu=\mu(x)$, exactness of $\mu M\,dx+\mu N\,dy$ means $\mu M_y=\mu'N+\mu N_x$, i.e. $\mu'/\mu=(M_y-N_x)/N=g$, which $\mu=e^{\int g}$ satisfies. (2) is the same with the roles of $x$ and $y$ exchanged. (3) Put $D_0=xM+yN$. A direct computation gives

$$\left(\frac{M}{D_0}\right)_y-\left(\frac{N}{D_0}\right)_x=\frac{N(xM_x+yM_y)-M(xN_x+yN_y)}{D_0^2}.$$

By Euler's theorem (§1.1) $xM_x+yM_y=kM$ and $xN_x+yN_y=kN$, so the numerator is $kNM-kMN=0$. ∎

The linear first-order equation is the most important special case: it always has an integrating factor depending on $x$ alone, and its solutions exist on the whole interval where the coefficients are continuous.

📐 Theorem 6.3 — Linear and Bernoulli equations

Linear. Let $P,Q$ be continuous on an open interval $I$, $x_0\in I$, $y_0\in\mathbb{R}$. The IVP $y'+P(x)y=Q(x)$, $y(x_0)=y_0$ has exactly one solution on $I$, namely

$$y(x)=\frac{1}{\mu(x)}\left(y_0+\int_{x_0}^{x}\mu(t)Q(t)\,dt\right),$$

where $\mu(x)=\exp\left(\int_{x_0}^{x}P(t)\,dt\right)$ is the integrating factor. The general solution is $y=\mu^{-1}\left(\int\mu Q\,dx+C\right)$.

Bernoulli. For $n\ne0,1$, the substitution $v=y^{1-n}$ turns $y'+P(x)y=Q(x)y^n$ into the linear equation $v'+(1-n)P(x)v=(1-n)Q(x)$ (on any interval where $y\gt0$, or $y\ne0$ when $y^{1-n}$ is defined for negative $y$). If $n\gt0$, $y\equiv0$ is a further solution that the substitution misses.

Proof. $\mu$ is $C^1$, positive, and $\mu'=P\mu$. If $y$ is differentiable on $I$, then $(\mu y)'=\mu(y'+Py)$, so $y$ solves the equation iff $(\mu y)'=\mu Q$ on $I$, iff $\mu(x)y(x)=\mu(x_0)y(x_0)+\int_{x_0}^{x}\mu Q$ for all $x\in I$. With $\mu(x_0)=1$ and $y(x_0)=y_0$ this is the displayed formula: it shows existence on all of $I$ and uniqueness at once. For Bernoulli, $v=y^{1-n}$ gives $v'=(1-n)y^{-n}y'$; substituting $y'=Qy^n-Py$ gives $v'=(1-n)(Q-Pv)$. ∎

✏️ Example 1 — An exact equation and an integrating factor
(a) Solve $(2xy+\cos y)\,dx+(x^2-x\sin y+2y)\,dy=0$ with $y(1)=0$. (b) Find an integrating factor of $(2y^2+3x)\,dx+2xy\,dy=0$ on $x\gt0$ and solve the equation.
(a) Test $M_y=2x-\sin y$ and $N_x=2x-\sin y$ agree on $\mathbb{R}^2$, so the equation is exact (Theorem 6.1).
(a) Potential Integrating $M$ in $x$: $F=x^2y+x\cos y+g(y)$. Then $F_y=x^2-x\sin y+g'(y)$ must equal $N$, so $g'(y)=2y$ and $g=y^2$. Solutions: $x^2y+x\cos y+y^2=c$.
(a) Initial value $F(1,0)=0+1+0=1$, so the solution is the curve $x^2y+x\cos y+y^2=1$. Since $F_y(1,0)=1\ne0$, near $x=1$ this curve is the graph of a function $y(x)$.
(b) Factor $M_y=4y$, $N_x=2y$, and $\dfrac{M_y-N_x}{N}=\dfrac{2y}{2xy}=\dfrac1x$ depends on $x$ only. By Theorem 6.2(1), $\mu=e^{\int dx/x}=x$.
(b) Solve $(2xy^2+3x^2)\,dx+2x^2y\,dy=0$ is exact with potential $F=x^2y^2+x^3$. General solution $x^2y^2+x^3=C$, i.e. $y=\pm\dfrac{\sqrt{C-x^3}}{x}$.
Check Along a solution, $\frac{d}{dx}(x^2y^2+x^3)$ equals $2xy^2+2x^2yy'+3x^2$, which is $x\left(M+Ny'\right)=0$. ✓
✏️ Example 2 — A linear and a Bernoulli equation
(a) Find the general solution of $xy'-2y=x^3e^x$ on $x\gt0$. (b) Solve $y'+\dfrac yx=xy^2$, $y(1)=1$, and find the largest interval on which the solution exists.
(a) Normal form: $y'-\dfrac2xy=x^2e^x$, so $P=-\dfrac2x$ and $\mu=e^{-2\log x}=x^{-2}$. Then $(x^{-2}y)'=e^x$, so $x^{-2}y=e^x+C$ and $y=x^2\left(e^x+C\right)$. By Theorem 6.3 every solution is defined on all of $(0,\infty)$.
(b) Substitute Bernoulli with $n=2$: $v=y^{-1}$ satisfies $v'-\dfrac vx=-x$. With $\mu=\dfrac1x$: $\left(\dfrac vx\right)'=-1$, so $v=Cx-x^2$.
(b) Initial value $v(1)=1$ gives $C=2$, so $y=\dfrac{1}{2x-x^2}=\dfrac{1}{x(2-x)}$.
(b) Interval The linear equation for $v$ has its solution on all of $(0,\infty)$, but $y=1/v$ exists only while $v\ne0$. The largest interval containing $1$ is $(0,2)$; $y\to+\infty$ at both ends. (Also $y\equiv0$ solves the equation; it does not satisfy $y(1)=1$.)

Existence and Uniqueness: the Picard–Lindelöf Theorem

An IVP can have no solution (if $f$ is too wild), several solutions, or a solution that exists only for a short time. Continuity of $f$ is enough for existence; uniqueness needs a little more — that $f$ does not change too fast in $y$.

📘 Definition 6.3 — Lipschitz condition in $y$
$f$ satisfies a Lipschitz condition in $y$ on a set $R\subseteq\mathbb{R}^2$, with Lipschitz constant $L\ge0$, if $$|f(x,y_1)-f(x,y_2)|\le L\,|y_1-y_2|$$ for all $(x,y_1),(x,y_2)\in R$. It is locally Lipschitz in $y$ on an open set $D$ if every point of $D$ has a neighbourhood on which such an inequality holds.
📐 Theorem 6.4 — A bounded $\partial f/\partial y$ gives a Lipschitz condition
Let $R$ be a set such that whenever $(x,y_1),(x,y_2)\in R$ the vertical segment between them lies in $R$ (a rectangle or a strip, for example). If $\partial f/\partial y$ exists on $R$ and $|\partial f/\partial y|\le L$ there, then $f$ is Lipschitz in $y$ on $R$ with constant $L$. In particular, if $f$ and $\partial f/\partial y$ are continuous on an open set $D$, then $f$ is locally Lipschitz in $y$ on $D$.

Proof. For fixed $x$, the mean value theorem applied to $y\mapsto f(x,y)$ on the segment gives $f(x,y_1)-f(x,y_2)=f_y(x,\eta)(y_1-y_2)$ for some $\eta$ between $y_1$ and $y_2$, and $|f_y(x,\eta)|\le L$. For the last claim, a closed rectangle about a point of $D$ is compact, so the continuous $f_y$ is bounded on it. ∎

The converse fails: $f(x,y)=|y|$ is Lipschitz with $L=1$ (by the reverse triangle inequality) but has no $y$-derivative at $y=0$. And $f(x,y)=\sqrt{|y|}$ is not Lipschitz near $y=0$: $\dfrac{|f(x,y)-f(x,0)|}{|y-0|}=|y|^{-1/2}$ is unbounded.

The key observation is that $\varphi$ solves the IVP on $I$ if and only if $\varphi$ is continuous and satisfies the integral equation

$$\varphi(x)=y_0+\int_{x_0}^{x}f\left(t,\varphi(t)\right)dt\qquad(x\in I),$$

by the fundamental theorem of calculus in both directions. Picard's idea is to solve this fixed-point equation by iteration.

📘 Definition 6.4 — Picard iterates (successive approximations)
For the IVP $y'=f(x,y)$, $y(x_0)=y_0$, the Picard iterates are $\varphi_0(x)\equiv y_0$ and $$\varphi_{n+1}(x)=y_0+\int_{x_0}^{x}f\left(t,\varphi_n(t)\right)dt\qquad(n=0,1,2,\dots).$$
📐 Theorem 6.5 — Picard–Lindelöf (Cauchy–Lipschitz) theorem

Let $R=\{(x,y):|x-x_0|\le a,\ |y-y_0|\le b\}$ with $a,b\gt0$, and let $f:R\to\mathbb{R}$ be continuous on $R$ and Lipschitz in $y$ on $R$ with constant $L$. Let $M=\max_R|f|\gt0$ and

$$h=\min\left(a,\ \frac bM\right).$$

Then the IVP $y'=f(x,y)$, $y(x_0)=y_0$ has exactly one solution $\varphi$ on $I=[x_0-h,x_0+h]$. The Picard iterates are defined on $I$, their graphs lie in $R$, and they converge to $\varphi$ uniformly on $I$, with $|\varphi(x)-\varphi_n(x)|\le\dfrac ML\dfrac{(Lh)^{n+1}}{(n+1)!}e^{Lh}$ for $L\gt0$.

Proof. Step 1 — the iterates stay in $R$. Suppose $\varphi_n$ is continuous on $I$ with $|\varphi_n-y_0|\le b$ (true for $n=0$). Then $t\mapsto f(t,\varphi_n(t))$ is continuous and bounded by $M$, so $\varphi_{n+1}$ is defined and continuous, and $|\varphi_{n+1}(x)-y_0|\le M|x-x_0|\le Mh\le b$. This is where $h\le b/M$ is used: the graph cannot leave $R$ through its top or bottom.

Step 2 — the differences shrink factorially. We show $|\varphi_{k+1}(x)-\varphi_k(x)|\le\dfrac{ML^k|x-x_0|^{k+1}}{(k+1)!}$ on $I$. For $k=0$ it is Step 1. If it holds for $k-1$, then by the Lipschitz condition (take $x\ge x_0$; the other side is symmetric)

$$|\varphi_{k+1}(x)-\varphi_k(x)|\le L\int_{x_0}^{x}|\varphi_k-\varphi_{k-1}|\,dt\le L\int_{x_0}^{x}\frac{ML^{k-1}(t-x_0)^{k}}{k!}\,dt ,$$

which is the claim.

Step 3 — uniform convergence to a solution. On $I$ the terms of $\varphi_0+\sum_k(\varphi_{k+1}-\varphi_k)$ are bounded by $\frac ML\frac{(Lh)^{k+1}}{(k+1)!}$, the terms of a convergent series. By the Weierstrass M-test (§4.2) $\varphi_n\to\varphi$ uniformly on $I$; $\varphi$ is continuous with graph in $R$, and the tail of the series gives the error bound. Since $f(t,\varphi_n(t))$ and $f(t,\varphi(t))$ differ by at most $L|\varphi_n(t)-\varphi(t)|$, which tends to $0$ uniformly, we may pass to the limit under the integral in Definition 6.4: $\varphi$ satisfies the integral equation, hence solves the IVP.

Step 4 — uniqueness. Let $\psi$ be another solution on $J\subseteq I$, $x_0\in J$. As in Step 1, its graph stays in $R$: while it is in $R$, $|\psi'|\le M$, so if it left $R$ at some $x_1$ with $|x_1-x_0|\lt h$, at the first such point $b=|\psi(x_1)-y_0|\le M|x_1-x_0|\lt Mh\le b$ — impossible. Put $K=\max_J|\varphi-\psi|$. Then $|\varphi(x)-\psi(x)|\le L\left|\int_{x_0}^{x}|\varphi-\psi|\,dt\right|$, and inserting this bound into itself $n$ times gives $|\varphi(x)-\psi(x)|\le K\dfrac{(L|x-x_0|)^n}{n!}\to0$. So $\psi=\varphi$ on $J$. ∎

The same argument, read as "the map $\varphi\mapsto y_0+\int f(t,\varphi)$ has a unique fixed point", is the contraction mapping principle of §4.1. Two companions complete the picture.

📐 Theorem 6.6 — Existence without uniqueness; global existence on a strip
  1. Peano. If $f$ is merely continuous on $R$ (notation of Theorem 6.5), the IVP has at least one solution on $[x_0-h,x_0+h]$.
  2. Strip. If $f$ is continuous on the strip $S=[\alpha,\beta]\times\mathbb{R}$ and Lipschitz in $y$ on all of $S$, then for every $x_0\in[\alpha,\beta]$ and $y_0\in\mathbb{R}$ the IVP has exactly one solution, and it is defined on the whole interval $[\alpha,\beta]$. In particular the linear equation $y'=P(x)y+Q(x)$ with $P,Q$ continuous on $[\alpha,\beta]$ has this property ($L=\max|P|$).

Proof (sketch). (1) Euler polygons with step $1/k$ stay in $R$, are uniformly bounded and uniformly Lipschitz (slope at most $M$), so by the Ascoli–Arzelà theorem (§4.2) a subsequence converges uniformly; the limit satisfies the integral equation. (2) On a strip the iterates never need to stay in a box, so Step 1 is unnecessary; Steps 2–4 run on all of $[\alpha,\beta]$ with $M$ replaced by $M_0=\max_{[\alpha,\beta]}|f(x,y_0)|$, since $|\varphi_1-y_0|\le M_0|x-x_0|$. ∎

✏️ Example 3 — Picard iterates converge to the solution
For $y'=2x(1+y)$, $y(0)=0$: (a) compute $\varphi_1,\varphi_2,\varphi_3$ and guess $\varphi_n$; (b) identify the limit and check it by solving the equation; (c) find the interval that Theorem 6.5 guarantees on $R=\{|x|\le1,|y|\le1\}$, and decide on which interval the solution actually exists.
(a) $\varphi_1=\int_0^x2t\,dt=x^2$; $\ \varphi_2=\int_0^x2t(1+t^2)\,dt=x^2+\tfrac{x^4}{2}$; $\ \varphi_3=\int_0^x2t\left(1+t^2+\tfrac{t^4}{2}\right)dt=x^2+\tfrac{x^4}{2}+\tfrac{x^6}{6}$. By induction $\varphi_n=\displaystyle\sum_{k=1}^{n}\frac{x^{2k}}{k!}$: if this holds for $n$, then $2t(1+\varphi_n(t))=\sum_{k=0}^{n}\frac{2t^{2k+1}}{k!}$ integrates to $\sum_{k=0}^{n}\frac{x^{2k+2}}{(k+1)!}=\varphi_{n+1}$.
(b) $\varphi_n(x)\to e^{x^2}-1$ (the exponential series). The equation is separable: $\dfrac{dy}{1+y}=2x\,dx$ gives $1+y=Ae^{x^2}$, and $y(0)=0$ forces $A=1$. ✓
(c) Guarantee On $R$, $M=\max|2x(1+y)|=2\cdot1\cdot2=4$, so $h=\min\left(1,\tfrac14\right)=\tfrac14$: the theorem guarantees a unique solution on $\left[-\tfrac14,\tfrac14\right]$ ($L=\max|f_y|=\max|2x|=2$).
(c) Reality On every strip $[-a,a]\times\mathbb{R}$, $f$ is Lipschitz in $y$ with $L=2a$, so by Theorem 6.6(2) the solution exists on every $[-a,a]$, i.e. on all of $\mathbb{R}$ — as $e^{x^2}-1$ confirms. The guaranteed $h$ is only a lower bound.
✏️ Example 4 — Prove or disprove: existence and uniqueness
(a) The IVP $y'=3y^{2/3}$, $y(0)=0$ has a unique solution. (b) The IVP $y'=3y^{2/3}$, $y(0)=1$ has a unique solution near $x=0$. (c) Since $f(x,y)=y^2$ is a polynomial, the IVP $y'=y^2$, $y(0)=1$ has a solution on $[0,2]$.
(a) False $y\equiv0$ and $y=x^3$ are both solutions ($3(x^3)^{2/3}=3x^2$). In fact, for any $d\le0\le c$ the function equal to $(x-d)^3$ for $x\lt d$, to $0$ on $[d,c]$ and to $(x-c)^3$ for $x\gt c$ is a solution (it is differentiable at $c$ and $d$, with derivative $0$ from both sides): infinitely many solutions. Theorem 6.5 fails because $f$ is not Lipschitz near $y=0$: $|f(x,y)-f(x,0)|/|y|=3|y|^{-1/3}$ is unbounded. Peano's theorem still gives existence.
(b) True On $R=\{|x|\le1,\ |y-1|\le\tfrac12\}$, $f_y=2y^{-1/3}$ is continuous with $|f_y|\le2\cdot2^{1/3}$, so Theorems 6.4 and 6.5 apply: the solution $y=(x+1)^3$ is unique near $0$. It stays unique as long as it stays away from $y=0$; it reaches $0$ at $x=-1$, and to the left of $-1$ uniqueness is lost again (continue by $0$ or by $(x+1)^3$).
(c) False The solution is $y=\dfrac{1}{1-x}$, which blows up as $x\to1^-$; there is no solution on $[0,2]$. Smoothness of $f$ gives only local existence. Theorem 6.5 on $R=\{|x|\le a,|y-1|\le b\}$ gives $M=(1+b)^2$ and $h=\min\left(a,\frac{b}{(1+b)^2}\right)\le\frac14$ (the maximum of $b/(1+b)^2$ is $\tfrac14$, at $b=1$), well inside the true interval $(-\infty,1)$.

Linear Equations of Order $n$: the Wronskian and Abel's Formula

📘 Definition 6.5 — Linear equation of order $n$
A linear equation of order $n$ on an open interval $J$ is $a_n(x)y^{(n)}+\dots+a_1(x)y'+a_0(x)y=r(x)$; it is homogeneous if $r\equiv0$. Where $a_n\ne0$ we divide by it and get the normal form $$L[y]:=y^{(n)}+p_{n-1}(x)y^{(n-1)}+\dots+p_1(x)y'+p_0(x)y=f(x).$$ Throughout, $p_0,\dots,p_{n-1},f$ are continuous on $J$. Points where $a_n=0$ are singular points; the theory applies on each interval free of them.
📐 Theorem 6.7 — Existence and uniqueness for linear equations
Under the standing hypothesis, for every $x_0\in J$ and $\eta_0,\dots,\eta_{n-1}\in\mathbb{R}$ the IVP $L[y]=f$, $y^{(k)}(x_0)=\eta_k$ ($0\le k\le n-1$) has exactly one solution, and it is defined on all of $J$. In particular, the only solution of $L[y]=0$ with $y(x_0)=y'(x_0)=\dots=y^{(n-1)}(x_0)=0$ is $y\equiv0$.

Proof (idea). With $Y=(y,y',\dots,y^{(n-1)})^{\mathsf T}$ the equation becomes the first-order system $Y'=A(x)Y+F(x)$, where $A$ is the companion matrix of the $p_k$. On a compact subinterval $[\alpha,\beta]\subset J$ the right side is Lipschitz in $Y$ with constant $\max\|A(x)\|$ on the whole strip $[\alpha,\beta]\times\mathbb{R}^n$, and the vector form of Theorem 6.6(2) applies; exhausting $J$ by such subintervals gives a solution on $J$. ∎

📐 Theorem 6.8 — Superposition and the structure of the solution set
(a) The solutions of $L[y]=0$ on $J$ form a real vector space $V$ of dimension exactly $n$. (b) If $y_p$ is one solution of $L[y]=f$, every solution is $y=y_c+y_p$ with $y_c\in V$: "general solution $=$ complementary function $+$ particular integral".

Proof. (a) $L$ is linear, so $V=\ker L$ is a vector space. Fix $x_0$ and define $\Phi:V\to\mathbb{R}^n$, $\Phi(y)=(y(x_0),\dots,y^{(n-1)}(x_0))$. $\Phi$ is linear; it is onto by the existence part of Theorem 6.7 and one-to-one by the uniqueness part. Hence $\dim V=n$. (b) $L[y-y_p]=f-f=0$. ∎

📘 Definition 6.6 — Wronskian; fundamental set
For functions $y_1,\dots,y_n$ that are $n-1$ times differentiable on $J$, the Wronskian is $$W(y_1,\dots,y_n)=\det\begin{pmatrix}y_1&\cdots&y_n\\y_1'&\cdots&y_n'\\\vdots&&\vdots\\y_1^{(n-1)}&\cdots&y_n^{(n-1)}\end{pmatrix};$$ for two functions $W=y_1y_2'-y_1'y_2$. A basis $y_1,\dots,y_n$ of the solution space of $L[y]=0$ is a fundamental set; then the general solution is $c_1y_1+\dots+c_ny_n$.
📐 Theorem 6.9 — Wronskian test and Abel's formula

Let $y_1,\dots,y_n$ be solutions of $L[y]=0$ on $J$ and $W=W(y_1,\dots,y_n)$. Then for any $x_0\in J$

$$W(x)=W(x_0)\exp\left(-\int_{x_0}^{x}p_{n-1}(t)\,dt\right)\qquad(\text{Abel's formula}).$$

Consequently $W$ is either identically zero or never zero on $J$, and $y_1,\dots,y_n$ form a fundamental set $\iff W(x_0)\ne0$ for some $x_0\in J$ $\iff W(x)\ne0$ for every $x\in J$.

Proof. Abel, $n=2$. $W'=(y_1y_2'-y_1'y_2)'=y_1y_2''-y_1''y_2$. Substituting $y_k''=-p_1y_k'-p_0y_k$, the $p_0$ terms cancel and $W'=-p_1(y_1y_2'-y_1'y_2)=-p_1W$. This linear first-order equation has the solution displayed (Theorem 6.3). General $n$. Differentiating the determinant row by row, every term but the last has two equal rows, so $W'$ is the determinant with last row $(y_1^{(n)},\dots,y_n^{(n)})$. Replace $y_k^{(n)}$ by $-\sum_jp_jy_k^{(j)}$ and add to the last row $p_j$ times the row of $j$-th derivatives, for $j\le n-2$: what remains in the last row is $-p_{n-1}$ times the row of $(n-1)$-th derivatives, so $W'=-p_{n-1}W$.

Test. If $W(x_0)=0$, the columns of the Wronski matrix at $x_0$ are dependent: some $c\ne0$ has $\sum c_ky_k^{(j)}(x_0)=0$ for $0\le j\le n-1$. Then $y=\sum c_ky_k$ solves $L[y]=0$ with zero initial data at $x_0$, so $y\equiv0$ by Theorem 6.7 — the $y_k$ are dependent. Conversely, if $\sum c_ky_k\equiv0$ with $c\ne0$, differentiating $n-1$ times shows the Wronski matrix kills $c$ at every point, so $W\equiv0$. The dichotomy is visible in Abel's formula, since the exponential never vanishes. ∎

For arbitrary functions (not solutions of one normal equation) "$W\equiv0$" does not imply dependence; Example 5(b) shows this. When one solution of a second-order equation is known, Abel's formula hands us a second.

📐 Theorem 6.10 — Reduction of order
If $y_1$ is a solution of $y''+p(x)y'+q(x)y=0$ with $y_1(x)\ne0$ on $J$, then $$y_2=y_1\int\frac{e^{-\int p\,dx}}{y_1^{2}}\,dx$$ is a second solution, and $y_1,y_2$ form a fundamental set on $J$.

Proof. Let $y_2$ be any solution independent of $y_1$. By Abel, $W(y_1,y_2)=Ce^{-\int p}$ with $C\ne0$, and $\left(\dfrac{y_2}{y_1}\right)'=\dfrac{W}{y_1^2}$. Integrating, $y_2/y_1$ is $C\int e^{-\int p}/y_1^2$ plus a constant; dropping the constants (which only add multiples of $y_1$) gives the formula. Directly: the displayed $y_2$ has $W(y_1,y_2)=y_1^2(y_2/y_1)'=e^{-\int p}\ne0$, and one checks that it solves the equation. ∎

✏️ Example 5 — Prove or disprove: Wronskians and Abel's formula
(a) There are continuous $p,q$ on $\mathbb{R}$ such that $x$ and $\sin x$ both solve $y''+p(x)y'+q(x)y=0$ on $\mathbb{R}$. (b) $x^2$ and $x|x|$ are linearly dependent on $(-1,1)$ because their Wronskian vanishes identically. (c) If $y_1,y_2$ solve $xy''+2y'+xe^xy=0$ on $(0,\infty)$ with $W(y_1,y_2)(1)=3$, then $W(y_1,y_2)(2)=\tfrac34$.
(a) False $W(x,\sin x)=x\cos x-\sin x$. Then $W(0)=0$ but $W(\pi)=-\pi\ne0$. By Theorem 6.9 the Wronskian of two solutions is either identically zero or never zero, so no such $p,q$ exist. (On $(0,\infty)$ the same argument works: $W$ vanishes at the root $x\approx4.4934$ of $\tan x=x$ but not identically.)
(b) False $x|x|$ is $C^1$ with derivative $2|x|$. For $x\ge0$, $W(x^2,x^2)=0$; for $x\lt0$, $W(x^2,-x^2)=0$; so $W\equiv0$. But $c_1x^2+c_2x|x|=0$ at $x=\pm\tfrac12$ gives $c_1+c_2=0$ and $c_1-c_2=0$, so $c_1=c_2=0$: independent. There is no contradiction with Theorem 6.9: both functions solve $x^2y''-2xy'+2y=0$, whose normal form has coefficients $-2/x$ and $2/x^2$, discontinuous at $0\in(-1,1)$.
(c) True Normal form: $y''+\dfrac2xy'+e^xy=0$, so $p_1=\dfrac2x$ and $W(x)=W(1)e^{-\int_1^x2\,dt/t}=\dfrac{3}{x^2}$. Hence $W(2)=\tfrac34$. (Forgetting to divide by the leading coefficient $x$ gives the wrong $3e^{-2}$.)

Constant Coefficients, Undetermined Coefficients, Variation of Parameters

Write $D=\dfrac{d}{dx}$. A homogeneous equation with constant real coefficients is $p(D)y=0$, where $p(r)=r^n+a_{n-1}r^{n-1}+\dots+a_0$. Everything rests on the shift rule $(D-r)\left(e^{rx}u\right)=e^{rx}u'$ — a one-line product-rule computation — and on the fact that polynomials in $D$ with constant coefficients multiply like ordinary polynomials.

📘 Definition 6.7 — Characteristic (auxiliary) polynomial
For $y^{(n)}+a_{n-1}y^{(n-1)}+\dots+a_1y'+a_0y=0$ with $a_k\in\mathbb{R}$, the characteristic polynomial is $p(r)=r^n+a_{n-1}r^{n-1}+\dots+a_0$ and $p(r)=0$ is the auxiliary equation. Since $p(D)e^{rx}=p(r)e^{rx}$, $e^{rx}$ is a solution exactly when $p(r)=0$.
📐 Theorem 6.11 — Fundamental set for constant coefficients
Let the distinct roots of $p$ be $r_1,\dots,r_k$ with multiplicities $m_1,\dots,m_k$ ($\sum m_j=n$). Then the $n$ functions $$x^ie^{r_jx}\qquad(0\le i\le m_j-1,\ 1\le j\le k)$$ form a (complex) fundamental set. For a real equation, each pair of non-real roots $\alpha\pm i\beta$ of multiplicity $m$ may be replaced by the $2m$ real functions $x^ie^{\alpha x}\cos\beta x$, $x^ie^{\alpha x}\sin\beta x$ ($0\le i\le m-1$).

Proof. They are solutions. Write $p(D)=q(D)(D-r_j)^{m_j}$. By the shift rule applied $m_j$ times, $(D-r_j)^{m_j}\left(x^ie^{r_jx}\right)=e^{r_jx}D^{m_j}x^i=0$ for $i\lt m_j$; hence $p(D)\left(x^ie^{r_jx}\right)=0$. Independence (sketch). Suppose $\sum_jP_j(x)e^{r_jx}\equiv0$ with polynomials $P_j$ of degree $\lt m_j$, not all zero; we may assume $P_k\ne0$. Divide by $e^{r_1x}$ and differentiate $\deg P_1+1$ times: the $P_1$ term disappears, and each other term becomes $Q_j(x)e^{(r_j-r_1)x}$ with $\deg Q_j=\deg P_j$ (because $r_j\ne r_1$). Induction on the number of distinct roots gives a contradiction. There are $n$ functions, so by Theorem 6.8 they span. Real form. $e^{(\alpha\pm i\beta)x}=e^{\alpha x}(\cos\beta x\pm i\sin\beta x)$, and half-sums and half-differences of solutions are solutions. ∎

For a forcing term that is itself a solution of some constant-coefficient equation — a polynomial times an exponential times a sine or cosine — a particular solution can be guessed in the right form.

📐 Theorem 6.12 — Method of undetermined coefficients
Let $p(D)y=f$ with $p$ as above and $f(x)=e^{ax}\left(P(x)\cos bx+Q(x)\sin bx\right)$, where $P,Q$ are polynomials of degree at most $d$. Let $s\ge0$ be the multiplicity of $a+ib$ as a root of $p$ ($s=0$ if it is not a root). Then there is a particular solution of the form $$y_p=x^s e^{ax}\left(A(x)\cos bx+B(x)\sin bx\right),\qquad\deg A,\deg B\le d .$$

Proof (sketch). $f$ is annihilated by $q(D)=\left((D-a)^2+b^2\right)^{d+1}$ (by $(D-a)^{d+1}$ if $b=0$), by Theorem 6.11. Any solution of $p(D)y=f$ therefore solves $q(D)p(D)y=0$, whose fundamental set (Theorem 6.11) consists of the solutions of $p(D)y=0$ together with $x^{s+i}e^{ax}\cos bx$, $x^{s+i}e^{ax}\sin bx$, $0\le i\le d$ — the root $a+ib$ now has multiplicity $s+d+1$. Discarding the solutions of $p(D)y=0$ leaves the stated form, and the coefficients are found by substitution. ∎

📐 Theorem 6.13 — Variation of parameters

Let $y_1,y_2$ be a fundamental set of $y''+p(x)y'+q(x)y=0$ on $J$, with $W=W(y_1,y_2)$, and let $f$ be continuous on $J$. Then a particular solution of $y''+p(x)y'+q(x)y=f(x)$ — in normal form — is $y_p=u_1y_1+u_2y_2$ with

$$u_1'=-\frac{y_2f}{W},\qquad u_2'=\frac{y_1f}{W}.$$

For order $n$: $y_p=\sum u_ky_k$ with $u_k'=\dfrac{W_k}{W}f$, where $W_k$ is $W$ with its $k$-th column replaced by $(0,\dots,0,1)^{\mathsf T}$.

Proof. Look for $y_p=u_1y_1+u_2y_2$ and impose $u_1'y_1+u_2'y_2=0$. Then $y_p'=u_1y_1'+u_2y_2'$ and $y_p''=u_1y_1''+u_2y_2''+u_1'y_1'+u_2'y_2'$. Substituting, and using that $y_1,y_2$ solve the homogeneous equation, $y_p''+py_p'+qy_p=u_1'y_1'+u_2'y_2'$. So $y_p$ works if

$$\begin{pmatrix}y_1&y_2\\y_1'&y_2'\end{pmatrix}\begin{pmatrix}u_1'\\u_2'\end{pmatrix}=\begin{pmatrix}0\\f\end{pmatrix},$$

a system with determinant $W\ne0$; Cramer's rule gives the formulas, and $u_1,u_2$ exist because the right-hand sides are continuous. The order-$n$ case is the same with the conditions $\sum u_k'y_k^{(j)}=0$ for $j\le n-2$. ∎

🧭 Problem-solving strategy — linear equations
  1. Homogeneous part. Constant coefficients: factor $p(r)$ and write the fundamental set (Theorem 6.11). Cauchy–Euler: use $x=e^t$ (next subsection). Otherwise look for one solution and reduce the order (Theorem 6.10).
  2. Particular solution. If $f$ is of the form $e^{ax}(P\cos bx+Q\sin bx)$, use undetermined coefficients, multiplying by $x^s$ when $a+ib$ is a root of multiplicity $s$; split sums of such terms. For anything else ($\sec x$, $\log x$, $\frac{e^x}{1+x^2}$, …) use variation of parameters, after putting the equation in normal form.
  3. Initial conditions last. Apply them to $y_c+y_p$, never to $y_c$ alone.
  4. Check by substitution, and with Abel's formula when a Wronskian is involved.
✏️ Example 6 — Constant coefficients, resonance, and variation of parameters
(a) Find the general solution of $y^{(4)}-2y'''+2y''-2y'+y=0$. (b) Solve $y''+4y=8\sin2x$, $y(0)=y'(0)=0$. (c) Write down (without solving) the form of a particular solution of $y''-2y'+y=xe^x+\cos x$. (d) Find a particular solution of $y''-2y'+y=\dfrac{e^x}{1+x^2}$.
(a) $p(r)=r^4-2r^3+2r^2-2r+1$ factors as $(r-1)^2(r^2+1)$ (multiply out to check). Roots $1,1,\pm i$, so $y=(c_1+c_2x)e^x+c_3\cos x+c_4\sin x$.
(b) Trial $y_c=c_1\cos2x+c_2\sin2x$, and $2i$ is a simple root, so $s=1$: try $y_p=x(A\cos2x+B\sin2x)$. Then $y_p''+4y_p=-4A\sin2x+4B\cos2x$, so $A=-2$, $B=0$: $y_p=-2x\cos2x$.
(b) IVP $y=c_1\cos2x+c_2\sin2x-2x\cos2x$. $y(0)=c_1=0$; $y'(0)=2c_2-2=0$, so $c_2=1$. Answer: $y=\sin2x-2x\cos2x$ — an oscillation whose amplitude grows linearly: resonance.
(c) $p(r)=(r-1)^2$. For $xe^x$: $a+ib=1$ is a double root, $s=2$, $d=1$, giving $x^2(Ax+B)e^x$. For $\cos x$: $\pm i$ are not roots, giving $C\cos x+D\sin x$. So $y_p=x^2(Ax+B)e^x+C\cos x+D\sin x$.
(d) Setup $y_1=e^x$, $y_2=xe^x$, $W=e^x(e^x+xe^x)-e^x\cdot xe^x=e^{2x}$, and the equation is already in normal form with $f=\dfrac{e^x}{1+x^2}$.
(d) Integrate $u_1'=-\dfrac{xe^x\cdot f}{e^{2x}}=-\dfrac{x}{1+x^2}$, so $u_1=-\tfrac12\log(1+x^2)$; $\ u_2'=\dfrac{e^x\cdot f}{e^{2x}}=\dfrac{1}{1+x^2}$, so $u_2=\tan^{-1}x$.
(d) Answer $$y_p=e^x\left(x\tan^{-1}x-\tfrac12\log(1+x^2)\right).$$ Check: writing $y_p=e^xv$, the equation becomes $v''=\dfrac{1}{1+x^2}$ (shift rule), and indeed $v'=\tan^{-1}x$. ✓

Cauchy–Euler Equations

When the coefficient of $y^{(k)}$ is a constant multiple of $x^k$, the equation does not change if $x$ is replaced by $\lambda x$; such equidimensional equations become constant-coefficient equations in the variable $t=\log x$.

📘 Definition 6.8 — Cauchy–Euler (Euler–Cauchy) equation
A Cauchy–Euler equation of order $n$ on $x\gt0$ is $$x^ny^{(n)}+a_{n-1}x^{n-1}y^{(n-1)}+\dots+a_1xy'+a_0y=f(x),\qquad a_k\in\mathbb{R}.$$ For $n=2$, $x^2y''+axy'+by=f$, the indicial equation is $r(r-1)+ar+b=0$, obtained by substituting $y=x^r$ into the homogeneous equation.
📐 Theorem 6.14 — Cauchy–Euler equations reduce to constant coefficients

On $x\gt0$ put $x=e^t$, $Y(t)=y(e^t)$, and $\theta=\dfrac{d}{dt}$. Then for every $k\ge1$

$$x^k\frac{d^ky}{dx^k}=\theta(\theta-1)\cdots(\theta-k+1)Y,$$

so the Cauchy–Euler equation becomes a constant-coefficient equation for $Y$ with forcing $f(e^t)$. For $n=2$, with roots $r_1,r_2$ of the indicial equation, a fundamental set on $x\gt0$ is

  • $x^{r_1},\ x^{r_2}$ if $r_1\ne r_2$ are real;
  • $x^{r},\ x^{r}\log x$ if $r_1=r_2=r$;
  • $x^{\alpha}\cos(\beta\log x),\ x^{\alpha}\sin(\beta\log x)$ if $r=\alpha\pm i\beta$, $\beta\ne0$.

On $x\lt0$ the same holds with $x$ replaced by $|x|$. More generally $(px+q)^ny^{(n)}+\dots=f$ (a Legendre linear equation) reduces the same way with $px+q=e^t$.

Proof. By the chain rule $\dfrac{dY}{dt}=y'(e^t)e^t$, i.e. $xy'=\theta Y$. Suppose $x^ky^{(k)}=\theta(\theta-1)\cdots(\theta-k+1)Y$. Differentiating $x^ky^{(k)}$ with respect to $x$ gives $kx^{k-1}y^{(k)}+x^ky^{(k+1)}$, so

$$x^{k+1}y^{(k+1)}=x\frac{d}{dx}\left(x^ky^{(k)}\right)-kx^ky^{(k)}=(\theta-k)\left(x^ky^{(k)}\right),$$

because $x\frac{d}{dx}=\theta$. This is the case $k+1$. For $n=2$ the transformed equation is $\theta(\theta-1)Y+a\theta Y+bY=f(e^t)$, whose characteristic polynomial is the indicial polynomial; Theorem 6.11 in the variable $t=\log x$ gives the list. On $x\lt0$ put $x=-e^t$; the same computation goes through. ∎

✏️ Example 7 — Two Cauchy–Euler problems
(a) Solve $x^2y''-3xy'+4y=x^2\log x$ on $x\gt0$ with $y(1)=0$, $y'(1)=1$, and find $y(e)$. (b) Given that $x$ and $x^2$ solve $x^2y''-2xy'+2y=0$ on $x\gt0$, find a particular solution of $x^2y''-2xy'+2y=x^3$ by variation of parameters.
(a) Indicial $r(r-1)-3r+4=r^2-4r+4=(r-2)^2$: a double root, so $y_c=x^2(c_1+c_2\log x)$.
(a) Particular With $x=e^t$: $\ddot Y-4\dot Y+4Y=te^{2t}$. Here $2$ is a double root, so try $Y_p=t^2(At+B)e^{2t}$; by the shift rule $(\theta-2)^2\left(e^{2t}u\right)=e^{2t}u''$, so $u''=t$ and $u=\tfrac{t^3}{6}$. Hence $y_p=\tfrac16x^2(\log x)^3$.
(a) IVP $y(1)=c_1=0$. Since $\frac{d}{dx}\left[x^2(\log x)^3\right]$ vanishes at $x=1$, $y'(1)=c_2=1$. So $$y=x^2\log x+\tfrac16x^2(\log x)^3,$$ and $y(e)=e^2+\tfrac16e^2=\tfrac76e^2\approx8.6206$.
(b) Normal form! Divide by $x^2$: $y''-\dfrac2xy'+\dfrac2{x^2}y=x$, so $f=x$ (not $x^3$). $W(x,x^2)=x\cdot2x-1\cdot x^2=x^2$.
(b) Integrate $u_1'=-\dfrac{x^2\cdot x}{x^2}=-x$, $u_1=-\tfrac{x^2}2$; $\ u_2'=\dfrac{x\cdot x}{x^2}=1$, $u_2=x$. So $y_p=-\tfrac{x^3}{2}+x^3=\tfrac{x^3}{2}$.
(b) Check $x^2\cdot3x-2x\cdot\tfrac32x^2+2\cdot\tfrac{x^3}{2}$ $=3x^3-3x^3+x^3=x^3$. ✓ (Also by Theorem 6.14: $\ddot Y-3\dot Y+2Y=e^{3t}$ gives $Y_p=\tfrac{e^{3t}}{9-9+2}=\tfrac{e^{3t}}2$.)
⚠️ Counterexamples and pitfalls
  1. Continuity gives existence, not uniqueness. $y'=3y^{2/3}$, $y(0)=0$ has infinitely many solutions; so does $y'=2\sqrt{|y|}$, $y(0)=0$. Neither $f$ is Lipschitz near $y=0$.
  2. Lipschitz is sufficient, not necessary. $y'=y\log|y|$ (with $f=0$ at $y=0$) is not Lipschitz near $y=0$, yet $y(0)=0$ has only the zero solution: the nonzero solutions $\pm\exp(Ce^x)$ never reach $0$.
  3. Lipschitz $\not\Rightarrow$ differentiable in $y$. $f=|y|$ is Lipschitz with $L=1$; the IVP $y'=|y|$, $y(0)=0$ has the unique solution $y\equiv0$.
  4. Local means local. $y'=y^2$, $y(0)=1$: $f$ is a polynomial, but the solution $\frac1{1-x}$ dies at $x=1$. Theorem 6.5 guarantees at most $|x|\le\tfrac14$ here; the true interval is $(-\infty,1)$.
  5. The exactness test needs a simply connected domain. $\frac{-y\,dx+x\,dy}{x^2+y^2}$ passes the test on $\mathbb{R}^2\setminus\{0\}$ but has no potential there.
  6. Dividing loses solutions. Separating $y'=y^2$ or substituting $v=y^{1-n}$ in a Bernoulli equation misses $y\equiv0$; an integrating factor that vanishes or blows up somewhere can add or remove curves.
  7. $W\equiv0$ does not imply dependence for arbitrary functions: $x^2$ and $x|x|$ on $(-1,1)$. It does for solutions of one normal linear equation (Theorem 6.9).
  8. Solutions' Wronskians cannot vanish at a single point. $x$ and $\sin x$ (Wronskian zero at $0$, not at $\pi$) cannot both solve a normal second-order linear equation on $\mathbb{R}$; nor can two solutions with a common zero, or a common critical point, be independent.
  9. Abel and variation of parameters need the normal form. For $x^2y''-2xy'+2y=x^3$ use $p=-\frac2x$ and $f=x$.
  10. Resonance. For $y''+4y=\sin2x$ the trial $A\cos2x+B\sin2x$ fails (it solves the homogeneous equation); multiply by $x$.
  11. Superposition is for linear equations only. $0$ and $\frac{1}{1-x}$ solve $y'=y^2$; their sum $\frac1{1-x}$ does, but $2\cdot\frac1{1-x}$ does not.
  12. Cauchy–Euler lives on $x\gt0$ (or $x\lt0$). The equation is singular at $0$; $x^r$ must be read as $|x|^r$ on $x\lt0$, and $\log x$ as $\log|x|$.
📚 Go deeper — full proofs in the CSIR NET course

Two Labs

Interactive 1 — Picard Iterates Closing In

The thick curve is the true solution of the IVP; the red curve is the Picard iterate $\varphi_n$ (earlier iterates fade). The purple box is the rectangle $R$ of Theorem 6.5 and the green band is the interval $|x|\le h$ it guarantees. Press Play to iterate, or use the slider. Where do the iterates converge first — and do they also converge outside the green band? For $y'=3y^{2/3}$, which solution do they find?

iterate n—
guaranteed h—
max error on |x| ≤ h—
max error on whole window—
Interactive 2 — Roots of the Auxiliary Equation Shape the Solutions

Left: the roots of $r^2+pr+q=0$ in the complex plane. Right: the solution with $y=1$, $y'=0$ at the start — of $y''+py'+qy=0$ on $[0,12]$, or, in Cauchy–Euler mode, of $x^2y''+(p+1)xy'+qy=0$ on $[1,30]$, which has the same roots as indicial roots (Theorem 6.14). Move the sliders or press Play to sweep $p$. Watch the roots collide on the real axis and split into a complex pair, and cross the imaginary axis.

p, q—
p² − 4q—
roots—
fundamental set—
Abel: W / W(start)—

Exercises

I
First-order equations.
  • 1 Solve $(e^x\sin y-2x)\,dx+{}$ $(e^x\cos y+1)\,dy=0$, $y(0)=0$.
  • 2 Find an integrating factor of $y\,dx+(2x-ye^y)\,dy=0$ ($y\gt0$) and solve the equation.
  • 3 Use Theorem 6.2(3) — or the substitution $y=vx$ — to solve $(x^2+y^2)\,dx-2xy\,dy=0$ on $x\gt0$.
  • 4 Solve $y'+y\tan x=\sec x$ on $\left(-\tfrac\pi2,\tfrac\pi2\right)$ with $y(0)=1$.
  • 5 Solve the Bernoulli equation $y'+y=e^xy^2$.
  • 6 Modelling. A 100-litre tank initially holds pure water. Brine with $0.5$ kg of salt per litre flows in at $4$ L/min and the well-mixed solution flows out at the same rate. Find the salt content $A(t)$ and the time at which it reaches $25$ kg.
  • 7 Solve $y'=(x+y)^2$ with the substitution $v=x+y$.
  • 8 Let $\mu$ be an integrating factor of $M\,dx+N\,dy=0$ and $F$ a potential of $\mu M\,dx+\mu N\,dy$. Prove that $\mu\,g(F)$ is again an integrating factor for every continuous nowhere-zero $g$. (So integrating factors are never unique.)
1 $M_y=e^x\cos y=N_x$: exact. $F=e^x\sin y-x^2+g(y)$ with $g'=1$. $F(0,0)=0$, so $e^x\sin y-x^2+y=0$.
2 $\dfrac{N_x-M_y}{M}=\dfrac{2-1}{y}=\dfrac1y$, so $\mu=y$. Then $y^2\,dx+(2xy-y^2e^y)\,dy$ is exact with $F=xy^2-(y^2-2y+2)e^y$; solutions $F=C$.
3 $xM+yN=x^3+xy^2-2xy^2=x(x^2-y^2)$, so $\mu=\dfrac{1}{x(x^2-y^2)}$ (where $x^2\ne y^2$). With $y=vx$: $xv'=\dfrac{1-v^2}{2v}$, so $-\log|1-v^2|=\log x+c$, i.e. $x^2-y^2=Cx$. (The lines $y=\pm x$ are the case $C=0$.)
4 $\mu=e^{\int\tan x}=\sec x$: $(y\sec x)'=\sec^2x$, so $y\sec x=\tan x+C$, $y=\sin x+C\cos x$; $y(0)=1$ gives $y=\sin x+\cos x$.
5 $n=2$, $v=1/y$: $v'-v=-e^x$, $(ve^{-x})'=-1$, $v=(C-x)e^x$. So $y=\dfrac{e^{-x}}{C-x}$, together with $y\equiv0$.
6 $A'=4(0.5)-\dfrac{4A}{100}=2-\dfrac{A}{25}$, $A(0)=0$: $A(t)=50\left(1-e^{-t/25}\right)$ kg. $A=25$ when $e^{-t/25}=\tfrac12$: $t=25\log2\approx17.33$ min.
7 $v'=1+y'=1+v^2$, so $\tan^{-1}v=x+C$ and $y=\tan(x+C)-x$.
8 $\mu M\,dx+\mu N\,dy=dF$, so $\mu g(F)(M\,dx+N\,dy)=g(F)\,dF=d\,G(F)$ with $G'=g$: an exact form with potential $G\circ F$, and $\mu g(F)\ne0$.
II
Existence and uniqueness.
  • 1 Show that $f(x,y)=x^2|y|$ is Lipschitz in $y$ on $[-1,1]\times\mathbb{R}$, although $\partial f/\partial y$ does not exist on the line $y=0$.
  • 2 Find a Lipschitz constant for $f(x,y)=\sin(xy)$ on $[0,2]\times\mathbb{R}$.
  • 3 Compute the Picard iterates $\varphi_1,\varphi_2,\varphi_3$ for $y'=x+y$, $y(0)=1$, and compare with the Taylor series of the exact solution.
  • 4 For $y'=x^2+y^2$, $y(0)=0$ and rectangles $|x|\le a$, $|y|\le b$, find the largest $h$ that Theorem 6.5 can guarantee.
  • 5 How many solutions does $y'=2\sqrt{|y|}$, $y(0)=0$ have on $\mathbb{R}$? Describe them all.
  • 6 Show that $y'=x+\sin y$, $y(0)=0$ has a unique solution defined on all of $\mathbb{R}$.
  • 7 Solve $y'=1+y^2$, $y(0)=0$, find its maximal interval of existence, and compare with the best $h$ of Theorem 6.5.
  • 8 Let $f$ and $f_y$ be continuous on $\mathbb{R}^2$. Prove that the graphs of two different solutions of $y'=f(x,y)$ cannot meet. Deduce that the solution of $y'=y(1-y)$, $y(0)=\tfrac12$, satisfies $0\lt y(x)\lt1$ wherever it is defined.
1 $|x^2|y_1|-x^2|y_2||\le x^2|y_1-y_2|\le|y_1-y_2|$: $L=1$. At $y=0$ the one-sided $y$-derivatives are $\pm x^2$, different for $x\ne0$.
2 $|f_y|=|x\cos(xy)|\le2$ on the strip, so $L=2$ (Theorem 6.4).
3 $\varphi_1=1+x+\tfrac{x^2}2$, $\varphi_2=1+x+x^2+\tfrac{x^3}6$, $\varphi_3=1+x+x^2+\tfrac{x^3}3+\tfrac{x^4}{24}$. The solution $2e^x-x-1=1+x+x^2+\tfrac{x^3}3+\tfrac{x^4}{12}+\cdots$: $\varphi_n$ is correct up to $x^n$.
4 $M=a^2+b^2$ and $h=\min\left(a,\frac{b}{a^2+b^2}\right)$. For fixed $a$, $\frac{b}{a^2+b^2}$ is largest at $b=a$, with value $\frac1{2a}$; and $\min\left(a,\frac1{2a}\right)$ is largest when $a=\frac1{2a}$. Best: $a=b=\frac1{\sqrt2}$, $h=\frac1{\sqrt2}\approx0.7071$.
5 Infinitely many. Since $y'\ge0$, solutions are non-decreasing; for any $d\le0\le c$, $y=-(x-d)^2$ for $x\lt d$, $0$ on $[d,c]$, $(x-c)^2$ for $x\gt c$ is a solution (check: for $x\lt d$, $y'=2(d-x)=2\sqrt{|y|}$), and every solution is of this form (with $d=-\infty$ or $c=+\infty$ allowed).
6 $|f_y|=|\cos y|\le1$ on every strip $[-a,a]\times\mathbb{R}$, so Theorem 6.6(2) gives a unique solution on each $[-a,a]$, hence on $\mathbb{R}$.
7 $\tan^{-1}y=x$, $y=\tan x$ on $\left(-\tfrac\pi2,\tfrac\pi2\right)$. Theorem 6.5: $M=1+b^2$, $h=\min\left(a,\frac{b}{1+b^2}\right)\le\frac12$ (maximum at $b=1$). The guarantee $\tfrac12$ is far below $\tfrac\pi2\approx1.571$.
8 If $\varphi(x_1)=\psi(x_1)$, both solve the IVP with data $(x_1,\varphi(x_1))$, where $f$ is locally Lipschitz (Theorem 6.4); by uniqueness they agree near $x_1$, and the set where they agree is open and closed in the common interval, hence everything. $y\equiv0$ and $y\equiv1$ are solutions, so the solution through $(0,\tfrac12)$ can touch neither.
III
Linear equations of order $n$.
  • 1 Compute $W\left(e^x,e^{2x},e^{3x}\right)$.
  • 2 $y_1,y_2$ solve $(1-x^2)y''-2xy'+6y=0$ on $(-1,1)$ with $W(y_1,y_2)(0)=2$. Find $W(x)$ and $W\left(\tfrac12\right)$.
  • 3 $y_1=x$ solves $x^2y''-x(x+2)y'+(x+2)y=0$ on $x\gt0$. Find a second solution by reduction of order.
  • 4 Solve $y'''-y''-y'+y=0$.
  • 5 Solve $y^{(4)}+8y''+16y=0$.
  • 6 Find the general solution of $y''+2y'+5y=10\cos x$.
  • 7 Use variation of parameters to find a particular solution of $y''-y=\dfrac{2}{1+e^x}$.
  • 8 Modelling. A $1$ kg mass on a spring of stiffness $9$ N/m moves with damping force $-c\,x'$. Find the critical damping coefficient, and the motion when $c$ takes this value, $x(0)=0.1$ m and $x'(0)=0$. Does the mass ever pass through equilibrium?
  • 9 Let $y_1,y_2$ solve $y''+p(x)y'+q(x)y=0$ on $J$ ($p,q$ continuous). Prove: if both have a local maximum at the same point $x_0\in J$, they are linearly dependent.
1 Factor $e^x,e^{2x},e^{3x}$ out of the columns: $W=e^{6x}\det\begin{pmatrix}1&1&1\\1&2&3\\1&4&9\end{pmatrix}$, a Vandermonde determinant equal to $(2-1)(3-1)(3-2)=2$. So $W=2e^{6x}$.
2 $p_1=-\dfrac{2x}{1-x^2}$, so $W=2\exp\left(\int_0^x\frac{2t}{1-t^2}dt\right)=\dfrac{2}{1-x^2}$ and $W\left(\tfrac12\right)=\tfrac83$.
3 $p=-\dfrac{x+2}{x}$, $e^{-\int p}=x^2e^x$, so $y_2=x\int\dfrac{x^2e^x}{x^2}dx=xe^x$. Check: substituting $y_2=xe^x$ gives $(x+2)e^x\left[x^2-x(x+1)+x\right]=0$. ✓
4 $r^3-r^2-r+1=(r-1)^2(r+1)$: $y=(c_1+c_2x)e^x+c_3e^{-x}$.
5 $(r^2+4)^2$: $y=(c_1+c_2x)\cos2x+(c_3+c_4x)\sin2x$.
6 Roots $-1\pm2i$. Trial $A\cos x+B\sin x$: $4A+2B=10$, $4B-2A=0$, so $A=2$, $B=1$. $$y=e^{-x}(c_1\cos2x+c_2\sin2x)+2\cos x+\sin x.$$
7 $y_1=e^x$, $y_2=e^{-x}$, $W=-2$. $u_1'=\dfrac{e^{-x}}{1+e^x}$, $u_2'=-\dfrac{e^x}{1+e^x}$. So $u_2=-\log(1+e^x)$ and (with $w=e^{-x}$) $u_1=-e^{-x}+\log(1+e^{-x})$. $$y_p=-1+e^x\log(1+e^{-x})-e^{-x}\log(1+e^x).$$
8 $x''+cx'+9x=0$ has roots $\frac{-c\pm\sqrt{c^2-36}}2$: critical when $c=6$ N s/m (double root $-3$). Then $x=(A+Bt)e^{-3t}$, $A=0.1$, $B-3A=0$: $x=0.1(1+3t)e^{-3t}$ m. It is positive for all $t\ge0$: the mass creeps back to equilibrium without crossing it.
9 At an interior local maximum $y_1'(x_0)=y_2'(x_0)=0$, so $W(x_0)=y_1y_2'-y_1'y_2=0$, and by Theorem 6.9 the solutions are dependent. (Only the common critical point is used.)
IV
Cauchy–Euler equations (all on $x\gt0$ unless stated).
  • 1 Solve $x^2y''+xy'-9y=0$.
  • 2 Solve $x^2y''-xy'+5y=0$.
  • 3 Solve $x^3y'''+3x^2y''-2xy'+2y=0$.
  • 4 Find the general solution of $x^2y''-2y=3x^2$.
  • 5 Solve $(x+1)^2y''-3(x+1)y'+4y=0$ on $x\gt-1$.
  • 6 Solve $x^2y''+3xy'+y=0$, $y(1)=1$, $y'(1)=0$, and find $y(e)$.
  • 7 Prove that every nontrivial solution of $x^2y''+xy'+y=0$ is bounded on $(0,\infty)$, has infinitely many zeros in $(0,1)$, and has only finitely many zeros in $[1,10]$.
1 $r(r-1)+r-9=r^2-9$: $y=c_1x^3+c_2x^{-3}$.
2 $r^2-2r+5=0$, $r=1\pm2i$: $y=x\left(c_1\cos(2\log x)+c_2\sin(2\log x)\right)$.
3 $\theta(\theta-1)(\theta-2)+3\theta(\theta-1)-2\theta+2$ $=\theta^3-3\theta+2$ $=(\theta-1)^2(\theta+2)$: $y=(c_1+c_2\log x)x+c_3x^{-2}$.
4 $r^2-r-2=(r-2)(r+1)$, and the forcing $3x^2=3e^{2t}$ is resonant ($2$ is a simple root): in $t$, $Y_p=Ate^{2t}$ with $A\,p'(2)=3$, $p'(2)=3$, so $A=1$. $y=c_1x^2+\dfrac{c_2}{x}+x^2\log x$.
5 With $u=x+1$: $(r-2)^2$, so $y=(x+1)^2\left(c_1+c_2\log(x+1)\right)$.
6 $r^2+2r+1=(r+1)^2$: $y=\dfrac{c_1+c_2\log x}{x}$. $y(1)=c_1=1$, $y'(1)=c_2-c_1=0$, so $y=\dfrac{1+\log x}{x}$ and $y(e)=\dfrac2e\approx0.7358$.
7 $r^2+1=0$: $y=A\cos(\log x)+B\sin(\log x)$ $=R\cos(\log x-\phi)$ with $R=\sqrt{A^2+B^2}\gt0$. So $|y|\le R$. Zeros: $\log x=\phi+\tfrac\pi2+k\pi$, $k\in\mathbb{Z}$; infinitely many have $\log x\lt0$, i.e. $x\in(0,1)$, but only finitely many lie in $[0,\log10]$.
🎯 GATE corner GATE MA · MCQGATE MA · MSQGATE MA · NAT

E1. GATE MA · MCQ Let $y(x)$ be the solution of $\left((2x+3)y+e^{-2x}\right)dx+(x+1)\,dy=0$ with $y(0)=1$, on an interval containing $[0,1]$. Then $y(1)$ equals (A) $0$; (B) $\dfrac{1}{2e^2}$; (C) $e^{-2}$; (D) $\tfrac12$.

Idea $M_y=2x+3$, $N_x=1$, and $\dfrac{M_y-N_x}{N}=\dfrac{2x+2}{x+1}=2$: integrating factor $e^{2x}$.
Potential $e^{2x}M\,dx+e^{2x}N\,dy$ has potential $F=e^{2x}(x+1)y+x$ (check: $F_x=e^{2x}(2x+3)y+1$). $F(0,1)=1$, so $e^{2x}(x+1)y=1-x$.
Evaluate $y(1)=\dfrac{1-1}{2e^2}=0$. (B) forgets the "$+x$" in the potential; (C), (D) are slips.
Answer (A).

E2. GATE MA · MCQ For the IVP $y'=e^{-x^2}+y^2$, $y(0)=0$, on the rectangle $R=\{|x|\le2,\ |y|\le3\}$, the Picard–Lindelöf theorem guarantees a unique solution on $|x|\le h$ with $h$ equal to (A) $0.3$; (B) $\tfrac13$; (C) $2$; (D) $0.2$.

Idea $h=\min(a,b/M)$ with $M=\max_R|f|$.
Compute $e^{-x^2}\le1$ (equality at $x=0$) and $y^2\le9$, so $M=10$ and $h=\min\left(2,\tfrac{3}{10}\right)=0.3$.
Options (B) uses $M=9$ (drops the $e^{-x^2}$ term); (C) is $a$; (D) is a slip.
Answer (A).

E3. GATE MA · MSQ CSIR Part C Which of the following statements is/are true? (One or more options may be correct.) (A) If $y_1,y_2$ solve $y''+p(x)y'+q(x)y=0$ on $(0,\infty)$ with $p,q$ continuous, and $W(y_1,y_2)(1)=0$, then $W(y_1,y_2)\equiv0$ on $(0,\infty)$. (B) There are continuous $p,q$ on $(0,\infty)$ such that $x$ and $x^2$ both solve $y''+p(x)y'+q(x)y=0$ there. (C) There are continuous $p,q$ on $(0,\infty)$ such that $x$ and $\sin x$ both solve $y''+p(x)y'+q(x)y=0$ there. (D) Two solutions of $y''+p(x)y'+q(x)y=0$ ($p,q$ continuous on $J$) with a common zero in $J$ are linearly dependent.

(A) True Abel: $W(x)=W(1)e^{-\int_1^xp}=0$.
(B) True $W(x,x^2)=x^2\ne0$ on $(0,\infty)$; both solve $y''-\frac2xy'+\frac2{x^2}y=0$, with continuous coefficients there.
(C) False $W=x\cos x-\sin x$ is zero at the root $x\approx4.493$ of $\tan x=x$ but not identically zero (e.g. $W(\pi)=-\pi$), contradicting (A).
(D) True At the common zero $x_0$, $W(x_0)=0\cdot y_2'-y_1'\cdot0=0$; Theorem 6.9.
Answer (A), (B) and (D).

E4. GATE MA · MSQ Which of the following initial value problems has/have a unique solution defined on all of $\mathbb{R}$? (One or more options may be correct.) (A) $y'=|y|$, $y(0)=0$. (B) $y'=\sqrt{|y|}$, $y(0)=0$. (C) $y'=y^2$, $y(0)=1$. (D) $y'=\sin y+x^2$, $y(0)=5$.

(A) Yes $|y|$ is Lipschitz with $L=1$ on $\mathbb{R}^2$; Theorem 6.6(2) on every strip. The solution is $y\equiv0$.
(B) No $y\equiv0$ and $y=\tfrac{x^2}4$ for $x\ge0$ (and $0$ for $x\lt0$) are two different solutions.
(C) No The unique solution $\frac{1}{1-x}$ blows up at $x=1$; it is not defined on $\mathbb{R}$.
(D) Yes $|f_y|=|\cos y|\le1$ on every strip, so Theorem 6.6(2) gives a unique solution on each $[-a,a]$.
Answer (A) and (D).

E5. GATE MA · NAT Let $y$ solve $x^2y''+xy'-4y=4x^2$ on $x\gt0$ with $y(1)=1$, $y'(1)=0$. The value of $y(2)$ is ______ (correct to two decimal places).

Homogeneous Indicial $r^2-4=0$: $y_c=c_1x^2+c_2x^{-2}$.
Particular In $t=\log x$: $\ddot Y-4Y=4e^{2t}$, resonant; $Y_p=Ate^{2t}$ with $A\cdot p'(2)=A\cdot4=4$, so $y_p=x^2\log x$.
Constants $y(1)=c_1+c_2=1$; $y'(1)=2c_1-2c_2+1=0$. So $c_1=\tfrac14$, $c_2=\tfrac34$.
Answer $y(2)=1+\tfrac3{16}+4\log2\approx3.9601$. Answer: $3.96$ (accept $3.95$ to $3.97$).

E6. GATE MA · NAT For the IVP $y'=x+y^2$, $y(0)=1$, let $\varphi_2$ be the second Picard iterate (with $\varphi_0\equiv1$). The value of $\varphi_2(1)$ is ______ (correct to two decimal places).

$\varphi_1$ $\varphi_1=1+\int_0^x(t+1)\,dt=1+x+\tfrac{x^2}2$.
$\varphi_2$ $t+\varphi_1(t)^2=1+3t+2t^2+t^3+\tfrac{t^4}4$, so $\varphi_2(1)$ equals $1+\left(1+\tfrac32+\tfrac23+\tfrac14+\tfrac1{20}\right)$ $=1+\tfrac{208}{60}$.
Answer $\varphi_2(1)=\tfrac{67}{15}\approx4.4667$. Answer: $4.47$ (accept $4.46$ to $4.48$).
🧑‍🏫 For the teacher

Suggested plan — 3 lectures × 60 min.

  1. Solving first-order equations. Definitions 6.1–6.2, Theorem 6.1 with proof, Theorem 6.2 (prove part 1 on the board, leave part 3 as reading), Theorem 6.3, Examples 1 and 2. End with the question "why did $y$ in Example 2(b) die at $x=2$ when the linear equation for $v$ did not?" — it motivates the next lecture.
  2. Existence and uniqueness. The integral equation, Definition 6.4, Theorem 6.5 with Steps 1–4 (Step 2 is the heart; do it carefully). Project Interactive 1: first $y'=y$ (iterates are Taylor polynomials), then $y'=1+y^2$ (convergence beyond the green band, failure near $\pm\tfrac\pi2$), then $y'=3y^{2/3}$ (the iterates pick the zero solution and never notice $x^3$). Examples 3 and 4; GATE corner E2 and E4 live.
  3. Linear equations. Theorems 6.7–6.9 (prove Abel for $n=2$), Example 5, Theorem 6.11 via the shift rule, Theorems 6.12–6.13, Example 6, Theorem 6.14 and Example 7. Project Interactive 2 in both modes and ask the class to predict the solution shape from the roots before releasing the slider.

Discussion questions. (1) Picard iterates for $y'=3y^{2/3}$, $y(0)=0$ converge — to which solution, and why does that not contradict Example 4(a)? (2) Why can two solutions of $y''+py'+qy=0$ never have a common critical point unless they are proportional, while $x^2$ and $x^3$ (not solutions of one normal equation on $\mathbb{R}$) do? (3) In Interactive 2, the same roots give $e^{rx}$ in one mode and $x^r$ in the other. Why are the zeros of the oscillating Cauchy–Euler solution spaced further and further apart?

Misconceptions to watch for. Applying the exactness test on a punctured plane; dividing by $y$ and losing $y\equiv0$; confusing "Lipschitz" with "differentiable"; reading Theorem 6.5's $h$ as the true interval; using Abel's formula or variation of parameters without the normal form; forgetting the factor $x^s$ at resonance; imposing initial conditions on $y_c$ alone; writing $x^r$ on $x\lt0$.

Suggested homework. I(2, 3, 5, 6, 8), II(3, 4, 5, 7, 8), III(2, 3, 6, 7, 9), IV(3, 4, 6, 7); GATE corner E1, E3, E5.

🔬 Research–Teaching NexusResearch-tutored · optional, about 60 minutes

Research question. A tank drains through a small hole in its base. Looking at the empty tank, can you tell when it became empty — and how should a vessel be shaped so that its water level falls at a constant rate, as in the water clocks of ancient Egypt, Greece and China?

Why it matters. Torricelli's law says that water leaves a hole of area $a$ with speed $\sqrt{2gh}$, where $h$ is the depth. For a tank of cross-section $A(h)$ this gives $A(h)\,h'=-a\sqrt{2gh}$, an equation whose right-hand side is not Lipschitz at $h=0$. Forward in time the solution is unique; backward in time it is not. The same loss of uniqueness appears in models of friction, of fluid draining from porous rock, and in the "finite-time stopping" controllers used in robotics.

What to do.

  1. For a cylinder ($A$ constant) solve $h'=-k\sqrt h$, $h(0)=H$, and show that the tank is empty at $T=2\sqrt H/k$. Write down all solutions on $\mathbb{R}$ with $h(t_1)=0$ for a given $t_1$, and explain why they show non-uniqueness backward in time.
  2. Check which hypothesis of Theorem 6.5 fails at $h=0$, and why it does not fail at any $h\gt0$.
  3. Find the profile $r(h)$ of a vessel of revolution for which $h'$ is constant. (You should get $r\propto h^{1/4}$.) Sketch it and compare with pictures of historical water clocks.
  4. Run Euler's method for $h'=-\sqrt{|h|}$ backward in time from $h=0$ with several step sizes. What does the numerical method "choose", and why?

Tools: pencil and paper for 1–3; Python or a spreadsheet for 4.

Hand in: the solution family of step 1 with a sketch, the vessel profile of step 3, a table or plot from step 4, and a paragraph answering the research question.

Going further. Read about Osgood's uniqueness criterion: $y'=f(y)$ has unique solutions through a zero $y_0$ of $f$ if $\int dy/|f(y)|$ diverges near $y_0$. Check it on $\sqrt{|y|}$, $|y|$ and $y\log|y|$.

Instructor note: for $A$ constant, $h(t)=\left(\sqrt H-\tfrac k2t\right)^2$ for $t\le T$ and $0$ afterwards. With $h(t_1)=0$, every function equal to $\tfrac{k^2}4(c-t)^2$ for $t\lt c$ and $0$ for $t\ge c$, with any $c\le t_1$, is a solution: the emptying time cannot be recovered. $\sqrt h$ is not Lipschitz at $0$ (difference quotient $h^{-1/2}$). Constant level rate: $A(h)h'=-a\sqrt{2gh}$ with $h'=-v$ forces $A(h)\propto\sqrt h$, so $\pi r^2\propto h^{1/2}$ and $r\propto h^{1/4}$. Euler's method started at $h=0$ stays at $0$ forever: it always picks the zero solution, just as the Picard iterates of $y'=3y^{2/3}$ do in Interactive 1.

🧪 Self-check quiz

0/5 correct

Q1. An integrating factor of $xy'+3y=x^2$ on $x\gt0$ (written in the form $y'+\frac3xy=x$) is

Q2. $y_1,y_2$ solve $y''+2xy'+(\sin x)y=0$ on $\mathbb{R}$ and $W(y_1,y_2)(0)=3$. Then $W(y_1,y_2)(1)$ equals

Q3. The general solution of $x^2y''-3xy'+4y=0$ on $x\gt0$ is

Q4. The method of undetermined coefficients for $y''-4y'+4y=e^{2x}$ needs the trial function

Q5. How many solutions does the IVP $y'=3y^{2/3}$, $y(0)=0$ have on $\mathbb{R}$?