Part 5 · Chapter 28

Differential Equations

Equations whose unknown is a whole function — reading off order and degree, the standard recipes that unwind them (separation, substitution, the integrating factor), and the slope fields and growth laws that reveal what a differential equation really describes

Fundamentals of Mathematics Prof. Mithun Mondal Reading time ≈ 50 min
i What you'll learn
  • The order and degree of a differential equation, and what a general versus particular solution means.
  • How to form a differential equation by eliminating the arbitrary constants of a family of curves.
  • The variables-separable method and homogeneous equations solved by \(y=vx\).
  • First-order linear equations and the integrating factor.
  • Direction fields — the geometric meaning of a first-order equation.
  • Applications: exponential growth and decay, and orthogonal trajectories.
Section 28-1

Order, Degree & Solutions

A differential equation relates a function to its derivatives; solving it means finding the function. Its order is the highest derivative that appears, and its degree is the power of that highest derivative once the equation is a polynomial in the derivatives. A solution containing the full quota of arbitrary constants is the general solution; fixing those constants with initial conditions gives a particular one.

P general: y=F(x)+C particular
The general solution is a whole family; one condition selects a single curve
🔢
Order fixes the number of constants
\(\text{order }n\ \Longrightarrow\ n\text{ arbitrary constants in the general solution}\)

A first-order equation has one constant; a second-order equation has two. Each independent initial condition removes one constant, so \(n\) conditions pin down a unique particular solution.

! When is the degree defined?

Degree is meaningful only when the equation can be written as a polynomial in the derivatives — free of radicals and transcendental functions of \(y',y'',\dots\). So \(\big(\tfrac{d^2y}{dx^2}\big)^3+\big(\tfrac{dy}{dx}\big)^2=0\) has order \(2\), degree \(3\), but \(\sin\!\big(\tfrac{dy}{dx}\big)=x\) has no degree at all.

Section 28-2

Forming a Differential Equation

Run the previous idea backwards. Given a family of curves carrying arbitrary constants — all circles centred at the origin, say, or all lines through a point — you can produce the single differential equation they all obey by differentiating enough times to eliminate every constant.

x²+y²=r²
One parameter \(r\): differentiate once to get \(x+y\,y'=0\)
✏️
Eliminating the constants
\(n\text{ arbitrary constants}\ \Longrightarrow\ \text{differentiate }n\text{ times, then eliminate}\)

The number of differentiations equals the number of constants, and the result is an equation of order \(n\). For \(x^2+y^2=r^2\), one differentiation gives \(2x+2y\,y'=0\), i.e. \(y'=-x/y\) — the constant \(r\) has vanished.

Section 28-3

Variables Separable

The simplest equations to solve are those where the \(x\)-stuff and the \(y\)-stuff can be herded onto opposite sides of the equation. Once separated, you integrate each side on its own.

Separate, then integrate both sides
\(\displaystyle\frac{dy}{dx}=g(x)\,h(y)\ \Longrightarrow\ \int\frac{dy}{h(y)}=\int g(x)\,dx\)

Move every \(y\) (with \(dy\)) to one side and every \(x\) (with \(dx\)) to the other, then integrate. A single arbitrary constant appears — combine the two constants of integration into one. The result is usually left as an implicit relation between \(x\) and \(y\).

Section 28-4

Homogeneous Equations

Some equations are not separable as they stand, yet the right-hand side depends only on the ratio \(y/x\). A single substitution then converts them into a separable equation in a new variable.

The substitution \(y=vx\)
\(\displaystyle\frac{dy}{dx}=F\!\left(\frac{y}{x}\right),\quad y=vx\ \Rightarrow\ v+x\frac{dv}{dx}=F(v)\)

Writing \(y=vx\) gives \(\tfrac{dy}{dx}=v+x\tfrac{dv}{dx}\), and the equation becomes separable in \(v\) and \(x\). Solve for \(v\), then substitute back \(v=y/x\). An equation qualifies whenever every term has the same total degree in \(x\) and \(y\).

Section 28-5

Linear Equations & the Integrating Factor

A first-order equation is linear when \(y\) and \(\tfrac{dy}{dx}\) appear only to the first power. Multiplying by a cleverly chosen integrating factor turns the whole left-hand side into the derivative of a single product — after which one integration finishes the job.

🔑
The integrating factor method
\(\displaystyle\frac{dy}{dx}+P(x)\,y=Q(x),\quad \mu=e^{\int P\,dx},\quad y\,\mu=\int Q\,\mu\,dx+C\)

Multiplying by \(\mu=e^{\int P\,dx}\) makes the left side exactly \(\tfrac{d}{dx}(y\,\mu)\), so integrating both sides gives the solution. The one essential first step is to put the equation in standard form — coefficient of \(\tfrac{dy}{dx}\) equal to \(1\) — before reading off \(P\) and \(Q\).

Section 28-6

Direction Fields

A first-order equation \(\tfrac{dy}{dx}=f(x,y)\) has a vivid geometric meaning: at every point of the plane it prescribes a slope. Drawing a short segment of that slope at many points produces a direction field, and a solution curve is any curve that stays tangent to it throughout.

The field assigns a slope everywhere; a solution threads through tangent to it
🧭
A slope at every point
\(\displaystyle\frac{dy}{dx}=f(x,y)\ \text{assigns a direction at }(x,y)\)

Solution curves never cross where \(f\) is well behaved, because each point carries exactly one slope. Picking a starting point selects the single curve through it — the geometric face of an initial condition. The field also shows behaviour, such as where solutions level off, even when no formula is available.

Section 28-7

Growth & Decay

The most famous differential equation in science says that a quantity changes at a rate proportional to its current size. Populations, radioactive atoms, cooling bodies and compound interest all obey it — and its solution is the exponential.

y₀ growth k>0 decay k<0
Same law \(\tfrac{dy}{dt}=ky\): rising for \(k>0\), falling for \(k<0\)
📈
The exponential law
\(\displaystyle\frac{dy}{dt}=k\,y\ \Longrightarrow\ y=y_0\,e^{kt}\)

The constant \(y_0\) is the starting amount and \(k\) the relative rate. With \(k>0\) the quantity grows and doubles every \(\tfrac{\ln 2}{k}\); with \(k<0\) it decays with a half-life of \(\tfrac{\ln 2}{|k|}\).

Section 28-8

Orthogonal Trajectories

Two families of curves are orthogonal trajectories of one another if every member of one cuts every member of the other at a right angle — think of the equipotential lines and field lines of physics. Finding them is a neat application of everything in this chapter.

Concentric circles and radial lines are mutually orthogonal trajectories
Replace the slope by its negative reciprocal
\(\displaystyle\frac{dy}{dx}\ \longrightarrow\ -\frac{dx}{dy}\)

First form the differential equation of the given family (Section 28-2). Then replace \(\tfrac{dy}{dx}\) by \(-\tfrac{dx}{dy}\) — since perpendicular slopes multiply to \(-1\) — and solve the new equation. Its solution family is the orthogonal trajectories.

Worked Examples

Putting It to Work

1 Order and degree

Problem. State the order and degree of \(\Big(\dfrac{d^{2}y}{dx^{2}}\Big)^{3}+\Big(\dfrac{dy}{dx}\Big)^{2}+y=0\).

Solution. The highest derivative is the second; it is raised to the power three, and the equation is polynomial in the derivatives:

Working
\[ \text{order}=2,\qquad \text{degree}=3 \]
2 Forming an equation

Problem. Form the differential equation of the family \(y=mx\) (all lines through the origin).

Solution. Differentiate to get \(\tfrac{dy}{dx}=m\), then eliminate \(m=y/x\):

Working
\[ \frac{dy}{dx}=\frac{y}{x}\qquad\Longleftrightarrow\qquad x\,\frac{dy}{dx}-y=0 \]
3 Variables separable

Problem. Solve \(y\,\dfrac{dy}{dx}+x=0\).

Solution. Separate and integrate \(y\,dy=-x\,dx\):

Working
\[ \frac{y^{2}}{2}=-\frac{x^{2}}{2}+C_1\ \Longrightarrow\ x^{2}+y^{2}=C \]
4 A homogeneous equation

Problem. Solve \(\dfrac{dy}{dx}=\dfrac{x+y}{x}\).

Solution. The right side is \(1+\tfrac yx\); put \(y=vx\), so \(v+x v'=1+v\), giving \(x v'=1\):

Working
\[ dv=\frac{dx}{x}\ \Rightarrow\ v=\ln|x|+C\ \Rightarrow\ y=x\big(\ln|x|+C\big) \]
5 A linear equation

Problem. Solve \(\dfrac{dy}{dx}+y=e^{x}\).

Solution. Here \(P=1\), so the integrating factor is \(\mu=e^{\int 1\,dx}=e^{x}\):

Working
\[ y\,e^{x}=\int e^{x}\!\cdot e^{x}\,dx=\frac{e^{2x}}{2}+C\ \Rightarrow\ y=\frac{e^{x}}{2}+C\,e^{-x} \]
6 Radioactive decay

Problem. A substance decays at a rate proportional to the amount present. If half of it decays in \(1600\) years, find the decay constant \(k\).

Solution. From \(\tfrac{dN}{dt}=-kN\) we get \(N=N_0e^{-kt}\); impose \(N=\tfrac{N_0}{2}\) at \(t=1600\):

Working
\[ e^{-1600k}=\tfrac12\ \Rightarrow\ k=\frac{\ln 2}{1600}\approx 4.33\times10^{-4}\ \text{yr}^{-1} \]
Review

Chapter Summary

Order & degree

Order = highest derivative; degree = its power (polynomial form only).

Formation

Differentiate \(n\) times to eliminate \(n\) arbitrary constants.

Separable

\(\int\tfrac{dy}{h(y)}=\int g(x)\,dx\) after separating.

Homogeneous

Put \(y=vx\) to make it separable in \(v\).

Linear

\(\mu=e^{\int P\,dx}\); then \(y\,\mu=\int Q\,\mu\,dx+C\).

Applications

\(y=y_0e^{kt}\) for growth/decay; \(\tfrac{dy}{dx}\to-\tfrac{dx}{dy}\) for orthogonals.

Practice

Problems

Classify the equation first — separable, homogeneous, or linear — then apply the matching recipe. Difficulty rises down the list.

  1. State the order and degree of \(\dfrac{d^{2}y}{dx^{2}}+3\dfrac{dy}{dx}+2y=0\).
  2. State the order and degree of \(\Big(\dfrac{dy}{dx}\Big)^{3}+2y=x\).
  3. Form the differential equation of the family \(y=Cx^{2}\).
  4. Solve \(\dfrac{dy}{dx}=x\,e^{-y}\).
  5. Solve \(\dfrac{dy}{dx}=\dfrac{y}{x}\).
  6. Solve the homogeneous equation \(\dfrac{dy}{dx}=\dfrac{x^{2}+y^{2}}{xy}\).
  7. Solve the linear equation \(\dfrac{dy}{dx}+2y=6\).
  8. Solve \(\dfrac{dy}{dx}+\dfrac{1}{x}\,y=x^{2}\).
  9. Solve \(\dfrac{dy}{dx}=e^{\,x+y}\).
  10. Find the particular solution of \(\dfrac{dy}{dx}=2x\) satisfying \(y(0)=3\).
  11. A population grows at a rate proportional to its size and doubles in \(20\) years. Find the growth constant \(k\).
  12. Solve the homogeneous equation \(\dfrac{dy}{dx}=\dfrac{x+y}{x-y}\).
  13. Find the orthogonal trajectories of the family of lines \(y=Cx\).
Tip: before choosing a method, get the equation into the form \(\tfrac{dy}{dx}=\,\cdots\) and ask three questions in order. Do the variables separate cleanly? If so, separate and integrate. If not, does the right-hand side depend only on \(y/x\)? Then it is homogeneous — substitute \(y=vx\). Otherwise, can you write it as \(\tfrac{dy}{dx}+P(x)y=Q(x)\)? Then it is linear — use the integrating factor \(e^{\int P\,dx}\). And remember: a first-order equation carries exactly one arbitrary constant, fixed only by an initial condition.