Navigation

Concept Review

Differential Calculus

Introduction to Differential Equations

Every topic so far has asked the forward question: given a function, what is its rate of change? A differential equation asks the reverse and far harder question: given information about the rate of change, what is the function? Nearly every quantitative law in physics, chemistry, biology and finance is written as a differential equation, and this topic covers the vocabulary (order, solution, general solution, initial value problem), the two families you can solve by hand in a first course (separable and first-order linear), and the two models they generate most often (exponential growth/decay and Newton's law of cooling).

What a differential equation is, and its order

Definition. An ordinary differential equation (ODE) is an equation relating an unknown function yy of a single variable xx to one or more of its derivatives. ("Ordinary" means one independent variable; equations involving partial derivatives in several variables are partial differential equations and are not treated here.)

Definition (order). The order of a differential equation is the order of the highest derivative that actually appears in it. Order is about which derivative, never about what power it is raised to.

EquationOrderComment
dydx=x2ysinx\dfrac{dy}{dx}=x^{2}y-\sin x11linear (it is yx2y=sinxy'-x^{2}y=-\sin x) but not separable: the right side is not a product g(x)h(y)g(x)h(y)
(y)3+y=x(y')^{3}+y=x11first order; the exponent 33 is the degree, not the order
y+9y=0y''+9y=022linear, constant coefficients
y=xy+(y)2y'''=xy''+(y')^{2}33nonlinear, because of (y)2(y')^{2}

Definition (first-order linear). A first-order equation is linear if it can be written as y+p(x)y=q(x)y'+p(x)y=q(x): yy and yy' occur to the first power only, multiplied by functions of xx alone, and never inside another function. So y+y2=xy'+y^{2}=x and y+siny=0y'+\sin y=0 are not linear.

Solutions, general solutions, particular solutions

Definition (solution). A function φ\varphi is a solution of the equation on an interval II if φ\varphi has as many derivatives on II as the equation requires, and substituting y=φ(x)y=\varphi(x) makes the equation a true statement for every xx in II.

The words "on an interval" are part of the definition, not decoration. The function y=1x1y=\dfrac{1}{x-1} satisfies y=y2y'=-y^{2} (indeed y=(x1)2=y2y'=-(x-1)^{-2}=-y^{2}), but only on (,1)(-\infty,1) or on (1,)(1,\infty) — never on an interval containing 11, where it is not even defined.

Verifying a proposed solution never requires solving anything: differentiate the candidate as many times as needed, substitute into both sides, and simplify until the two sides are visibly identical. If they are not identical for all xx in the interval, it is not a solution.

General vs. particular vs. singular. An nn-th order equation typically has a family of solutions containing nn arbitrary constants; this family is called the general solution. Fixing the constants gives a particular solution. A solution that cannot be obtained from the family for any value of the constants is a singular solution — separable equations produce these routinely (see below).

Initial value problems

An initial value problem (IVP) is a differential equation together with conditions prescribing yy (and, for order n2n\ge 2, its first n1n-1 derivatives) at a single point x0x_{0}. The procedure is always: find the general solution first, then substitute the initial data to determine the constants. Imposing the condition before the constant of integration has appeared destroys the whole family.

Theorem (existence and uniqueness, first order). Consider y=f(x,y)y'=f(x,y) with y(x0)=y0y(x_{0})=y_{0}. If ff and its partial derivative fyf_{y} (with respect to yy) are continuous on an open rectangle containing the point (x0,y0)(x_{0},y_{0}), then there is an open interval about x0x_{0} on which the problem has exactly one solution.

Both hypotheses matter, and the guarantee is only local. Continuity of ff alone gives existence but not uniqueness: y=3y2/3y'=3y^{2/3}, y(0)=0y(0)=0 is solved both by y0y\equiv 0 and by y=x3y=x^{3}, and here fy=2y1/3f_{y}=2y^{-1/3} is undefined at y=0y=0.

Theorem (linear equations, stronger). If pp and qq are continuous on an open interval II containing x0x_{0}, then y+p(x)y=q(x)y'+p(x)y=q(x), y(x0)=y0y(x_{0})=y_{0} has a unique solution defined on all of II — not merely near x0x_{0}.

Separable equations

Form. dydx=g(x)h(y)\dfrac{dy}{dx}=g(x)h(y).

Method (all four steps are compulsory).

  1. Find the equilibrium solutions first. Every root rr of h(y)=0h(y)=0 gives the constant solution yry\equiv r: then dydx=0\dfrac{dy}{dx}=0 and g(x)h(r)=0g(x)h(r)=0, so both sides vanish.
  2. On any interval where h(y)0h(y)\ne 0, divide and integrate: dyh(y)=g(x)dx\int\frac{dy}{h(y)}=\int g(x)\,dx. One constant CC, on the right-hand side, is enough.
  3. Solve for yy if you can; otherwise leave the answer as an implicit relation.
  4. Check whether the equilibria are recovered by some value of the constant. Some are absorbed into the family; others are genuinely lost and must be listed separately as singular solutions.

Step 1 is the step everyone skips. Dividing by h(y)h(y) is illegal exactly where h(y)=0h(y)=0, so those solutions can never emerge from step 2.

Why the method is legitimate (it is not "multiplying by dxdx"). Suppose h(y(x))0h(y(x))\ne 0, so yh(y)=g(x)\dfrac{y'}{h(y)}=g(x). Let HH be an antiderivative of 1h\dfrac{1}{h}. By the chain rule ddx[H(y(x))]=H(y)y=yh(y)=g(x)\dfrac{d}{dx}\left[H(y(x))\right]=H'(y)\,y'=\dfrac{y'}{h(y)}=g(x), so H(y(x))H(y(x)) and g(x)dx\int g(x)\,dx are two antiderivatives of the same function on an interval and therefore differ by a constant.

The absolute value and the sign-absorbing constant. Integrating 1y3\dfrac{1}{y-3} gives ln\ln of the absolute value of y3y-3, so lny3=x2+C\ln|y-3|=x^{2}+C becomes y3=eCex2|y-3|=e^{C}e^{x^{2}} and then y3=Aex2y-3=Ae^{x^{2}} where A=±eCA=\pm e^{C} is any nonzero real. The sign cannot flip partway along, because y3y-3 is continuous and never zero on the interval. Allowing A=0A=0 restores the equilibrium y3y\equiv 3, so here the general solution is y=3+Aex2y=3+Ae^{x^{2}} with AA arbitrary.

First-order linear equations: the integrating factor

Standard form (mandatory). y+p(x)y=q(x)y'+p(x)y=q(x). If the equation arrives as a(x)y+b(x)y=c(x)a(x)y'+b(x)y=c(x), divide through by a(x)a(x) before reading off pp, and exclude the zeros of aa from the interval.

Derivation. Look for a nonzero function μ(x)\mu(x) that turns the left side into an exact derivative:

μ(x)[y+p(x)y]=μ(x)y+μ(x)p(x)yversus(μy)=μy+μy.\mu(x)\left[y'+p(x)y\right]=\mu(x)y'+\mu(x)p(x)y \qquad\text{versus}\qquad \left(\mu y\right)'=\mu y'+\mu' y .

These agree for every yy precisely when μ=pμ\mu'=p\mu. That little equation is itself separable: dμμ=pdx\dfrac{d\mu}{\mu}=p\,dx, so lnμ=pdx\ln|\mu|=\int p\,dx and we may take

μ(x)=ep(x)dx>0.\mu(x)=e^{\int p(x)\,dx}>0 .

Any single antiderivative of pp will do — an extra +C+C contributes a factor eCe^{C} that cancels from both sides. With this μ\mu,

(μy)=μq    μy=μ(x)q(x)dx+C    y=1μ(x)[μ(x)q(x)dx+C].\left(\mu y\right)'=\mu q \quad\implies\quad \mu y=\int \mu(x)q(x)\,dx+C \quad\implies\quad y=\frac{1}{\mu(x)}\left[\int \mu(x)q(x)\,dx+C\right].

The CC lives inside the bracket: the term C/μ=CepdxC/\mu=Ce^{-\int p\,dx} is exactly the general solution of the associated homogeneous equation y+py=0y'+py=0, and dropping it loses half the answer. Note μ>0\mu>0 always, so dividing by μ\mu is never the illegal step that division by h(y)h(y) was.

Exponential growth and decay

Theorem. Let kk be constant and let II be an interval. Then y(t)=ky(t)y'(t)=ky(t) on II if and only if y(t)=Cekty(t)=Ce^{kt} for some constant CC.

Proof of the harder direction. Put g(t)=y(t)ektg(t)=y(t)e^{-kt}. Then g=yektkyekt=ekt(yky)=0g'=y'e^{-kt}-ky e^{-kt}=e^{-kt}\left(y'-ky\right)=0 on II, and a function with zero derivative on an interval is constant there. (That last step is the Mean Value Theorem corollary: gg is differentiable on II, hence continuous on every closed subinterval and differentiable on its interior, so g(t2)g(t1)=g(c)(t2t1)=0g(t_{2})-g(t_{1})=g'(c)(t_{2}-t_{1})=0. The hypothesis that the domain is an interval is what makes it work.) Hence y(t)ekt=Cy(t)e^{-kt}=C.

If 0I0\in I then C=y(0)C=y(0). Growth when k>0k>0, decay when k<0k<0.

  • Doubling time (k>0k>0): ekT=2e^{kT}=2, so T=ln2kT=\dfrac{\ln 2}{k}.
  • Half-life (k<0k<0): ekT=12e^{kT}=\dfrac12, so T=ln2k=ln2kT=-\dfrac{\ln 2}{k}=\dfrac{\ln 2}{|k|}, equivalently k=ln2Tk=-\dfrac{\ln 2}{T} and y(t)=y02t/Ty(t)=y_{0}2^{-t/T}.

Newton's law of cooling

An object at temperature T(t)T(t) sitting in surroundings held at the constant temperature TsT_{s} changes temperature at a rate proportional to the temperature difference:

dTdt=k(TTs),k<0.\frac{dT}{dt}=k\left(T-T_{s}\right),\qquad k<0 .

Substituting u=TTsu=T-T_{s} gives u=T=kuu'=T'=ku, so u=u0ektu=u_{0}e^{kt} and

T(t)=Ts+(T(0)Ts)ekt.T(t)=T_{s}+\left(T(0)-T_{s}\right)e^{kt}.

Sanity checks built into the formula: t=0t=0 returns T(0)T(0); tt\to\infty gives TTsT\to T_{s} because k<0k<0; and TTsT\equiv T_{s} is the equilibrium solution, recovered when T(0)=TsT(0)=T_{s}. The same formula models heating when T(0)<TsT(0)<T_{s} — nothing changes.

EquationNameMethodGeneral solution
y=f(x)y'=f(x)direct antidifferentiationintegrate oncey=f(x)dx+Cy=\int f(x)\,dx+C
y=g(x)h(y)y'=g(x)h(y)separablelist roots of hh; then dy/h(y)=gdx\int dy/h(y)=\int g\,dximplicit relation, plus any lost equilibria
y+p(x)y=q(x)y'+p(x)y=q(x)first-order linearμ=epdx\mu=e^{\int p\,dx}, then (μy)=μq(\mu y)'=\mu qy=1μ[μqdx+C]y=\dfrac{1}{\mu}\left[\int \mu q\,dx+C\right]
y=kyy'=kygrowth / decayeither methody=y0ekty=y_{0}e^{kt}
T=k(TTs)T'=k(T-T_{s})Newton coolingsubstitute u=TTsu=T-T_{s}T=Ts+(T0Ts)ektT=T_{s}+(T_{0}-T_{s})e^{kt}

Worked example 1 (separable IVP, with a lost solution)

Solve dydx=2xy2\dfrac{dy}{dx}=-2xy^{2} with y(0)=1y(0)=1, and state where the solution is valid.

Step 1 — equilibria. Here h(y)=y2h(y)=y^{2}, and h(y)=0h(y)=0 only at y=0y=0, so y0y\equiv 0 is a solution. It fails y(0)=1y(0)=1, so it is not our answer — but keep it in view.

Step 2 — separate and integrate (valid where y0y\ne 0):

y2dy=2xdxy2dy=2xdx1y=x2+C.\begin{aligned} y^{-2}\,dy &= -2x\,dx \\ \int y^{-2}\,dy &= \int -2x\,dx \\ -\frac{1}{y} &= -x^{2}+C . \end{aligned}

Step 3 — solve for yy. Multiply by 1-1: 1y=x2C\dfrac{1}{y}=x^{2}-C. Writing D=CD=-C (still arbitrary),

y=1x2+D.y=\frac{1}{x^{2}+D}.

Step 4 — apply the initial condition. 1=y(0)=1D1=y(0)=\dfrac{1}{D}, so D=1D=1 and

y=1x2+1.y=\frac{1}{x^{2}+1}.

Check. y=2x(x2+1)2y'=-\dfrac{2x}{\left(x^{2}+1\right)^{2}} and 2xy2=2x(x2+1)2-2xy^{2}=-\dfrac{2x}{\left(x^{2}+1\right)^{2}}: identical. Also y(0)=1y(0)=1. Since x2+1x^{2}+1 is never 00, this solution is valid for all real xx.

Two remarks. (i) y0y\equiv 0 is a singular solution: no value of DD produces the zero function. (ii) The interval of validity depends on the data, not just on the equation: with y(0)=1y(0)=-1 instead we get D=1D=-1 and y=1x21y=\dfrac{1}{x^{2}-1}, valid only on (1,1)(-1,1), the largest interval around x=0x=0 avoiding x=±1x=\pm 1.

Worked example 2 (first-order linear IVP)

Solve xy+2y=4x2xy'+2y=4x^{2} with y(1)=2y(1)=2, for x>0x>0.

Standard form. Divide by xx (legal since x>0x>0):

y+2xy=4x,p(x)=2x,q(x)=4x.y'+\frac{2}{x}\,y=4x,\qquad p(x)=\frac{2}{x},\quad q(x)=4x .

Integrating factor. pdx=2xdx=2lnx=lnx2\int p\,dx=\int\frac{2}{x}\,dx=2\ln x=\ln x^{2} for x>0x>0, so μ=elnx2=x2\mu=e^{\ln x^{2}}=x^{2}.

Multiply and recognise the product rule.

x2y+2xy=4x3(x2y)=4x3x2y=x4+Cy=x2+Cx2.\begin{aligned} x^{2}y'+2xy &= 4x^{3} \\ \left(x^{2}y\right)' &= 4x^{3} \\ x^{2}y &= x^{4}+C \\ y &= x^{2}+\frac{C}{x^{2}} . \end{aligned}

Initial condition. y(1)=1+C=2y(1)=1+C=2, so C=1C=1 and

y=x2+1x2,x>0.y=x^{2}+\frac{1}{x^{2}},\qquad x>0 .

Check. y=2x2x3y'=2x-\dfrac{2}{x^{3}}, so xy+2y=2x22x2+2x2+2x2=4x2xy'+2y=2x^{2}-\dfrac{2}{x^{2}}+2x^{2}+\dfrac{2}{x^{2}}=4x^{2}, and y(1)=1+1=2y(1)=1+1=2. Since pp and qq are continuous on (0,)(0,\infty), the linear theorem promises this is the unique solution on the whole of (0,)(0,\infty), which matches the formula's domain.

Common mistakes

WrongRight
"The order of (y)3=y(y')^{3}=y is 33."The order is 11: the highest derivative present is yy'. Three is the degree.
Reading pp off xy+2y=4x2xy'+2y=4x^{2} as p=2p=2, giving μ=e2x\mu=e^{2x}.Put it in standard form first: y+2xy=4xy'+\frac{2}{x}y=4x, so p=2xp=\frac{2}{x} and μ=x2\mu=x^{2}.
y=1μμqdx+Cy=\dfrac{1}{\mu}\int\mu q\,dx+C.The constant is inside: y=1μ[μqdx+C]y=\dfrac{1}{\mu}\left[\int\mu q\,dx+C\right]. Otherwise the homogeneous part CepCe^{-\int p} is lost.
Carrying a +C+C inside the integrating factor, μ=epdx+C\mu=e^{\int p\,dx+C}.Any one antiderivative works; the factor eCe^{C} multiplies both sides of (μy)=μq(\mu y)'=\mu q and cancels.
Dividing by h(y)h(y) without first solving h(y)=0h(y)=0.For y=y(1y)y'=y(1-y), dividing by y(1y)y(1-y) silently discards y0y\equiv 0 and y1y\equiv 1, both genuine solutions.
Dropping the absolute value: dyy=lny\int\frac{dy}{y}=\ln y.It is ln\ln of the absolute value of yy; that is exactly what lets the constant AA in y3=Aex2y-3=Ae^{x^{2}} be negative.
Adding a constant on each side, then keeping both.Two constants collapse into one; write CC on the right only.
Attaching +C+C after solving for yy: from 1/y=x2-1/y=-x^{2} concluding y=1x2+Cy=\frac{1}{x^{2}}+C.The constant enters at the integration step, before you invert: 1/y=x2+C-1/y=-x^{2}+C.
Newton cooling as T=TsektT=T_{s}e^{kt}.T=Ts+(T0Ts)ektT=T_{s}+(T_{0}-T_{s})e^{kt}. Test it: t=0t=0 must give T0T_{0} and tt\to\infty must give TsT_{s}.
Half-life TT giving k=ln2Tk=\frac{\ln 2}{T}.k=ln2Tk=-\frac{\ln 2}{T}; kk must be negative for decay. This sign error moves a carbon date by thousands of years.
Assuming every initial value problem has exactly one solution.Only under the hypotheses. y=3y2/3y'=3y^{2/3}, y(0)=0y(0)=0 has infinitely many solutions.
Quoting a solution without an interval.y=1x21y=\frac{1}{x^{2}-1} with y(0)=1y(0)=-1 solves the IVP on (1,1)(-1,1) only; "for all xx" is false.

Key terms

  • ordinary differential equation
  • order of a differential equation
  • degree vs. order
  • linear first-order equation
  • solution on an interval
  • verifying a solution by substitution
  • general solution
  • particular solution
  • singular solution
  • equilibrium (constant) solution
  • initial value problem
  • existence and uniqueness theorem
  • interval of validity
  • separable equation
  • loss of solutions by division
  • integrating factor
  • standard form
  • homogeneous equation
  • exponential growth and decay
  • doubling time
  • half-life
  • radiocarbon dating
  • Newton's law of cooling
  • ambient temperature

Practice Problems

(a) State the order of each equation:

(i) dydx=x2ysinx(ii) (y)4+y=ex(iii) y+(y)2xy=0\text{(i) } \frac{dy}{dx}=x^{2}y-\sin x \qquad \text{(ii) } (y')^{4}+y''=e^{x} \qquad \text{(iii) } y'''+(y'')^{2}-xy=0

(b) Verify that y=3e2x4y=3e^{2x}-4 is a solution of y=2y+8y'=2y+8 for all real xx, and identify which member of the general solution y=Ce2x4y=Ce^{2x}-4 it is.

Show hint

For (a), look only at which derivative is the highest one present — exponents are irrelevant. For (b), compute the left side and the right side separately and compare; you never need to solve the equation.

Show answer

(a) Orders.

  • (i) The only derivative appearing is dydx\dfrac{dy}{dx}, so the equation has order 11.
  • (ii) The derivatives present are yy' and yy''; the highest is yy'', so the order is 22. The exponent 44 on yy' is the degree of that term and has nothing to do with the order.
  • (iii) The highest derivative is yy''', so the order is 33. (It is also nonlinear, because of (y)2(y'')^{2}.)

(b) Verification. Let y=3e2x4y=3e^{2x}-4.

Left side.

y=ddx(3e2x4)=32e2x0=6e2x.y'=\frac{d}{dx}\left(3e^{2x}-4\right)=3\cdot 2e^{2x}-0=6e^{2x}.

Right side.

2y+8=2(3e2x4)+8=6e2x8+8=6e2x.2y+8=2\left(3e^{2x}-4\right)+8=6e^{2x}-8+8=6e^{2x}.

The two sides are the same function of xx, so the equation holds for every real xx: y=3e2x4y=3e^{2x}-4 is a solution on all of the real line.

Which member of the family? Compare y=Ce2x4y=Ce^{2x}-4 with y=3e2x4y=3e^{2x}-4: they agree exactly when C=3C=3. So the given function is the particular solution with C=3C=3, equivalently the one satisfying the initial condition y(0)=34=1y(0)=3-4=-1.

Independent check that the whole family works. If y=Ce2x4y=Ce^{2x}-4 then y=2Ce2xy'=2Ce^{2x}, while 2y+8=2Ce2x8+8=2Ce2x2y+8=2Ce^{2x}-8+8=2Ce^{2x}. Equal for every CC, as claimed.

Show that y=Acos3x+Bsin3xy=A\cos 3x+B\sin 3x satisfies y+9y=0y''+9y=0 for all constants AA and BB. Then find the particular solution with y(0)=2y(0)=2 and y(0)=3y'(0)=-3.

Show hint

Differentiate twice and substitute. For the second part, note that a second-order equation needs two conditions, and that evaluating at x=0x=0 makes the sine and cosine terms very easy to separate.

Show answer

Verification. Let y=Acos3x+Bsin3xy=A\cos 3x+B\sin 3x.

y=3Asin3x+3Bcos3xy=9Acos3x9Bsin3x.\begin{aligned} y' &= -3A\sin 3x+3B\cos 3x \\ y'' &= -9A\cos 3x-9B\sin 3x . \end{aligned}

Therefore

y+9y=(9Acos3x9Bsin3x)+9(Acos3x+Bsin3x)=0,y''+9y=\left(-9A\cos 3x-9B\sin 3x\right)+9\left(A\cos 3x+B\sin 3x\right)=0 ,

for every real xx and every choice of AA and BB. Since the equation has order 22 and this family carries exactly 22 arbitrary constants, it is the general solution.

Imposing the initial conditions. Evaluate at x=0x=0, using cos0=1\cos 0=1 and sin0=0\sin 0=0:

y(0)=Acos0+Bsin0=A=2y(0)=3Asin0+3Bcos0=3B=3    B=1.\begin{aligned} y(0) &= A\cos 0+B\sin 0=A=2 \\ y'(0) &= -3A\sin 0+3B\cos 0=3B=-3 \quad\implies\quad B=-1 . \end{aligned}

Particular solution.

y=2cos3xsin3x.y=2\cos 3x-\sin 3x .

Check, independently. With A=2A=2, B=1B=-1: y=6sin3x3cos3xy'=-6\sin 3x-3\cos 3x, so y(0)=3y'(0)=-3 as required, and y(0)=2y(0)=2. Also y=18cos3x+9sin3xy''=-18\cos 3x+9\sin 3x, while 9y=18cos3x9sin3x9y=18\cos 3x-9\sin 3x; adding gives 00.

Numerical spot-check at x=π6x=\dfrac{\pi}{6} (so 3x=π23x=\dfrac{\pi}{2}): y=2(0)1=1y=2(0)-1=-1 and y=18(0)+9(1)=9y''=-18(0)+9(1)=9, and indeed y+9y=9+9(1)=0y''+9y=9+9(-1)=0.

Solve the initial value problem dydx=xy\dfrac{dy}{dx}=\dfrac{x}{y}, y(0)=3y(0)=-3. State the interval on which your solution is valid, and explain how you chose between the two algebraic possibilities.

Show hint

Separate the variables and integrate. When you undo the square, remember that a solution is a continuous function, so it cannot jump between the positive and negative branches.

Show answer

Equilibria. Write the equation as dydx=x1y\dfrac{dy}{dx}=x\cdot\dfrac{1}{y}, so h(y)=1yh(y)=\dfrac{1}{y}. There is no yy with h(y)=0h(y)=0, so there are no constant solutions. Note also that the right-hand side is undefined at y=0y=0, so any solution must avoid y=0y=0.

Separate and integrate.

ydy=xdxydy=xdxy22=x22+C.\begin{aligned} y\,dy &= x\,dx \\ \int y\,dy &= \int x\,dx \\ \frac{y^{2}}{2} &= \frac{x^{2}}{2}+C . \end{aligned}

Multiply by 22 and write K=2CK=2C:

y2=x2+K.y^{2}=x^{2}+K .

Apply the initial condition. At x=0x=0, y=3y=-3, so (3)2=0+K(-3)^{2}=0+K, giving K=9K=9:

y2=x2+9.y^{2}=x^{2}+9 .

Choose the branch. Solving gives y=x2+9y=\sqrt{x^{2}+9} or y=x2+9y=-\sqrt{x^{2}+9}. A solution must be continuous and must never touch y=0y=0; since y(0)=3<0y(0)=-3<0, it is negative at x=0x=0 and can never change sign. Hence

y=x2+9.y=-\sqrt{x^{2}+9}.

Check. Differentiating,

y=12(x2+9)1/22x=xx2+9,y'=-\frac{1}{2}\left(x^{2}+9\right)^{-1/2}\cdot 2x=-\frac{x}{\sqrt{x^{2}+9}},

while

xy=xx2+9=xx2+9.\frac{x}{y}=\frac{x}{-\sqrt{x^{2}+9}}=-\frac{x}{\sqrt{x^{2}+9}} .

They agree, and y(0)=9=3y(0)=-\sqrt{9}=-3.

Interval of validity. x2+99>0x^{2}+9\ge 9>0 for every real xx, and y3y\le -3, so yy never reaches the forbidden value 00. The solution is valid on all real numbers.

Independent numerical check at x=4x=4: y=25=5y=-\sqrt{25}=-5, y=4/5=0.8y'=-4/5=-0.8, and x/y=4/(5)=0.8x/y=4/(-5)=-0.8.

Find every solution of dydx=2x(y3)\dfrac{dy}{dx}=2x(y-3). Explain carefully what happens to the constant solution during the separation step. Then solve the two initial value problems y(0)=5y(0)=5 and y(0)=3y(0)=3.

Show hint

Before dividing by y3y-3, ask what happens if y3y-3 is identically zero. Afterwards, check whether that solution reappears for some value of your constant.

Show answer

Step 1 — equilibrium solutions. Here g(x)=2xg(x)=2x and h(y)=y3h(y)=y-3. Solving h(y)=0h(y)=0 gives y=3y=3, so the constant function y3y\equiv 3 is a candidate. Verify: the left side is ddx(3)=0\dfrac{d}{dx}(3)=0 and the right side is 2x(33)=02x(3-3)=0. So y3y\equiv 3 is a solution.

Step 2 — separate, assuming y3y\ne 3.

dyy3=2xdxdyy3=2xdxlny3=x2+C.\begin{aligned} \frac{dy}{y-3} &= 2x\,dx \\ \int\frac{dy}{y-3} &= \int 2x\,dx \\ \ln|y-3| &= x^{2}+C . \end{aligned}

Step 3 — solve for yy. Exponentiating,

y3=ex2+C=eCex2.|y-3|=e^{x^{2}+C}=e^{C}e^{x^{2}} .

On the interval in question y3y-3 is continuous and never zero, so it keeps a constant sign; removing the absolute value therefore introduces a single fixed sign:

y3=Aex2,A=±eC0.y-3=Ae^{x^{2}},\qquad A=\pm e^{C}\ne 0 .

Step 4 — recover the equilibrium. Setting A=0A=0 in y=3+Aex2y=3+Ae^{x^{2}} gives exactly y3y\equiv 3, the solution that division by y3y-3 had excluded. So the equilibrium is absorbed into the family and

y=3+Aex2,A any real number,y=3+Ae^{x^{2}},\qquad A \text{ any real number},

describes every solution. (This is the lucky case. It does not always happen — see the equation y=y21y'=y^{2}-1, where the equilibrium y1y\equiv -1 is lost for good.)

Initial condition y(0)=5y(0)=5. Since e0=1e^{0}=1, 5=3+A5=3+A, so A=2A=2 and

y=3+2ex2.y=3+2e^{x^{2}} .

Check: y=22xex2=4xex2y'=2\cdot 2x\,e^{x^{2}}=4xe^{x^{2}}, and 2x(y3)=2x2ex2=4xex22x(y-3)=2x\cdot 2e^{x^{2}}=4xe^{x^{2}}. Also y(0)=3+2=5y(0)=3+2=5.

Initial condition y(0)=3y(0)=3. Now 3=3+A3=3+A forces A=0A=0, giving the equilibrium

y3.y\equiv 3 .

Check: both sides of the equation are 00. Note that if you had skipped Step 1 and insisted A0A\ne 0, this initial value problem would have appeared to have no solution at all.

Solve the initial value problem y+3y=e2xy'+3y=e^{-2x}, y(0)=0y(0)=0, using an integrating factor. Then find the maximum value of the solution for x0x\ge 0.

Show hint

The coefficient of yy is already constant and the equation is already in standard form, so write down μ\mu immediately. For the last part, the solution is differentiable everywhere, so use the derivative you already computed.

Show answer

Standard form. The equation is already y+p(x)y=q(x)y'+p(x)y=q(x) with p(x)=3p(x)=3 and q(x)=e2xq(x)=e^{-2x}, both continuous on all of the real line.

Integrating factor.

μ(x)=e3dx=e3x.\mu(x)=e^{\int 3\,dx}=e^{3x}.

Multiply through.

e3xy+3e3xy=e3xe2x(e3xy)=ex.\begin{aligned} e^{3x}y'+3e^{3x}y &= e^{3x}e^{-2x} \\ \left(e^{3x}y\right)' &= e^{x} . \end{aligned}

(The left side is (μy)(\mu y)' by the product rule: (e3xy)=e3xy+3e3xy\left(e^{3x}y\right)'=e^{3x}y'+3e^{3x}y.)

Integrate.

e3xy=ex+C    y=e3x(ex+C)=e2x+Ce3x.e^{3x}y=e^{x}+C \quad\implies\quad y=e^{-3x}\left(e^{x}+C\right)=e^{-2x}+Ce^{-3x}.

Initial condition. y(0)=e0+Ce0=1+C=0y(0)=e^{0}+Ce^{0}=1+C=0, so C=1C=-1:

y=e2xe3x.y=e^{-2x}-e^{-3x}.

Check. y=2e2x+3e3xy'=-2e^{-2x}+3e^{-3x}, so

y+3y=(2e2x+3e3x)+3(e2xe3x)=e2x,y'+3y=\left(-2e^{-2x}+3e^{-3x}\right)+3\left(e^{-2x}-e^{-3x}\right)=e^{-2x},

and y(0)=11=0y(0)=1-1=0.

Maximum for x0x\ge 0. Set y=0y'=0:

2e2x+3e3x=0    3e3x=2e2x    ex=23    x=ln320.4055.-2e^{-2x}+3e^{-3x}=0 \quad\implies\quad 3e^{-3x}=2e^{-2x} \quad\implies\quad e^{-x}=\frac{2}{3} \quad\implies\quad x=\ln\frac{3}{2}\approx 0.4055 .

There e2x=(23)2=49e^{-2x}=\left(\frac{2}{3}\right)^{2}=\frac{4}{9} and e3x=(23)3=827e^{-3x}=\left(\frac{2}{3}\right)^{3}=\frac{8}{27}, so

ymax=49827=1227827=4270.1481.y_{\max}=\frac{4}{9}-\frac{8}{27}=\frac{12}{27}-\frac{8}{27}=\frac{4}{27}\approx 0.1481 .

Since y(0)=0y(0)=0, y>0y>0 for x>0x>0, and y0y\to 0 as xx\to\infty, this critical point is the absolute maximum on [0,)[0,\infty).

Independent numerical check at x=0.4055x=0.4055: e2x=e0.81100.4444=49e^{-2x}=e^{-0.8110}\approx 0.4444=\frac{4}{9} and e3x=e1.21640.2963=827e^{-3x}=e^{-1.2164}\approx 0.2963=\frac{8}{27}, difference 0.1481\approx 0.1481.

Solve xy2y=x5xy'-2y=x^{5} on the interval x>0x>0. Give the general solution, then the particular solution with y(1)=2y(1)=2.

Show hint

The equation is linear but not yet in standard form — the coefficient of yy' must be 11 before you can read off p(x)p(x). Expect a negative pp, and hence a negative power of xx as the integrating factor.

Show answer

Standard form. Divide by xx, which is legal because x>0x>0:

y2xy=x4,p(x)=2x,q(x)=x4.y'-\frac{2}{x}\,y=x^{4},\qquad p(x)=-\frac{2}{x},\quad q(x)=x^{4}.

Integrating factor.

pdx=2xdx=2lnx=lnx2(x>0),\int p\,dx=\int-\frac{2}{x}\,dx=-2\ln x=\ln x^{-2}\qquad (x>0),

so

μ(x)=elnx2=x2.\mu(x)=e^{\ln x^{-2}}=x^{-2}.

Multiply through and recognise the product rule.

x2y2x3y=x2x4=x2(x2y)=x2.\begin{aligned} x^{-2}y'-2x^{-3}y &= x^{-2}\cdot x^{4}=x^{2} \\ \left(x^{-2}y\right)' &= x^{2} . \end{aligned}

(Indeed (x2y)=x2y2x3y\left(x^{-2}y\right)'=x^{-2}y'-2x^{-3}y, matching the left side exactly.)

Integrate.

x2y=x33+C    y=x2(x33+C)=x53+Cx2.x^{-2}y=\frac{x^{3}}{3}+C \quad\implies\quad y=x^{2}\left(\frac{x^{3}}{3}+C\right)=\frac{x^{5}}{3}+Cx^{2}.

General solution: y=x53+Cx2y=\dfrac{x^{5}}{3}+Cx^{2} on (0,)(0,\infty).

Check. y=5x43+2Cxy'=\dfrac{5x^{4}}{3}+2Cx, so

xy2y=5x53+2Cx22x532Cx2=3x53=x5.xy'-2y=\frac{5x^{5}}{3}+2Cx^{2}-\frac{2x^{5}}{3}-2Cx^{2}=\frac{3x^{5}}{3}=x^{5}.

The CC terms cancel, as they must: Cx2Cx^{2} is the general solution of the homogeneous equation xy2y=0xy'-2y=0.

Initial condition y(1)=2y(1)=2.

13+C=2    C=53,\frac{1}{3}+C=2 \quad\implies\quad C=\frac{5}{3},

so

y=x53+5x23=x5+5x23,x>0.y=\frac{x^{5}}{3}+\frac{5x^{2}}{3}=\frac{x^{5}+5x^{2}}{3},\qquad x>0 .

Verify the particular solution independently at x=2x=2: y=32+203=523y=\dfrac{32+20}{3}=\dfrac{52}{3}, and y=5x4+10x3=80+203=1003y'=\dfrac{5x^{4}+10x}{3}=\dfrac{80+20}{3}=\dfrac{100}{3}. Then xy2y=210032523=2001043=963=32=25xy'-2y=2\cdot\dfrac{100}{3}-2\cdot\dfrac{52}{3}=\dfrac{200-104}{3}=\dfrac{96}{3}=32=2^{5}. Correct. And y(1)=1+53=2y(1)=\dfrac{1+5}{3}=2.

Interval. pp and qq are continuous on (0,)(0,\infty), which contains x=1x=1, so the linear existence-uniqueness theorem guarantees this is the unique solution on the whole of (0,)(0,\infty).

Carbon-1414 decays exponentially with a half-life of 57305730 years.

(a) Write the differential equation and find the decay constant kk. (b) A wooden artefact retains 30%30\% of the carbon-1414 a living tree of the same size would contain. Estimate its age. (c) How long until only 10%10\% remains?

Show hint

Start from the modelling assumption "rate of change is proportional to the amount present", solve it, and use the half-life to pin down kk before touching parts (b) and (c). Watch the sign of kk.

Show answer

(a) The model. "The rate of decay is proportional to the amount present" is

dydt=ky,\frac{dy}{dt}=ky ,

whose general solution is y(t)=y0ekty(t)=y_{0}e^{kt} with y0=y(0)y_{0}=y(0). (Proof: (yekt)=ekt(yky)=0\left(ye^{-kt}\right)'=e^{-kt}(y'-ky)=0, so yektye^{-kt} is constant on the interval.)

Half-life 57305730 means y(5730)=y02y(5730)=\dfrac{y_{0}}{2}:

y0e5730k=y02    e5730k=12    5730k=ln12=ln2,y_{0}e^{5730k}=\frac{y_{0}}{2} \quad\implies\quad e^{5730k}=\frac12 \quad\implies\quad 5730k=\ln\frac12=-\ln 2 ,

k=ln257301.2097×104 per year.k=-\frac{\ln 2}{5730}\approx -1.2097\times 10^{-4}\ \text{per year}.

The sign is negative, as it must be for decay. Equivalently y(t)=y02t/5730y(t)=y_{0}2^{-t/5730}.

(b) Age at 30%30\%. We need y(t)=0.30y0y(t)=0.30\,y_{0}:

ekt=0.30    kt=ln0.30    t=ln0.30k=ln103ln25730=5730ln103ln2.e^{kt}=0.30 \quad\implies\quad kt=\ln 0.30 \quad\implies\quad t=\frac{\ln 0.30}{k}=\frac{-\ln\frac{10}{3}}{-\frac{\ln 2}{5730}}=5730\cdot\frac{\ln\frac{10}{3}}{\ln 2}.

Numerically ln103=1.203973\ln\dfrac{10}{3}=1.203973 and ln2=0.693147\ln 2=0.693147, so

t=5730×1.7369669952.8 years9.95×103 years.t=5730\times 1.736966\approx 9952.8 \ \text{years} \approx 9.95\times 10^{3}\ \text{years}.

Independent check. 9952.85730=1.7370\dfrac{9952.8}{5730}=1.7370 half-lives, and 21.7370=e1.7370×0.693147=e1.20397=0.30002^{-1.7370}=e^{-1.7370\times 0.693147}=e^{-1.20397}=0.3000. Correct.

(c) Time to 10%10\%. Same computation with 0.100.10:

t=ln0.10k=5730ln10ln2=5730×3.32192819034.6 years1.90×104 years.t=\frac{\ln 0.10}{k}=5730\cdot\frac{\ln 10}{\ln 2}=5730\times 3.321928\approx 19034.6\ \text{years}\approx 1.90\times 10^{4}\ \text{years}.

Independent check. 19034.65730=3.32193\dfrac{19034.6}{5730}=3.32193 half-lives, and 23.32193=0.10002^{-3.32193}=0.1000. Correct. (Sanity: three half-lives, 1719017190 years, leaves 12.5%12.5\%, so a little more than three half-lives is exactly what we should expect.)

A cup of coffee at 95C95^{\circ}\text{C} is set down in a room held at 20C20^{\circ}\text{C}. Five minutes later its temperature is 70C70^{\circ}\text{C}.

(a) Solve Newton's law of cooling for T(t)T(t) with these data. (b) At what time does the coffee reach 50C50^{\circ}\text{C}? (c) What is limtT(t)\lim_{t\to\infty}T(t), and what feature of the differential equation does it correspond to?

Show hint

Newton's law involves the temperature difference, not the temperature; substituting u=T20u=T-20 turns it into an equation you already know. Use the five-minute reading to find kk before answering (b).

Show answer

(a) Set up and solve. Newton's law of cooling with ambient temperature Ts=20T_{s}=20 is

dTdt=k(T20),T(0)=95.\frac{dT}{dt}=k\left(T-20\right),\qquad T(0)=95 .

Put u=T20u=T-20. Then u=T=kuu'=T'=ku, so u(t)=u(0)ektu(t)=u(0)e^{kt} with u(0)=9520=75u(0)=95-20=75. Hence

T(t)=20+75ekt.T(t)=20+75e^{kt}.

Use the five-minute reading T(5)=70T(5)=70:

70=20+75e5k    75e5k=50    e5k=5075=23,70=20+75e^{5k} \quad\implies\quad 75e^{5k}=50 \quad\implies\quad e^{5k}=\frac{50}{75}=\frac{2}{3},

k=15ln23=15ln320.081093 per minute.k=\frac{1}{5}\ln\frac{2}{3}=-\frac{1}{5}\ln\frac{3}{2}\approx -0.081093\ \text{per minute}.

Because ekt=e(t/5)ln(2/3)=(23)t/5e^{kt}=e^{(t/5)\ln(2/3)}=\left(\frac{2}{3}\right)^{t/5}, the answer has the tidy form

T(t)=20+75(23)t/5 C.T(t)=20+75\left(\frac{2}{3}\right)^{t/5}\ ^{\circ}\text{C}.

Check: T(0)=20+75=95T(0)=20+75=95 and T(5)=20+75(23)=20+50=70T(5)=20+75\left(\frac23\right)=20+50=70. Both data are reproduced.

(b) Reaching 50C50^{\circ}\text{C}.

50=20+75(23)t/5(23)t/5=3075=25t5ln23=ln25t=5ln25ln23=5ln52ln32.\begin{aligned} 50 &= 20+75\left(\frac{2}{3}\right)^{t/5} \\ \left(\frac{2}{3}\right)^{t/5} &= \frac{30}{75}=\frac{2}{5} \\ \frac{t}{5}\ln\frac{2}{3} &= \ln\frac{2}{5} \\ t &= 5\cdot\frac{\ln\frac{2}{5}}{\ln\frac{2}{3}}=5\cdot\frac{\ln\frac{5}{2}}{\ln\frac{3}{2}} . \end{aligned}

Numerically ln52=0.916291\ln\dfrac52=0.916291 and ln32=0.405465\ln\dfrac32=0.405465, so

t=5×2.25985111.30 minutes.t=5\times 2.259851\approx 11.30\ \text{minutes}.

Independent check. At t=11.29926t=11.29926: (23)11.29926/5=(23)2.25989=e2.25989×(0.405465)=e0.916291=0.4000\left(\frac23\right)^{11.29926/5}=\left(\frac23\right)^{2.25989}=e^{2.25989\times(-0.405465)}=e^{-0.916291}=0.4000, so T=20+75(0.4)=50T=20+75(0.4)=50. Correct.

(c) Long-run behaviour. Since 23<1\left|\frac{2}{3}\right|<1, (23)t/50\left(\frac{2}{3}\right)^{t/5}\to 0 as tt\to\infty, so

limtT(t)=20C.\lim_{t\to\infty}T(t)=20^{\circ}\text{C}.

This is the equilibrium solution of the differential equation: setting dTdt=k(T20)=0\dfrac{dT}{dt}=k(T-20)=0 gives the constant solution T20T\equiv 20. The coffee approaches room temperature asymptotically and never actually reaches it in finite time — consistent with uniqueness, since a solution that touched T=20T=20 would have to coincide with the constant solution from then on.

Consider dydx=y21\dfrac{dy}{dx}=y^{2}-1.

(a) Find all equilibrium solutions. (b) Find the general solution for y±1y\ne\pm 1, and determine which (if either) equilibrium is recovered from the family. (c) Solve the initial value problem y(0)=0y(0)=0 and describe the behaviour of that solution as x±x\to\pm\infty.

Show hint

Factor y21y^{2}-1 before integrating and use partial fractions. After solving for yy, test whether each constant solution can be produced by some value of your constant.

Show answer

(a) Equilibria. h(y)=y21=0h(y)=y^{2}-1=0 at y=1y=1 and y=1y=-1. Both constant functions satisfy the equation: the left side is 00 and the right side is 11=01-1=0. So y1y\equiv 1 and y1y\equiv -1 are solutions.

(b) General solution for y±1y\ne\pm 1. Separate:

dyy21=dx.\int\frac{dy}{y^{2}-1}=\int dx .

Partial fractions: since y21=(y1)(y+1)y^{2}-1=(y-1)(y+1),

1(y1)(y+1)=12(1y11y+1)\frac{1}{(y-1)(y+1)}=\frac{1}{2}\left(\frac{1}{y-1}-\frac{1}{y+1}\right)

(check: 12(y+1)(y1)(y1)(y+1)=122y21\frac12\cdot\frac{(y+1)-(y-1)}{(y-1)(y+1)}=\frac12\cdot\frac{2}{y^{2}-1}). Integrating,

12lny1y+1=x+C    y1y+1=e2x+2C    y1y+1=Ae2x,\frac{1}{2}\ln\left|\frac{y-1}{y+1}\right|=x+C \quad\implies\quad \left|\frac{y-1}{y+1}\right|=e^{2x+2C} \quad\implies\quad \frac{y-1}{y+1}=Ae^{2x},

with A=±e2C0A=\pm e^{2C}\ne 0 (the sign is fixed because the quotient is continuous and never zero on the interval). Solve for yy:

y1=Ae2x(y+1)yAe2xy=1+Ae2xy=1+Ae2x1Ae2x.\begin{aligned} y-1 &= Ae^{2x}\left(y+1\right) \\ y-Ae^{2x}y &= 1+Ae^{2x} \\ y &= \frac{1+Ae^{2x}}{1-Ae^{2x}} . \end{aligned}

Which equilibrium is recovered? Putting A=0A=0 gives y=1+010=1y=\dfrac{1+0}{1-0}=1, so y1y\equiv 1 is absorbed into the family. But y1y\equiv -1 is not: 1+Ae2x1Ae2x=1\dfrac{1+Ae^{2x}}{1-Ae^{2x}}=-1 would force 1+Ae2x=1+Ae2x1+Ae^{2x}=-1+Ae^{2x}, i.e. 1=11=-1, which is impossible. So

y=1+Ae2x1Ae2x  (A any real)together with the singular solution y1y=\frac{1+Ae^{2x}}{1-Ae^{2x}}\ \ (A\text{ any real})\qquad\text{together with the singular solution } y\equiv -1

is the complete list.

Interval of validity. The formula is only a solution where its denominator is nonzero. If A0A\le 0 then 1Ae2x1>01-Ae^{2x}\ge 1>0 for every xx, so that member is defined on the whole real line. If A>0A>0 the denominator vanishes at x=12lnAx^{*}=-\frac{1}{2}\ln A, and the member is really two solutions, one on (,x)(-\infty,x^{*}) and one on (x,)(x^{*},\infty); neither extends past the vertical asymptote.

(c) The initial value problem y(0)=0y(0)=0.

0=1+A1A    1+A=0    A=1,0=\frac{1+A}{1-A} \quad\implies\quad 1+A=0 \quad\implies\quad A=-1 ,

so

y=1e2x1+e2x.y=\frac{1-e^{2x}}{1+e^{2x}} .

Check by direct differentiation. With u=1e2xu=1-e^{2x} and v=1+e2xv=1+e^{2x} we have u=2e2xu'=-2e^{2x}, v=2e2xv'=2e^{2x}, so by the quotient rule

y=(2e2x)(1+e2x)(1e2x)(2e2x)(1+e2x)2=2e2x2e4x2e2x+2e4x(1+e2x)2=4e2x(1+e2x)2.y'=\frac{\left(-2e^{2x}\right)\left(1+e^{2x}\right)-\left(1-e^{2x}\right)\left(2e^{2x}\right)}{\left(1+e^{2x}\right)^{2}}=\frac{-2e^{2x}-2e^{4x}-2e^{2x}+2e^{4x}}{\left(1+e^{2x}\right)^{2}}=\frac{-4e^{2x}}{\left(1+e^{2x}\right)^{2}} .

Meanwhile

y21=(1e2x)2(1+e2x)2(1+e2x)2=(12e2x+e4x)(1+2e2x+e4x)(1+e2x)2=4e2x(1+e2x)2.y^{2}-1=\frac{\left(1-e^{2x}\right)^{2}-\left(1+e^{2x}\right)^{2}}{\left(1+e^{2x}\right)^{2}}=\frac{\left(1-2e^{2x}+e^{4x}\right)-\left(1+2e^{2x}+e^{4x}\right)}{\left(1+e^{2x}\right)^{2}}=\frac{-4e^{2x}}{\left(1+e^{2x}\right)^{2}} .

The two agree, and y(0)=111+1=0y(0)=\dfrac{1-1}{1+1}=0. Since 1+e2x>01+e^{2x}>0 always, the solution is valid on all real numbers.

Behaviour at the ends. As xx\to-\infty, e2x0e^{2x}\to 0, so y11=1y\to\dfrac{1}{1}=1. As x+x\to+\infty, divide top and bottom by e2xe^{2x}: y=e2x1e2x+111=1y=\dfrac{e^{-2x}-1}{e^{-2x}+1}\to\dfrac{-1}{1}=-1. The solution decreases from the equilibrium level 11 to the equilibrium level 1-1, approaching each asymptotically and reaching neither — exactly what uniqueness demands, since crossing y=±1y=\pm 1 would mean two distinct solutions through one point.

Solve the initial value problem

y+2xy=cosxx2,y(π)=0,y'+\frac{2}{x}\,y=\frac{\cos x}{x^{2}},\qquad y(\pi)=0 ,

and state the largest interval on which the solution is guaranteed to exist and be unique. Justify the interval.

Show hint

The equation is already in standard form, so compute μ\mu at once; the right-hand side is designed so that μq\mu q integrates in one step. For the interval, ask where pp and qq are continuous.

Show answer

Integrating factor. Here p(x)=2xp(x)=\dfrac{2}{x} and q(x)=cosxx2q(x)=\dfrac{\cos x}{x^{2}}. Since π>0\pi>0, work on x>0x>0:

pdx=2xdx=2lnx=lnx2,μ(x)=elnx2=x2.\int p\,dx=\int\frac{2}{x}\,dx=2\ln x=\ln x^{2},\qquad \mu(x)=e^{\ln x^{2}}=x^{2}.

Multiply through.

x2y+2xy=x2cosxx2=cosx(x2y)=cosx.\begin{aligned} x^{2}y'+2xy &= x^{2}\cdot\frac{\cos x}{x^{2}}=\cos x \\ \left(x^{2}y\right)' &= \cos x . \end{aligned}

(The left side is (μy)(\mu y)': (x2y)=x2y+2xy\left(x^{2}y\right)'=x^{2}y'+2xy.)

Integrate.

x2y=sinx+C    y=sinx+Cx2.x^{2}y=\sin x+C \quad\implies\quad y=\frac{\sin x+C}{x^{2}} .

Initial condition. sinπ=0\sin\pi=0, so

y(π)=0+Cπ2=0    C=0.y(\pi)=\frac{0+C}{\pi^{2}}=0 \quad\implies\quad C=0 .

y=sinxx2,x>0.y=\frac{\sin x}{x^{2}},\qquad x>0 .

Check. By the quotient rule,

y=x2cosx2xsinxx4=cosxx22sinxx3,y'=\frac{x^{2}\cos x-2x\sin x}{x^{4}}=\frac{\cos x}{x^{2}}-\frac{2\sin x}{x^{3}} ,

so

y+2xy=cosxx22sinxx3+2xsinxx2=cosxx2.y'+\frac{2}{x}y=\frac{\cos x}{x^{2}}-\frac{2\sin x}{x^{3}}+\frac{2}{x}\cdot\frac{\sin x}{x^{2}}=\frac{\cos x}{x^{2}} .

The last two terms cancel exactly, and y(π)=sinππ2=0y(\pi)=\dfrac{\sin\pi}{\pi^{2}}=0.

Independent numerical check at x=π21.5708x=\dfrac{\pi}{2}\approx 1.5708. Then y=1(1.5708)2=0.40528y=\dfrac{1}{(1.5708)^{2}}=0.40528 and y=cos(π/2)x22sin(π/2)x3=023.8758=0.51602y'=\dfrac{\cos(\pi/2)}{x^{2}}-\dfrac{2\sin(\pi/2)}{x^{3}}=0-\dfrac{2}{3.8758}=-0.51602. Also 2xy=21.5708×0.40528=0.51602\dfrac{2}{x}y=\dfrac{2}{1.5708}\times 0.40528=0.51602. The sum is 00, which equals cos(π/2)x2=0\dfrac{\cos(\pi/2)}{x^{2}}=0. Correct.

Largest interval. The linear existence-uniqueness theorem requires pp and qq continuous on an open interval containing the initial point x0=πx_{0}=\pi. Both 2x\dfrac{2}{x} and cosxx2\dfrac{\cos x}{x^{2}} are continuous everywhere except at x=0x=0, so the maximal such interval is

(0,),(0,\infty),

and the theorem guarantees a unique solution on all of it. The formula y=sinxx2y=\dfrac{\sin x}{x^{2}} is indeed defined and differentiable throughout (0,)(0,\infty). Note that no larger interval is admissible: any interval containing 00 would break continuity of the coefficients, and yy itself is undefined at x=0x=0.

(a) Prove that if yy is differentiable on an interval II and satisfies y(t)=ky(t)y'(t)=ky(t) there, then y(t)=Cekty(t)=Ce^{kt} for some constant CC. Name the theorem you use. (b) Deduce that the initial value problem y=kyy'=ky, y(0)=y0y(0)=y_{0} has exactly one solution. (c) A bacterial culture grows exponentially and doubles in 88 hours. How long does it take to triple?

Show hint

For (a) you cannot just "separate and integrate", because that step assumes y0y\ne 0. Instead build a single auxiliary function whose derivative you can show is identically zero.

Show answer

(a) The proof. Define

g(t)=y(t)ekt,tI.g(t)=y(t)e^{-kt},\qquad t\in I .

Both factors are differentiable, so by the product rule

g(t)=y(t)ekt+y(t)(kekt)=ekt(y(t)ky(t))=ekt0=0g'(t)=y'(t)e^{-kt}+y(t)\left(-ke^{-kt}\right)=e^{-kt}\left(y'(t)-ky(t)\right)=e^{-kt}\cdot 0=0

for every tt in II, using the hypothesis y=kyy'=ky.

A function whose derivative is zero on an interval is constant there. (This is the standard corollary of the Mean Value Theorem, and its hypotheses do hold here: take any t1<t2t_{1}<t_{2} in II; since gg is differentiable on all of II it is continuous on the closed interval [t1,t2][t_{1},t_{2}] and differentiable on the open interval (t1,t2)(t_{1},t_{2}), so the theorem supplies a point cc in (t1,t2)(t_{1},t_{2}) with g(t2)g(t1)=g(c)(t2t1)=0(t2t1)=0g(t_{2})-g(t_{1})=g'(c)(t_{2}-t_{1})=0\cdot(t_{2}-t_{1})=0.) The word "interval" is essential; on a disconnected domain the conclusion fails — a function equal to 00 on one piece of its domain and to 11 on another has zero derivative everywhere without being constant.

Hence g(t)=Cg(t)=C for all tIt\in I, and since ekt0e^{-kt}\ne 0,

y(t)=Cekt.y(t)=Ce^{kt}.

Note that this argument never divides by yy, so it covers the zero solution too and shows the family CektCe^{kt} is genuinely complete — there are no singular solutions here.

(b) Uniqueness. Suppose yy solves y=kyy'=ky on an interval containing 00 with y(0)=y0y(0)=y_{0}. By part (a), y(t)=Cekty(t)=Ce^{kt}. Evaluating at t=0t=0 gives y0=Ce0=Cy_{0}=Ce^{0}=C, so CC is forced: y(t)=y0ekty(t)=y_{0}e^{kt}. Conversely that function does satisfy both the equation and the initial condition, since its derivative is ky0ekt=kyky_{0}e^{kt}=ky. Existence and uniqueness are both established.

(c) Tripling time. Let N(t)=N0ektN(t)=N_{0}e^{kt} with tt in hours. Doubling in 88 hours means

N0e8k=2N0    e8k=2    k=ln280.0866434 per hour.N_{0}e^{8k}=2N_{0} \quad\implies\quad e^{8k}=2 \quad\implies\quad k=\frac{\ln 2}{8}\approx 0.0866434\ \text{per hour}.

Tripling requires ekt=3e^{kt}=3, so

t=ln3k=ln3ln2/8=8ln3ln2.t=\frac{\ln 3}{k}=\frac{\ln 3}{\ln 2/8}=8\cdot\frac{\ln 3}{\ln 2}.

With ln3=1.0986123\ln 3=1.0986123 and ln2=0.6931472\ln 2=0.6931472,

t=8×1.584962512.68 hours.t=8\times 1.5849625\approx 12.68\ \text{hours}.

Independent check. In 12.679712.6797 hours the number of doubling periods is 12.67978=1.58496\dfrac{12.6797}{8}=1.58496, and 21.58496=e1.58496×0.693147=e1.098612=3.00002^{1.58496}=e^{1.58496\times 0.693147}=e^{1.098612}=3.0000. Correct — and note the answer does not depend on N0N_{0}, as an exponential model requires. (Sanity: tripling must take longer than one doubling, 88 hours, and less than two doublings, 1616 hours.)

Consider the initial value problem y=3y2/3y'=3y^{2/3}, y(0)=0y(0)=0.

(a) Verify that y0y\equiv 0 and y=x3y=x^{3} are both solutions on all of the real line. (b) Show that separating the variables produces one of them and loses the other, and explain why. (c) Produce infinitely many solutions. (d) Which hypothesis of the existence-uniqueness theorem fails, and which conclusion survives?

Show hint

Part (a) is pure substitution — be careful simplifying (x3)2/3\left(x^{3}\right)^{2/3} for negative xx. For (c), try gluing the two solutions of part (a) together and check that the join is differentiable.

Show answer

(a) Both are solutions.

The zero function. If y0y\equiv 0 then y=0y'=0 and 3y2/3=30=03y^{2/3}=3\cdot 0=0. Both sides vanish, and y(0)=0y(0)=0.

The cubic. If y=x3y=x^{3} then y=3x2y'=3x^{2}. On the other side,

3y2/3=3(x3)2/3=3((x3)1/3)2=3x2,3y^{2/3}=3\left(x^{3}\right)^{2/3}=3\left(\left(x^{3}\right)^{1/3}\right)^{2}=3x^{2},

valid for every real xx because the real cube root of x3x^{3} is xx for negative xx as well. So y=3y2/3y'=3y^{2/3} everywhere, and y(0)=03=0y(0)=0^{3}=0. Both functions solve the same initial value problem.

(b) What separation gives. Here h(y)=3y2/3h(y)=3y^{2/3}, and h(y)=0h(y)=0 exactly at y=0y=0, so y0y\equiv 0 is an equilibrium — the solution that the next step will destroy. Assuming y0y\ne 0 and separating,

y2/3dy=3dx3y1/3=3x+Cy1/3=x+C3y=(x+C3)3.\begin{aligned} y^{-2/3}\,dy &= 3\,dx \\ 3y^{1/3} &= 3x+C \\ y^{1/3} &= x+\frac{C}{3} \\ y &= \left(x+\frac{C}{3}\right)^{3} . \end{aligned}

The initial condition y(0)=0y(0)=0 gives (C3)3=0\left(\frac{C}{3}\right)^{3}=0, so C=0C=0 and y=x3y=x^{3}. The equilibrium y0y\equiv 0 is not a member of this family — no constant CC makes (x+C3)3\left(x+\frac{C}{3}\right)^{3} identically zero — so it is a singular solution, lost precisely at the moment we divided by y2/3y^{2/3}, which is zero at y=0y=0. This is the concrete danger the separable recipe's first step is designed to prevent.

(c) Infinitely many solutions. For each constant a0a\ge 0 define

ya(x)={0,xa(xa)3,x>a.y_{a}(x)=\begin{cases} 0, & x\le a \\ (x-a)^{3}, & x>a . \end{cases}

It is differentiable at x=ax=a: to the left the derivative is 00; to the right ddx(xa)3=3(xa)20\dfrac{d}{dx}(x-a)^{3}=3(x-a)^{2}\to 0 as xa+x\to a^{+}; and the two one-sided difference quotients both tend to 00, so ya(a)=0y_{a}'(a)=0.

It solves the equation: for x<ax<a both sides are 00; for x>ax>a, ya=3(xa)2y_{a}'=3(x-a)^{2} and 3ya2/3=3((xa)3)2/3=3(xa)23y_{a}^{2/3}=3\left((x-a)^{3}\right)^{2/3}=3(x-a)^{2}; at x=ax=a, ya(a)=0=302/3y_{a}'(a)=0=3\cdot 0^{2/3}.

It satisfies the initial condition: a0a\ge 0 gives ya(0)=0y_{a}(0)=0.

Since aa ranges over [0,)[0,\infty), this is an infinite family of distinct solutions to one initial value problem. (Taking a=0a=0 recovers y=x3y=x^{3}; letting aa\to\infty in spirit recovers y0y\equiv 0.)

(d) The failing hypothesis. Write f(x,y)=3y2/3f(x,y)=3y^{2/3}. Then

  • ff is continuous everywhere, including at (0,0)(0,0);
  • but fy=323y1/3=2y1/3f_{y}=3\cdot\dfrac{2}{3}y^{-1/3}=2y^{-1/3} is undefined at y=0y=0 and unbounded near it, so fyf_{y} is not continuous on any open rectangle containing (0,0)(0,0).

The existence-uniqueness theorem requires continuity of both ff and fyf_{y}; only the first holds. Consequently the existence conclusion survives (a solution does exist — in fact many), while the uniqueness conclusion fails, exactly as parts (a) and (c) exhibit. Contrast with a linear equation, where continuity of pp and qq alone delivers uniqueness on the entire interval.