Chapter 9 · Differential Equations

9.1 Differential Equations: Formation and Solution

An equation that links an unknown function with its derivatives is a differential equation. This section measures its order and degree, and solves the three first-order types in the JEE Main syllabus: separable equations, homogeneous equations by $y=vx$, and linear equations $\dfrac{dy}{dx}+P(x)\,y=Q(x)$ by the integrating factor $e^{\int P\,dx}$.

A cup of tea is poured at $90^\circ\text{C}$ in a room at $25^\circ\text{C}$. Nobody can write down its temperature at every moment by watching it, but one simple fact is easy to believe: the hotter the tea is compared with the room, the faster it cools. In symbols, if $T(t)$ is the temperature after $t$ minutes, then $\dfrac{dT}{dt}=-k\,(T-25)$ for some constant $k\gt0$. This is not a formula for $T$; it is a statement about the rate at which $T$ changes. Yet from it, together with one measurement, we shall find exactly when the tea reaches a drinkable $40^\circ\text{C}$ (Example 3). Equations like this — the unknown is a function, and the equation involves its derivatives — are called differential equations.

Almost every law of science is written this way: Newton's second law $m\,\dfrac{d^2x}{dt^2}=F$, the decay of a radioactive sample, the growth of a bacterial culture, the charge on a capacitor, the concentration of a medicine in the blood, the interest in a continuously compounded account. In this section we learn the vocabulary (order, degree, general and particular solutions) and the three methods in the JEE Main syllabus: separation of variables, homogeneous equations and linear equations $\dfrac{dy}{dx}+P(x)\,y=Q(x)$. JEE Main asks one or two questions on this unit in almost every paper — usually "identify the type, solve, apply the initial condition, evaluate" — and they are quick marks once the integrations of Chapter 8 are fluent.

Differential Equations, their Order and Degree

📘 Definition 9.1 — Differential equation and its order

A differential equation is an equation that involves an unknown function and one or more of its derivatives. If the unknown $y$ is a function of a single variable $x$, so that only ordinary derivatives $\dfrac{dy}{dx},\dfrac{d^2y}{dx^2},\dots$ appear, it is an ordinary differential equation (the only kind in this course). We often write $y'=\dfrac{dy}{dx}$, $y''=\dfrac{d^2y}{dx^2}$, $y'''$, $y^{(4)}$, …

The order of a differential equation is the order of the highest derivative that occurs in it.

So $\dfrac{dT}{dt}=-k(T-25)$ has order $1$, $\ y''+4y=0$ has order $2$, and $\left(y'\right)^5+y=x^7$ still has order $1$ — the order counts how many times $y$ is differentiated, not powers. The second number attached to an equation does involve powers, but only when the equation is a polynomial in its derivatives.

📘 Definition 9.2 — Degree of a differential equation

Suppose a differential equation can be written (after clearing fractions and removing radicals and fractional powers of the derivatives) as a polynomial equation in $y',y'',\dots$. Its degree is then the highest power to which the highest-order derivative is raised. If the equation cannot be written as a polynomial in the derivatives — for example if it contains $\sin(y')$, $e^{y''}$ or $\ln y'$ that cannot be removed — its degree is not defined.

The rule "polynomial in the derivatives" applies only to the derivatives: $\ y'=\sin y+e^x$ has degree $1$ (the functions of $y$ and $x$ do not matter). The order and degree, when defined, are always positive integers. Equations of degree $1$ in which $y$ and its derivatives also appear only to the first power — $y'+P(x)\,y=Q(x)$ is the main example — are called linear; we solve them in the last part of this section.

📘 Definition 9.3 — Solutions: general, particular, initial value problem

A solution of a differential equation on an interval $I$ is a function $y=\varphi(x)$ which, substituted together with its derivatives, makes the equation true for every $x\in I$.

  • The general solution of an equation of order $n$ is a family of solutions containing $n$ independent (essential) arbitrary constants, such as $y=Ae^{2x}+Be^{-x}$ for an equation of order $2$.
  • A particular solution is a solution obtained by giving the arbitrary constants definite values.
  • An initial value problem is a differential equation together with conditions such as $y(x_0)=y_0$ (and, for order $2$, $y'(x_0)=y_1$) that pick out one particular solution.

Why does order $n$ go with $n$ constants? The simplest equation of order $1$ is $y'=f(x)$, whose solutions are the antiderivatives $y=\int f(x)\,dx+C$ — one constant from one integration. The equation $y''=f(x)$ needs two integrations and gives two constants. Geometrically, the general solution of a first-order equation is a family of curves filling the plane, and the condition $y(x_0)=y_0$ selects the one curve through the point $(x_0,y_0)$. "Independent" means the constants cannot be merged: $y=Ae^{x}+Be^{x}=(A+B)e^x$ contains only one essential constant.

✏️ Example 1 — Order, degree, and checking a solution
(a) Find the order and degree (if defined) of: (i) $\left(\dfrac{d^2y}{dx^2}\right)^3+\left(\dfrac{dy}{dx}\right)^4-y=0$; (ii) $\left[1+\left(\dfrac{dy}{dx}\right)^2\right]^{3/2}=4\,\dfrac{d^2y}{dx^2}$; (iii) $\dfrac{dy}{dx}+\sin\left(\dfrac{dy}{dx}\right)=x$; (iv) $\dfrac{d^3y}{dx^3}+2\left(\dfrac{d^2y}{dx^2}\right)^2+\dfrac{dy}{dx}=\cos x$. (b) Show that $y=Ae^{2x}+Be^{-x}$ is a solution of $y''-y'-2y=0$ for all constants $A$, $B$, and find the particular solution with $y(0)=1$, $y'(0)=5$.
(i) Highest derivative $y''$, raised to the power $3$; the equation is already a polynomial in $y',y''$. Order $2$, degree $3$.
(ii) Remove the fractional power by squaring: $\left[1+(y')^2\right]^3=16\,(y'')^2$. Now it is a polynomial in the derivatives and $y''$ appears squared: order $2$, degree $2$ (not $1$ — the degree is read only after the radicals are cleared).
(iii) $\sin(y')$ cannot be turned into a polynomial in $y'$: order $1$, degree not defined.
(iv) Highest derivative $y'''$, to the first power ($\cos x$ is a function of $x$ and does not matter): order $3$, degree $1$.
(b) $y'=2Ae^{2x}-Be^{-x}$, $y''=4Ae^{2x}+Be^{-x}$, so $y''-y'-2y=(4A-2A-2A)e^{2x}+(B+B-2B)e^{-x}=0$ ✓ for every $A$, $B$. Two essential constants for an equation of order $2$ — this is the general solution. The conditions give $A+B=1$ and $2A-B=5$, so $A=2$, $B=-1$: $\ y=2e^{2x}-e^{-x}$.
Check $y(0)=2-1=1$ ✓, $y'(0)=4+1=5$ ✓.
🚀 Beyond JEE Main (JEE Advanced) — forming a differential equation from a family of curves

Forming differential equations is in the JEE Advanced 2026 syllabus; it is no longer in the JEE Main 2026 list (which keeps order, degree and the three solution methods). This box is for interest only; nothing in it is used in the exercises, the Exam corner or the quiz.

Going backwards from Definition 9.3: to find the equation whose general solution is a given family with $n$ arbitrary constants, differentiate $n$ times and eliminate the constants. The result has order $n$. Lines through the origin $y=mx$ (one constant): $y'=m$, so $y=x\,y'$. Circles touching the $y$-axis at the origin, $x^2+y^2=2ax$: differentiating, $2x+2yy'=2a$; substituting $2a$ back, $x^2+y^2=x(2x+2yy')$, that is $2xy\,y'=y^2-x^2$ — a first-order equation of degree $1$, and in fact a homogeneous one (it is solved in Exercise III.7 in reverse). All circles with centre on the $x$-axis, $(x-a)^2+y^2=r^2$ (two constants): $(x-a)+yy'=0$ and then $1+(y')^2+yy''=0$ — order $2$.

What are the order and degree of $\ \dfrac{d^2y}{dx^2}=\left[1+\left(\dfrac{dy}{dx}\right)^2\right]^{1/3}$?

Separation of Variables

The first method works whenever the right-hand side of $\dfrac{dy}{dx}=f(x,y)$ splits into a factor depending only on $x$ times a factor depending only on $y$.

📐 Theorem 9.1 — Separable equations

Consider $\dfrac{dy}{dx}=g(x)\,h(y)$, where $g$ is continuous on an interval $I$ and $h$ is continuous. On any interval where $h(y)\ne0$, the solutions are exactly the functions $y(x)$ given implicitly by

$$\int\frac{dy}{h(y)}=\int g(x)\,dx+C .$$

In addition, every root $y_0$ of $h(y_0)=0$ gives a constant solution $y\equiv y_0$, which the division by $h(y)$ loses and which must be checked separately.

Proof. Let $H$ be an antiderivative of $\tfrac1h$ and $G$ one of $g$. If $y(x)$ is a solution with $h(y)\ne0$, then by the chain rule $\dfrac{d}{dx}H\big(y(x)\big)=\dfrac{y'(x)}{h(y(x))}=g(x)=G'(x)$. Two functions with the same derivative on an interval differ by a constant, so $H(y)=G(x)+C$. Conversely, if $y(x)$ satisfies $H(y)=G(x)+C$, differentiating gives $\dfrac{y'}{h(y)}=g(x)$, i.e. $y'=g(x)h(y)$. Finally, if $h(y_0)=0$ then $y\equiv y_0$ has $y'=0=g(x)h(y_0)$. $\blacksquare$

In practice we "separate": write the equation as $\dfrac{dy}{h(y)}=g(x)\,dx$, put everything in $y$ on one side and everything in $x$ on the other, and integrate both sides, adding one constant. The most important example is exponential change: $\dfrac{dy}{dt}=ky$ gives $\int\frac{dy}{y}=\int k\,dt$, $\ln|y|=kt+c$, $|y|=e^ce^{kt}$, and allowing the sign and the lost solution $y=0$ we get $y=y(0)\,e^{kt}$. With $k\gt0$ this is growth with a fixed doubling time $\tfrac{\ln2}{k}$; with $k\lt0$ it is decay with a fixed half-life $\tfrac{\ln 2}{|k|}$.

✏️ Example 2 — Separating the variables
Solve: (a) $\dfrac{dy}{dx}=e^{x-y}+x^2e^{-y}$, $\ y(0)=0$; (b) $\dfrac{dy}{dx}=\dfrac{1+y^2}{1+x^2}$, $\ y(0)=1$; (c) $\dfrac{dy}{dx}=2x\,(y-1)$ — find the general solution, including any constant solution.
(a) Factor $e^{x-y}+x^2e^{-y}=e^{-y}\left(e^x+x^2\right)$: separable. $e^{y}\,dy=\left(e^x+x^2\right)dx$, so $e^{y}=e^x+\dfrac{x^3}{3}+C$.
(a) Condition $x=0$, $y=0$: $1=1+0+C$, $C=0$. So $y=\ln\left(e^x+\dfrac{x^3}{3}\right)$, valid where $e^x+\tfrac{x^3}3\gt0$.
(b) $\dfrac{dy}{1+y^2}=\dfrac{dx}{1+x^2}$ gives $\tan^{-1}y=\tan^{-1}x+C$; at $(0,1)$: $C=\tfrac\pi4$. Taking $\tan$ of both sides, $y=\tan\left(\tan^{-1}x+\tfrac\pi4\right)=\dfrac{x+1}{1-x}$ (for $x\lt1$).
(c) For $y\ne1$: $\dfrac{dy}{y-1}=2x\,dx$, $\ \ln|y-1|=x^2+c$, $\ y-1=\pm e^{c}e^{x^2}$. The constant solution $y\equiv1$ (root of $h(y)=y-1$) also works, and it is the case $A=0$ of $\ y=1+Ae^{x^2}$, $A\in\mathbb{R}$, which is the general solution.
Check (b): $y=\dfrac{1+x}{1-x}$ gives $y'=\dfrac{2}{(1-x)^2}$ and $1+y^2=\dfrac{(1-x)^2+(1+x)^2}{(1-x)^2}=\dfrac{2(1+x^2)}{(1-x)^2}$, so $\dfrac{1+y^2}{1+x^2}=\dfrac{2}{(1-x)^2}=y'$ ✓.
✏️ Example 3 — Newton's law of cooling
The tea of the opening paragraph is poured at $90^\circ\text{C}$ in a room at $25^\circ\text{C}$ and cools according to $\dfrac{dT}{dt}=-k\,(T-25)$. After $10$ minutes it is at $60^\circ\text{C}$. (a) Find $T(t)$. (b) When does it reach $40^\circ\text{C}$? (c) What happens in the long run?
Find the time in (b), in minutes, before you open the solution:
Separate $\dfrac{dT}{T-25}=-k\,dt$, so $\ln|T-25|=-kt+c$ and $T-25=Ae^{-kt}$. At $t=0$: $A=90-25=65$. So $T=25+65e^{-kt}$.
Find $k$ $60=25+65e^{-10k}$ gives $e^{-10k}=\tfrac{35}{65}=\tfrac{7}{13}$, so $k=\tfrac{1}{10}\ln\tfrac{13}{7}\approx0.0619$ per minute.
(b) $40=25+65e^{-kt}$: $e^{-kt}=\tfrac{15}{65}=\tfrac{3}{13}$, $\ t=\dfrac{\ln(13/3)}{k}=\dfrac{10\ln(13/3)}{\ln(13/7)}=\dfrac{10\times1.4663}{0.6190}\approx23.7$ minutes.
(c) $e^{-kt}\to0$, so $T\to25^\circ\text{C}$: the tea approaches room temperature but never quite reaches it.
Check In the first $10$ minutes the excess over room temperature fell from $65$ to $35$; in the next $13.7$ minutes from $35$ to $15$. Ratios $\tfrac{35}{65}\approx0.54$ per $10$ min and $\tfrac{15}{35}\approx0.43$ per $13.7$ min $\approx0.54^{1.37}$ ✓ — the same exponential rate.

For the linear equation $\dfrac{dy}{dx}=x+y$, start the solution curve at the point $(0,-1)$. What does that solution curve look like?

Choose dy/dx = x + y and set $x_0=0$, $y_0=-1$ (or click near that point). The slope readout is $0+(-1)=-1$, the constant readout is $C=0$ and $y(1)=-2$: the curve is the line $y=-x-1$. The general solution is $y=Ce^x-x-1$ (the integrating factor $e^{-x}$ of the last part of this section gives it); through $(0,-1)$ the exponential part has $C=0$ and disappears. Check: on $y=-x-1$, $x+y=-1$, which is exactly the slope of the line. Every other curve has $C\ne0$ and peels away from this line exponentially — above it upwards, below it downwards.
Interactive 1 — Slope Field: One Point, One Solution

A first-order equation $\dfrac{dy}{dx}=f(x,y)$ gives a slope at every point of the plane; the short grey segments show these slopes. A solution curve is a curve that is tangent to the segments everywhere. Click anywhere (or use the sliders) to choose $(x_0,y_0)$: the lab draws the one solution through it and names the value of the arbitrary constant. Press Play to watch a point ride along the curve with its tangent always matching the field.

0−1
point $(x_0,y_0)$—
slope $f(x_0,y_0)$—
constant—
$y(1)$ on this curve—

Separating $\dfrac{dy}{dx}=y^2$ gives $-\dfrac1y=x+C$, i.e. $y=-\dfrac{1}{x+C}$. Which solution of $\dfrac{dy}{dx}=y^2$ is not given by this formula for any value of $C$?

Homogeneous Differential Equations

The equation $\dfrac{dy}{dx}=\dfrac{x^2+y^2}{2xy}$ is not separable. But divide the top and bottom by $x^2$: the right side becomes $\dfrac{1+(y/x)^2}{2\,(y/x)}$, a function of the single ratio $\tfrac yx$. Equations of this kind are reduced to separable ones by one substitution.

📘 Definition 9.4 — Homogeneous function and homogeneous differential equation

A function $F(x,y)$ is homogeneous of degree $n$ if $F(\lambda x,\lambda y)=\lambda^nF(x,y)$ for all $\lambda\gt0$ (and all $x$, $y$ in its domain). For example $x^2-3xy+y^2$ is homogeneous of degree $2$, $\sqrt{x^2+y^2}$ of degree $1$, and $\sin\tfrac yx$ or $\tfrac{x+y}{x-y}$ of degree $0$; $x+y+1$ is not homogeneous.

A first-order equation $\dfrac{dy}{dx}=\dfrac{M(x,y)}{N(x,y)}$, with $M$ and $N$ homogeneous of the same degree, is a homogeneous differential equation. Equivalently, it can be written as $\dfrac{dy}{dx}=F\!\left(\dfrac yx\right)$.

The equivalence: if $M$, $N$ have degree $n$, take $\lambda=\tfrac1x$ (for $x\gt0$): $\dfrac{M(x,y)}{N(x,y)}=\dfrac{x^nM(1,y/x)}{x^nN(1,y/x)}=\dfrac{M(1,v)}{N(1,v)}$ with $v=\tfrac yx$. (For $x\lt0$ the same works with $\lambda=-\tfrac1x$ up to a common sign that cancels.)

📐 Theorem 9.2 — The substitution $y=vx$

Let $F$ be continuous. On an interval not containing $x=0$, the substitution $y=vx$ (so $v=\tfrac yx$ is the new unknown) turns $\dfrac{dy}{dx}=F\!\left(\dfrac yx\right)$ into the separable equation

$$x\,\frac{dv}{dx}=F(v)-v,\qquad\text{so}\qquad\int\frac{dv}{F(v)-v}=\ln|x|+C\quad\big(F(v)\ne v\big).$$

After integrating, replace $v$ by $\tfrac yx$. Each root $v_0$ of $F(v_0)=v$ gives a straight-line solution $y=v_0x$.

Proof. By the product rule, $y=vx$ gives $\dfrac{dy}{dx}=v+x\dfrac{dv}{dx}$. The equation becomes $v+x\dfrac{dv}{dx}=F(v)$, i.e. $x\dfrac{dv}{dx}=F(v)-v$, which is of the form $\dfrac{dv}{dx}=g(x)h(v)$ with $g(x)=\tfrac1x$ and $h(v)=F(v)-v$. Theorem 9.1 finishes the job, including the constant solutions $v\equiv v_0$. $\blacksquare$ Geometrically, a homogeneous equation has the same slope at all points of each line $y=vx$ through the origin, so its slope field looks the same at every scale — magnify it about the origin and nothing changes.

✏️ Example 4 — Homogeneous equations
(a) Solve $\left(x^2+y^2\right)dx-2xy\,dy=0$. (b) Solve the initial value problem $x\dfrac{dy}{dx}=y+x\cos^2\!\left(\dfrac yx\right)$, $\ y(1)=\dfrac\pi4$, and find $y(e)$.
Find $y(e)$ in (b) to two decimal places:
(a) Type $\dfrac{dy}{dx}=\dfrac{x^2+y^2}{2xy}$: top and bottom homogeneous of degree $2$. Put $y=vx$: $v+x\dfrac{dv}{dx}=\dfrac{1+v^2}{2v}$, so $x\dfrac{dv}{dx}=\dfrac{1-v^2}{2v}$.
(a) Separate $\dfrac{2v\,dv}{1-v^2}=\dfrac{dx}{x}$. The left side integrates to $-\ln|1-v^2|$, so $-\ln|1-v^2|=\ln|x|+c$, i.e. $x\left(1-v^2\right)=C$.
(a) Back to $y$ $x\left(1-\tfrac{y^2}{x^2}\right)=C$, i.e. $\ x^2-y^2=Cx$ — a family of hyperbolas through the origin. (The roots $v=\pm1$ of $1-v^2=0$ give the lines $y=\pm x$, which are the case $C=0$.)
(b) $\dfrac{dy}{dx}=\dfrac yx+\cos^2\dfrac yx$. With $y=vx$: $x\dfrac{dv}{dx}=\cos^2v$, so $\sec^2v\,dv=\dfrac{dx}{x}$ and $\tan v=\ln|x|+C$. At $x=1$, $v=\tfrac\pi4$: $1=0+C$. Hence $\tan\dfrac yx=1+\ln x$ and $y=x\tan^{-1}(1+\ln x)$ for $x\gt0$ (the branch with $v=\tfrac\pi4$ at $x=1$).
(b) Value $y(e)=e\tan^{-1}2\approx2.71828\times1.10715\approx3.01$.
Check (a) Differentiate $x^2-y^2=Cx$: $2x-2yy'=C=\dfrac{x^2-y^2}{x}$, so $2xyy'=2x^2-x^2+y^2=x^2+y^2$ ✓.

Which of these differential equations is homogeneous?

Linear Equations $\dfrac{dy}{dx}+P(x)\,y=Q(x)$

The last type is the most important in applications, because it describes any quantity whose rate of change is "an input minus a loss proportional to the amount present" — salt in a tank, a drug in the blood, charge on a capacitor.

📘 Definition 9.5 — Linear first-order equation and integrating factor

A first-order equation that can be written in the standard form

$$\frac{dy}{dx}+P(x)\,y=Q(x),$$

with $P$ and $Q$ continuous on an interval $I$, is a linear differential equation (in $y$). The function $\ \mathrm{IF}=e^{\int P(x)\,dx}\ $ (any one antiderivative of $P$) is its integrating factor.

The word "linear" refers to $y$ and $y'$ appearing only to the first power and not multiplied together; $P$ and $Q$ may be any continuous functions of $x$. So $x^2y'+\sin x\cdot y=e^x$ is linear (divide by $x^2$), while $y'+y^2=x$ and $yy'=x$ are not. The idea of the method is to multiply by a factor that turns the left-hand side into the derivative of a product.

📐 Theorem 9.3 — Solution of the linear equation

If $P$ and $Q$ are continuous on an interval $I$ and $\mathrm{IF}=e^{\int P\,dx}$, then the general solution of $\dfrac{dy}{dx}+P(x)\,y=Q(x)$ on $I$ is given by

$$y\cdot\mathrm{IF}=\int Q(x)\cdot\mathrm{IF}\;dx+C .$$

For every $x_0\in I$ and every $y_0$ there is exactly one solution with $y(x_0)=y_0$. Likewise, $\dfrac{dx}{dy}+P(y)\,x=Q(y)$ (linear in $x$, with $y$ as the independent variable) has $x\cdot e^{\int P\,dy}=\int Q\,e^{\int P\,dy}\,dy+C$.

Proof. Let $\mu=e^{\int P\,dx}$. By the chain rule $\mu'=P\mu$, and $\mu\gt0$. Multiply the equation by $\mu$: $\ \mu y'+P\mu\,y=Q\mu$. The left side is $\mu y'+\mu' y=\dfrac{d}{dx}(\mu y)$ by the product rule. So $y$ solves the equation if and only if $\dfrac{d}{dx}(\mu y)=Q\mu$, i.e. if and only if $\mu y$ is an antiderivative of $Q\mu$: $\ \mu y=\int Q\mu\,dx+C$. Dividing by $\mu\ne0$ gives $y$. The condition $y(x_0)=y_0$ fixes $C$ uniquely. $\blacksquare$

🧭 Problem-solving strategy — the integrating factor in four lines
  1. Standard form. Divide by the coefficient of $y'$ so that it is $1$; read off $P(x)$ and $Q(x)$ with their signs.
  2. IF $=e^{\int P\,dx}$ — no constant needed; simplify $e^{\ln u}=u$ (e.g. $e^{2\ln x}=x^2$, $e^{-\ln\cos x}=\sec x$).
  3. Write $y\cdot\mathrm{IF}=\int Q\cdot\mathrm{IF}\,dx+C$ and integrate (by parts is common).
  4. Initial condition fixes $C$; only then divide by IF. If $y'$ appears in the denominator, or $y$ appears in a way that is not linear, try the equation as $\dfrac{dx}{dy}$ — it may be linear in $x$.
✏️ Example 5 — Using the integrating factor
Solve: (a) $\left(1+x^2\right)\dfrac{dy}{dx}+2xy=4x^2$, $\ y(0)=0$, and find $y(1)$; (b) $x\dfrac{dy}{dx}-y=x^2e^x$ ($x\gt0$); (c) $\left(x+2y^3\right)\dfrac{dy}{dx}=y$ ($y\gt0$).
(a) Standard form $y'+\dfrac{2x}{1+x^2}y=\dfrac{4x^2}{1+x^2}$; $\ \mathrm{IF}=e^{\ln(1+x^2)}=1+x^2$. So $(1+x^2)y=\int4x^2\,dx=\dfrac{4x^3}{3}+C$. $y(0)=0$ gives $C=0$: $\ y=\dfrac{4x^3}{3(1+x^2)}$, $\ y(1)=\dfrac{4}{6}=\dfrac23$.
⏱ Shortcut In (a) the left side $\left(1+x^2\right)y'+2xy$ is already $\dfrac{d}{dx}\big[(1+x^2)y\big]$. Always look for an exact derivative before computing an IF.
(b) Divide by $x$: $y'-\dfrac1x\,y=xe^x$, so $P=-\dfrac1x$ and $\mathrm{IF}=e^{-\ln x}=\dfrac1x$. Then $\dfrac yx=\int xe^x\cdot\dfrac1x\,dx=\int e^x\,dx=e^x+C$, and $\ y=xe^x+Cx$.
(c) Flip In $y$ the equation is not linear ($y^3$ multiplies $y'$). As an equation for $x(y)$: $\dfrac{dx}{dy}=\dfrac{x+2y^3}{y}$, i.e. $\dfrac{dx}{dy}-\dfrac1y\,x=2y^2$ — linear in $x$.
(c) Solve $\mathrm{IF}=e^{-\ln y}=\dfrac1y$: $\ \dfrac xy=\int 2y^2\cdot\dfrac1y\,dy=y^2+C$, so $\ x=y^3+Cy$.
Check (b) $y=xe^x+Cx$: $xy'-y=x(e^x+xe^x+C)-xe^x-Cx=x^2e^x$ ✓.

Solve $\dfrac{dy}{dx}+2xy=2x$ with $y(0)=0$. What happens to $y(x)$ as $x$ grows large?

Choose the preset y′ + 2xy = 2x, y(0) = 0 and step through. The lab finds $\mathrm{IF}=e^{x^2}$, $\ ye^{x^2}=\int2xe^{x^2}dx=e^{x^2}+C$, then $C=-1$ and $y=1-e^{-x^2}$. The readout shows $y(2)=0.9817$: the curve climbs from $0$ and flattens towards the line $y=1$. Every curve of the family $y=1+Ce^{-x^2}$ tends to $1$ — the constant solution $y\equiv1$, which the equation itself shows ($y=1$ makes $y'=2x-2x=0$).
Interactive 2 — Integrating-Factor Stepper

Choose a linear initial value problem and press Next step to solve it the way Theorem 9.3 does — standard form, integrating factor, exact derivative, integration, constant, answer. The graph follows along: the integrating factor (purple, dashed), then the whole family $y=\dfrac{\int Q\cdot\mathrm{IF}\,dx+C}{\mathrm{IF}}$ (grey, one curve for each $C$), and finally the one solution through the initial point. Play steps automatically through all five problems.

step—
integrating factor—
constant $C$—
$y(2)$—
✏️ Example 6 — Hard example: an integral equation and a curve from its tangents
(a) Find the continuous function $f$ with $f(x)=x^2+\displaystyle\int_0^x f(t)\,dt$ for all real $x$, and find $f(1)$. (b) A curve passes through $(1,1)$, and the tangent at every point $P(x,y)$ of the curve ($x\gt0$) cuts the $y$-axis at the point $(0,x^2)$. Find the curve.
Find $f(1)$ in (a) to two decimal places:
(a) To a DE The right side is differentiable (fundamental theorem of calculus), so $f$ is too, and $f'(x)=2x+f(x)$. Putting $x=0$ in the given equation: $f(0)=0$. So $f'-f=2x$, $f(0)=0$ — a linear initial value problem hidden in the integral.
(a) Solve $\mathrm{IF}=e^{-x}$: $\ fe^{-x}=\int2xe^{-x}\,dx=-2xe^{-x}-2e^{-x}+C$ (by parts). So $f=-2x-2+Ce^{x}$; $f(0)=0$ gives $C=2$: $\ f(x)=2e^x-2x-2$, $\ f(1)=2e-4\approx1.44$.
(b) Tangent The tangent at $(x,y)$ is $Y-y=y'(X-x)$. At $X=0$: $Y=y-xy'$. The condition is $y-xy'=x^2$, i.e. $y'-\dfrac1x\,y=-x$.
(b) Solve $\mathrm{IF}=\dfrac1x$: $\ \dfrac yx=\int(-x)\dfrac1x\,dx=-x+C$, so $y=Cx-x^2$; through $(1,1)$: $C=2$. The curve is the parabola $y=2x-x^2$.
Check (a) $\int_0^x\left(2e^t-2t-2\right)dt=2e^x-2-x^2-2x$, and $x^2+$ that $=2e^x-2x-2=f(x)$ ✓. (b) $y'=2-2x$, $y-xy'=2x-x^2-2x+2x^2=x^2$ ✓.
⚠️ JEE Main traps

1. Degree only after clearing radicals. $y''=\sqrt{1+y'}$ has degree $2$ (square it), and $\ln y''=x$ has degree $1$ (it says $y''=e^x$). But $y'+\sin y'=x$ has no degree. The order is never affected by powers.

2. Lost solutions. Dividing by $h(y)$ in Theorem 9.1 throws away the constant solutions $h(y)=0$. When a question asks for "all" solutions, or the initial value is a root of $h$, check them.

3. Standard form first. For $xy'+2y=x^3$ the IF is $e^{\int\frac2x dx}=x^2$, not $e^{2x}$. Divide by the coefficient of $y'$ and keep the sign of $P$: $y'-y\tan x=\dots$ has $\mathrm{IF}=e^{\ln\cos x}=\cos x$.

4. The constant goes in before you divide. $y\cdot\mathrm{IF}=\int Q\cdot\mathrm{IF}\,dx+C$ gives $y=\dfrac{\int Q\cdot\mathrm{IF}\,dx}{\mathrm{IF}}+\dfrac{C}{\mathrm{IF}}$ — the constant is divided by IF too. Writing "$+C$" at the very end is a common wrong answer.

5. Try $\dfrac{dx}{dy}$. If $y'$ has an awkward coefficient like $x+y^3$ or $\tan^{-1}y-x$, the equation is often linear in $x$. Also look for exact derivatives: $x\,dy+y\,dx=d(xy)$, $\ \dfrac{x\,dy-y\,dx}{x^2}=d\!\left(\dfrac yx\right)$.

The integrating factor of $\ x\dfrac{dy}{dx}+2y=x^3\ $ ($x\gt0$) is

Exercises

Give the general solution unless an initial condition is given; for initial value problems give the particular solution and the requested value. Logarithms are natural logarithms.

I
Order, degree and solutions.
  • 1 Find the order and degree of $\left(\dfrac{d^3y}{dx^3}\right)^2-3\dfrac{dy}{dx}+y^5=0$.
  • 2 Find the order and degree of $\dfrac{d^2y}{dx^2}=\sqrt{1+\dfrac{dy}{dx}}$.
  • 3 Find the order and degree of $y=x\dfrac{dy}{dx}+\sqrt{1+\left(\dfrac{dy}{dx}\right)^2}$.
  • 4 Find the order and degree of $\ln\left(\dfrac{d^2y}{dx^2}\right)=x+y$.
  • 5 Show that $y=Ax+\dfrac Bx$ is a solution of $x^2y''+xy'-y=0$ for all constants $A$, $B$. Is it the general solution?
  • 6 For which values of $a$ is $y=e^{ax}$ a solution of $y''-5y'+6y=0$? Give the sum of these values.
  • 7 How many essential arbitrary constants does $y=(A+B)e^{x}+Ce^{x+2}$ contain? What is the order of the differential equation it solves?
  • 8 $y=A\cos2x+B\sin2x$ is the general solution of $y''+4y=0$. Find the particular solution with $y(0)=3$, $y'(0)=4$, and $y\left(\tfrac\pi4\right)$.
1 Highest derivative $y'''$, squared: order $3$, degree $2$.
2 Square: $(y'')^2=1+y'$. Order $2$, degree $2$.
3 Write $p=y'$: $y-xp=\sqrt{1+p^2}$; squaring, $(y-xp)^2=1+p^2$, a polynomial of degree $2$ in $p$. Order $1$, degree $2$.
4 It says $y''=e^{x+y}$, a polynomial (first power) in $y''$: order $2$, degree $1$. A logarithm of the derivative can sometimes be removed, unlike $\sin y'$ added to $y'$.
5 $y'=A-\dfrac{B}{x^2}$, $y''=\dfrac{2B}{x^3}$: $x^2y''+xy'-y=\dfrac{2B}{x}+Ax-\dfrac Bx-Ax-\dfrac Bx=0$ ✓. Two essential constants ($x$ and $\tfrac1x$ are not multiples of each other) for an order-$2$ equation: yes, on $x\gt0$ (or $x\lt0$) it is the general solution.
6 $y=e^{ax}$ gives $(a^2-5a+6)e^{ax}=0$, so $(a-2)(a-3)=0$: $a=2$ or $3$; sum $5$.
7 $y=(A+B+Ce^2)e^x=Ke^x$: only one essential constant, so the equation has order $1$ (it is $y'=y$).
8 $y(0)=A=3$; $y'=-2A\sin2x+2B\cos2x$, $y'(0)=2B=4$, $B=2$. So $y=3\cos2x+2\sin2x$ and $y\left(\tfrac\pi4\right)=0+2=2$.
II
Separation of variables, growth and decay.
  • 1 Solve $\dfrac{dy}{dx}=\dfrac{x+1}{y-1}$.
  • 2 Solve $\dfrac{dy}{dx}=e^{x+y}$.
  • 3 Solve $x\dfrac{dy}{dx}=y\ln y$ ($x\gt0$, $y\gt1$) with $y(1)=e$, and find $y(2)$.
  • 4 Solve $\dfrac{dy}{dx}=2xy^2$, $y(0)=1$, and find $y\left(\tfrac12\right)$.
  • 5 Solve $\dfrac{dy}{dx}=y\tan x$, $y(0)=2$ ($|x|\lt\tfrac\pi2$), and find $y\left(\tfrac\pi3\right)$.
  • 6 Solve $\dfrac{dy}{dx}=(x+y)^2$ by putting $u=x+y$.
  • 7 A radioactive isotope has a half-life of $1600$ years. What percentage of a sample remains after $400$ years?
  • 8 A bacterial culture grows at a rate proportional to its size and triples in $5$ hours. How long does it take to become $10$ times its initial size?
  • 9 An object at $100^\circ\text{C}$ is placed in a room at $20^\circ\text{C}$ and cools by Newton's law; after $8$ minutes it is at $60^\circ\text{C}$. Find its temperature after $16$ minutes.
1 $(y-1)\,dy=(x+1)\,dx$: $\ \tfrac12(y-1)^2=\tfrac12(x+1)^2+c$, i.e. $(y-1)^2-(x+1)^2=C$.
2 $e^{-y}dy=e^x dx$: $-e^{-y}=e^x+c$, i.e. $e^x+e^{-y}=C$.
3 $\dfrac{dy}{y\ln y}=\dfrac{dx}{x}$; with $u=\ln y$ the left side is $\tfrac{du}{u}$: $\ln(\ln y)=\ln x+c$, so $\ln y=Kx$. $y(1)=e$ gives $K=1$: $y=e^x$, $\ y(2)=e^2\approx7.389$.
4 $\dfrac{dy}{y^2}=2x\,dx$: $-\dfrac1y=x^2+C$; $y(0)=1$ gives $C=-1$, so $y=\dfrac{1}{1-x^2}$ and $y\left(\tfrac12\right)=\tfrac43$.
5 $\dfrac{dy}{y}=\tan x\,dx$: $\ln|y|=-\ln|\cos x|+c$, $y=\dfrac{K}{\cos x}$; $K=2$: $y=2\sec x$, $\ y\left(\tfrac\pi3\right)=4$.
6 $u'=1+y'=1+u^2$, so $\dfrac{du}{1+u^2}=dx$, $\tan^{-1}u=x+C$: $\ \tan^{-1}(x+y)=x+C$, i.e. $y=\tan(x+C)-x$.
7 $N=N_0\left(\tfrac12\right)^{t/1600}$; at $t=400$: $2^{-1/4}\approx0.8409$, about $84.1\%$.
8 $N=N_0e^{kt}$ with $e^{5k}=3$, $k=\tfrac{\ln3}{5}$. $e^{kt}=10$: $t=\dfrac{5\ln10}{\ln3}\approx10.48$ hours.
9 $T-20=80e^{-kt}$ and $e^{-8k}=\tfrac{40}{80}=\tfrac12$: the excess halves every $8$ minutes. After $16$ minutes it is $80\times\tfrac14=20$, so $T=40^\circ\text{C}$.
III
Homogeneous equations.
  • 1 Which of these are homogeneous, and of what degree? (a) $x^2-3xy+y^2$ (b) $\sqrt{x^2+y^2}$ (c) $x+y+1$ (d) $\sin\dfrac yx$ (e) $x^2+\sin x\cos y$.
  • 2 Solve $\dfrac{dy}{dx}=\dfrac{x+y}{x}$ ($x\gt0$).
  • 3 Solve $(x-y)\dfrac{dy}{dx}=x+y$.
  • 4 Solve $x\dfrac{dy}{dx}=y+\sqrt{x^2+y^2}$ ($x\gt0$) with $y(1)=0$, and find $y(3)$.
  • 5 Solve $2xy\dfrac{dy}{dx}=x^2+3y^2$ with $y(1)=1$ ($x\gt0$, $y\gt0$), and find $y(2)$.
  • 6 Solve $x\dfrac{dy}{dx}-y=x\tan\dfrac yx$.
  • 7 A curve through $(1,1)$ has slope $\dfrac{y^2-x^2}{2xy}$ at every point $(x,y)$ ($x\gt0$, $y\gt0$). Show that it is an arc of a circle and find the radius.
1 (a) degree $2$; (b) degree $1$ (for $\lambda\gt0$, $\sqrt{\lambda^2(x^2+y^2)}=\lambda\sqrt{x^2+y^2}$); (c) not homogeneous; (d) degree $0$; (e) not homogeneous.
2 $y'=1+v$; with $y=vx$: $x v'=1$, $v=\ln x+C$: $\ y=x\ln x+Cx$.
3 $v+xv'=\dfrac{1+v}{1-v}$, so $xv'=\dfrac{1+v^2}{1-v}$ and $\dfrac{1-v}{1+v^2}dv=\dfrac{dx}{x}$. Integrating: $\tan^{-1}v-\tfrac12\ln(1+v^2)=\ln|x|+C$. With $v=\tfrac yx$ this simplifies to $\ \tan^{-1}\dfrac yx=\tfrac12\ln\left(x^2+y^2\right)+C$.
4 $xv'=\sqrt{1+v^2}$: $\int\dfrac{dv}{\sqrt{1+v^2}}=\ln\left(v+\sqrt{1+v^2}\right)=\ln x+c$, so $v+\sqrt{1+v^2}=Kx$, i.e. $y+\sqrt{x^2+y^2}=Kx^2$. $y(1)=0$: $K=1$. Then $\sqrt{x^2+y^2}=x^2-y$; squaring, $x^2=x^4-2x^2y$, so $y=\dfrac{x^2-1}{2}$ and $y(3)=4$.
5 $v+xv'=\dfrac{1+3v^2}{2v}$, $\ xv'=\dfrac{1+v^2}{2v}$: $\ln(1+v^2)=\ln x+c$, $1+v^2=Kx$, i.e. $x^2+y^2=Kx^3$. $(1,1)$: $K=2$. $y(2)^2=16-4=12$, $\ y(2)=2\sqrt3\approx3.464$.
6 $xv'=\tan v$: $\cot v\,dv=\dfrac{dx}x$, $\ \ln|\sin v|=\ln|x|+c$: $\ \sin\dfrac yx=Cx$.
7 $xv'=\dfrac{v^2-1}{2v}-v=-\dfrac{1+v^2}{2v}$, so $\dfrac{2v\,dv}{1+v^2}=-\dfrac{dx}{x}$, $\ (1+v^2)x=C$, i.e. $x^2+y^2=Cx$. Through $(1,1)$: $C=2$, so $(x-1)^2+y^2=1$ — a circle with centre $(1,0)$ and radius $1$.
IV
Linear equations and modelling.
  • 1 Solve $\dfrac{dy}{dx}+\dfrac3x\,y=x^2$ ($x\gt0$).
  • 2 Solve $\dfrac{dy}{dx}-2y=e^{3x}$, $y(0)=2$, and find $y(\ln2)$.
  • 3 Solve $\dfrac{dy}{dx}+y\cot x=4x\,\mathrm{cosec}\,x$ ($0\lt x\lt\pi$) with $y\left(\tfrac\pi2\right)=0$. Give the constant $C$ in $y\sin x=2x^2+C$.
  • 4 Solve $x\dfrac{dy}{dx}+y=x\ln x$ ($x\gt0$).
  • 5 Solve $\left(1+x^2\right)\dfrac{dy}{dx}+2xy=\dfrac{1}{1+x^2}$, $y(0)=0$, and find $y(1)$.
  • 6 Solve $\dfrac{dy}{dx}=\dfrac{1}{x+y}$ (treat $x$ as a function of $y$).
  • 7 Solve $\left(1+y^2\right)dx=\left(\tan^{-1}y-x\right)dy$.
  • 8 Mixing tank. A tank holds $100$ L of brine containing $10$ kg of salt. Brine with $0.2$ kg of salt per litre flows in at $5$ L/min and the well-mixed solution flows out at $5$ L/min. Show that the salt $S(t)$ (kg) satisfies $\dfrac{dS}{dt}=1-\dfrac{S}{20}$; find $S(20)$ and the long-run amount.
  • 9 Find the continuous function with $f(x)=\sin x+\displaystyle\int_0^x f(t)\,dt$, and $f(\pi)$.
1 $\mathrm{IF}=e^{3\ln x}=x^3$: $x^3y=\int x^5\,dx=\dfrac{x^6}{6}+C$, so $y=\dfrac{x^3}{6}+\dfrac{C}{x^3}$.
2 $\mathrm{IF}=e^{-2x}$: $ye^{-2x}=\int e^{x}dx=e^x+C$, $y=e^{3x}+Ce^{2x}$; $y(0)=2$ gives $C=1$. $y(\ln2)=8+4=12$.
3 $\mathrm{IF}=e^{\ln\sin x}=\sin x$: $y\sin x=\int4x\,dx=2x^2+C$. At $x=\tfrac\pi2$: $0=\tfrac{\pi^2}{2}+C$, $C=-\tfrac{\pi^2}{2}\approx-4.935$. So $y=\left(2x^2-\tfrac{\pi^2}{2}\right)\mathrm{cosec}\,x$.
4 The left side is $(xy)'$: $xy=\int x\ln x\,dx=\dfrac{x^2\ln x}{2}-\dfrac{x^2}{4}+C$, so $y=\dfrac{x\ln x}{2}-\dfrac x4+\dfrac Cx$.
5 Left side $=\big[(1+x^2)y\big]'$: $(1+x^2)y=\tan^{-1}x+C$, $C=0$. $y(1)=\dfrac{\pi/4}{2}=\dfrac\pi8\approx0.3927$.
6 $\dfrac{dx}{dy}=x+y$, i.e. $\dfrac{dx}{dy}-x=y$; $\mathrm{IF}=e^{-y}$: $xe^{-y}=\int ye^{-y}dy=-(y+1)e^{-y}+C$. So $x=Ce^{y}-y-1$, i.e. $x+y+1=Ce^y$.
7 $\dfrac{dx}{dy}+\dfrac{x}{1+y^2}=\dfrac{\tan^{-1}y}{1+y^2}$; $\mathrm{IF}=e^{\tan^{-1}y}$. With $t=\tan^{-1}y$: $xe^{t}=\int te^t\,dt=(t-1)e^t+C$. So $x=\tan^{-1}y-1+Ce^{-\tan^{-1}y}$.
8 Salt in: $5\times0.2=1$ kg/min; salt out: $5\times\dfrac{S}{100}=\dfrac{S}{20}$ kg/min. $\mathrm{IF}=e^{t/20}$: $Se^{t/20}=20e^{t/20}+C$, $S=20+Ce^{-t/20}$; $S(0)=10$ gives $C=-10$. $S(20)=20-10e^{-1}\approx16.32$ kg; as $t\to\infty$, $S\to20$ kg (the inflow concentration times the volume).
9 Differentiating: $f'=\cos x+f$, and $f(0)=0$. $\mathrm{IF}=e^{-x}$: $fe^{-x}=\int e^{-x}\cos x\,dx=\tfrac12e^{-x}(\sin x-\cos x)+C$, so $f=\tfrac12(\sin x-\cos x)+Ce^x$ and $f(0)=0$ gives $C=\tfrac12$. $f(\pi)=\tfrac12\left(0+1+e^\pi\right)\approx12.07$.
🎯 Exam corner JEE Main · MCQJEE Main · Numerical

E1. JEE Main · MCQ The sum of the order and the degree of the differential equation $\left(\dfrac{d^2y}{dx^2}\right)^{5/3}=\left(1+\dfrac{dy}{dx}\right)^{1/2}$ is (A) $7$ (B) $4$ (C) $12$ (D) not defined

Clear the powers Raise both sides to the power $6$ (the LCM of the denominators $3$ and $2$): $(y'')^{10}=(1+y')^3$.
Read off Order $2$; the highest derivative $y''$ appears to the power $10$: degree $10$.
Answer (C) $2+10=12$.
⏱ Shortcut (A) uses "degree $5$" (the numerator of $\tfrac53$) — the commonest slip. Clear all fractional powers before reading the degree.

E2. JEE Main · Numerical Let $y=y(x)$ satisfy $\left(1+x^2\right)\dfrac{dy}{dx}=xy$ with $y(0)=5$. Find $y\left(\sqrt{15}\right)$. Give the answer to the nearest integer.

Separate $\dfrac{dy}{y}=\dfrac{x\,dx}{1+x^2}$: $\ln|y|=\tfrac12\ln(1+x^2)+c$, so $y=K\sqrt{1+x^2}$.
Constant $y(0)=K=5$: $\ y=5\sqrt{1+x^2}$.
Answer $y(\sqrt{15})=5\sqrt{16}=20$.

E3. JEE Main · MCQ If $y=y(x)$ ($x\gt0$) solves $x\dfrac{dy}{dx}=y+xe^{-y/x}$ with $y(1)=0$, then $y(e)$ is (A) $\ln2$ (B) $e\ln2$ (C) $e$ (D) $2e$

Type $y'=\dfrac yx+e^{-y/x}$: homogeneous. With $y=vx$: $xv'=e^{-v}$, so $e^{v}dv=\dfrac{dx}{x}$.
Integrate $e^{v}=\ln x+C$; at $x=1$, $v=0$: $C=1$. So $e^{y/x}=1+\ln x$.
Evaluate At $x=e$: $e^{y/e}=2$, $\ y=e\ln2$.
Answer (B).
⏱ Shortcut (A) is the value of $v=\tfrac yx$, not of $y$. After a $y=vx$ substitution, remember to multiply back by $x$.

E4. JEE Main · Numerical Let $y=y(x)$, $x\gt0$, satisfy $x\dfrac{dy}{dx}+2y=x^2$ with $y(1)=1$. Find $16\,y(2)$. Give the answer to the nearest integer.

Standard form $y'+\dfrac2x\,y=x$; $\mathrm{IF}=x^2$.
Integrate $x^2y=\int x^3\,dx=\dfrac{x^4}{4}+C$; $y(1)=1$: $C=\tfrac34$. So $y=\dfrac{x^2}{4}+\dfrac{3}{4x^2}$.
Evaluate $y(2)=1+\dfrac{3}{16}=\dfrac{19}{16}$.
Answer $16\,y(2)=19$.
⏱ Shortcut Multiply the original equation by $x$: $x^2y'+2xy=(x^2y)'=x^3$ — the IF is visible without any formula.

E5. JEE Main · MCQ The solution curve of $y\,dx+\left(x-y^3\right)dy=0$ ($y\gt0$) that passes through $(1,1)$ is (A) $4x=y^3+3$ (B) $xy=y^3$ (C) $4xy=y^3+3y$ (D) $4xy=y^4+3$

Flip $\dfrac{dx}{dy}=\dfrac{y^3-x}{y}$, i.e. $\dfrac{dx}{dy}+\dfrac1y\,x=y^2$: linear in $x$, $\mathrm{IF}=y$.
Integrate $xy=\int y^3\,dy=\dfrac{y^4}{4}+C$; at $(1,1)$: $C=\tfrac34$.
Answer (D) $4xy=y^4+3$.
⏱ Shortcut $y\,dx+x\,dy=d(xy)$, so the equation is $d(xy)=y^3dy$ and $xy=\tfrac{y^4}{4}+C$ at once. Beware: (A), (B) and (C) also pass through $(1,1)$ — checking the point alone cannot pick the answer; the curve must also satisfy the equation.

E6. JEE Main · Numerical Water drains from a tank through a hole in its base. By Torricelli's law the depth $h$ (in metres) satisfies $\dfrac{dh}{dt}=-k\sqrt h$ for a constant $k\gt0$. The depth falls from $25$ m to $16$ m in the first $6$ minutes. Find the total time, in minutes, for the tank to empty. Give the answer to the nearest integer.

Separate $\dfrac{dh}{\sqrt h}=-k\,dt$: $2\sqrt h=-kt+c$. So $\sqrt h$ decreases linearly in time: $\sqrt h=5-\tfrac k2t$.
Rate $\sqrt h$ goes from $5$ to $4$ in $6$ minutes: it drops by $1$ every $6$ minutes, $\sqrt h=5-\tfrac t6$.
Answer $h=0$ when $t=30$ minutes.
⏱ Shortcut Not $6\times\tfrac{25}{9}\approx17$ (that assumes constant speed). The tank drains slower and slower, but because $\sqrt h$ is linear in $t$, it does empty in finite time — unlike exponential decay.
🔬 Research–Teaching NexusResearch-tutored · optional, about 45 minutes

Research question. A hospital gives a medicine by a steady intravenous drip. How long does it take for the concentration in the blood to reach a safe, effective level — and what happens if the drip is stopped or a loading dose is given first?

Why it matters. In the simplest "one-compartment" model used in pharmacology, a drug enters the blood at a constant rate $R$ (mg per hour) and is removed at a rate proportional to the amount present. With volume of distribution $V$ (litres) and elimination constant $k$ (per hour), the concentration $c(t)$ satisfies the linear equation $\dfrac{dc}{dt}+k\,c=\dfrac RV$. Clinicians use exactly this model (and the half-life $\tfrac{\ln2}{k}$) to choose infusion rates for antibiotics, anaesthetics and anticoagulants around the world.

What to do.

  1. Solve $\dfrac{dc}{dt}+kc=\dfrac RV$ with $c(0)=0$ by Theorem 9.3. Show that $c(t)=\dfrac{R}{kV}\left(1-e^{-kt}\right)$ and that the long-run (steady-state) level is $c_\infty=\dfrac{R}{kV}$.
  2. Take a drug with half-life $8$ hours, $V=40$ L and a target steady level of $10$ mg/L. Find $k$ and the infusion rate $R$. How many half-lives does it take to reach $90\%$ of $c_\infty$? (Show that the answer does not depend on $R$ or $V$.)
  3. A "loading dose" puts $c(0)=c_0$ immediately. Re-solve with this initial value and find the $c_0$ that makes $c(t)$ constant from the start. Plot both curves (spreadsheet or Desmos).
  4. The drip stops at $t=24$ h. Write and solve the new equation for $t\gt24$ and find when the level falls below $2$ mg/L.

Tools: Paper and a calculator; a spreadsheet or graphing tool for the plots.

Hand in: Your solutions for steps 1–4, the two plots, and three sentences explaining to a nurse why a loading dose is used.

Going further. Real dosing is often by tablets every $\tau$ hours, not a drip. Model each tablet as a sudden jump of $\tfrac DV$ in $c$, with decay $e^{-k\tau}$ between doses. Show that the peak levels form a geometric progression (Chapter 6) whose limit is $\dfrac{D/V}{1-e^{-k\tau}}$.

Instructor note: the key results are $k=\tfrac{\ln2}{8}\approx0.0866$ h$^{-1}$, $R=kVc_\infty\approx34.7$ mg/h, $90\%$ of the steady level after $\tfrac{\ln10}{\ln2}\approx3.32$ half-lives (about $26.6$ h), and loading dose $c_0=c_\infty$. Step 4 is pure exponential decay from $c(24)\approx8.75$ mg/L, reaching $2$ mg/L after about $17$ more hours. The geometric-series extension connects this unit to Chapter 6 and is a good discussion of "steady state" in discrete and continuous models.

🧪 Self-check quiz

0/5 correct

Q1. The degree of the differential equation $\dfrac{dy}{dx}=\sqrt{x+\dfrac{d^2y}{dx^2}}$ is

Q2. The general solution of $x\,dy=y\,dx$ ($x\ne0$) represents

Q3. To solve the homogeneous equation $\dfrac{dy}{dx}=\dfrac{x^2+y^2}{xy}$ one substitutes

Q4. The integrating factor of $\dfrac{dy}{dx}-y\tan x=\cos x$ ($|x|\lt\tfrac\pi2$) is

Q5. If $\dfrac{dy}{dx}+y=1$ and $y(0)=0$, then $y(\ln2)$ equals