Linear Algebra & DE · Unit 2 · Topic 12

Applications of differential equations: a physical law, written as a rate.

Short answer

Write the physical law as an equation for a rate of change, solve it, and fit the constants to the data. For example, Newton's law of cooling \(\dfrac{dT}{dt} = -k(T - T_s)\) gives \(T = T_s + (T_0 - T_s)e^{-kt}\).

An RL circuit, \(L\dfrac{di}{dt} + Ri = E\), gives \(i = \dfrac{E}{R}\big(1 - e^{-Rt/L}\big)\) when \(i(0) = 0\).

Engineering MathsB Tech / BEBSc
01

First-order models

Before you start: you need linear first-order equations and, for Section 2, second-order equations with constant coefficients.

Every application here follows the same pattern. A physical law tells you a rate of change. You write that as a differential equation, solve it, use the given data to find the constants, and then answer the question with units. Setting up the equation is the hard part, so read the law carefully.

Standard first-order models

Growth and decay: \(\dfrac{dN}{dt} = kN\) gives \(N = N_0e^{kt}\). Growth if \(k > 0\), decay if \(k < 0\). Half-life \(= \dfrac{\log 2}{|k|}\).

Newton's law of cooling: \(\dfrac{dT}{dt} = -k(T - T_s)\) gives \(T = T_s + (T_0 - T_s)\,e^{-kt}\), where \(T_s\) is the surrounding temperature.

RL circuit: \(L\dfrac{di}{dt} + Ri = E\) with \(i(0) = 0\) gives \(i = \dfrac{E}{R}\big(1 - e^{-Rt/L}\big)\). Time constant \(\dfrac{L}{R}\).

RC circuit: \(R\dfrac{dq}{dt} + \dfrac{q}{C} = E\) with \(q(0) = 0\) gives \(q = CE\big(1 - e^{-t/RC}\big)\) and \(i = \dfrac{E}{R}e^{-t/RC}\). Time constant \(RC\).

The circuit equations come from Kirchhoff's voltage law: the voltage drops \(Ri\) across a resistor, \(L\dfrac{di}{dt}\) across an inductor and \(\dfrac{q}{C}\) across a capacitor add up to the applied emf \(E\). With \(R\) in ohms, \(L\) in henries, \(C\) in farads and \(t\) in seconds, current comes out in amperes and charge in coulombs. After one time constant a charging circuit has reached \(1 - e^{-1}\), about 63%, of its final value.

02

Second-order models: springs and LCR circuits

Damped oscillations

Spring and mass: \(m\dfrac{d^2x}{dt^2} + c\dfrac{dx}{dt} + kx = F(t)\)

LCR circuit: \(L\dfrac{d^2q}{dt^2} + R\dfrac{dq}{dt} + \dfrac{q}{C} = E(t)\)

Damping cases (from the auxiliary equation)

\(c^2 > 4mk\): over-damped, two real roots, no oscillation.
\(c^2 = 4mk\): critically damped, repeated root, fastest return without oscillating.
\(c^2 < 4mk\): under-damped, complex roots, oscillation that dies out.

The two equations are the same mathematics: mass \(m\) plays the part of \(L\), damping \(c\) of \(R\), stiffness \(k\) of \(\dfrac{1}{C}\), and displacement \(x\) of charge \(q\). For the circuit, compare \(R^2\) with \(\dfrac{4L}{C}\). The auxiliary equation \(mr^2 + cr + k = 0\) has discriminant \(c^2 - 4mk\), and its sign decides the case. With no damping at all (\(c = 0\)), the motion is simple harmonic with angular frequency \(\sqrt{k/m}\).

03

Orthogonal trajectories

Two families of curves are orthogonal trajectories of each other if every curve of one family cuts every curve of the other at a right angle. Field lines and equipotentials are the standard physical example.

  1. Differentiate the given family and eliminate the constant, to get \(\dfrac{dy}{dx} = g(x, y)\).
  2. Replace \(\dfrac{dy}{dx}\) by \(-\dfrac{dx}{dy}\), since perpendicular slopes multiply to \(-1\).
  3. Solve the new equation. Its solution family is the orthogonal trajectory.
04

Solved examples

Example 1: Newton's law of cooling

Easy

A body at \(80^\circ\text{C}\) is placed in a room at \(20^\circ\text{C}\). After 10 minutes it is at \(60^\circ\text{C}\). Find its temperature after 20 minutes, and when it reaches \(30^\circ\text{C}\).

  1. \(T = 20 + 60e^{-kt}\). At \(t = 10\): \(40 = 60e^{-10k}\), so \(e^{-10k} = \tfrac{2}{3}\) and \(k = \tfrac{1}{10}\log 1.5 \approx 0.0405\) per minute.
  2. At \(t = 20\): \(e^{-20k} = \left(\tfrac{2}{3}\right)^2 = \tfrac{4}{9}\), so \(T = 20 + 60\cdot\tfrac{4}{9} \approx 46.67^\circ\text{C}\).
  3. For \(T = 30\): \(60e^{-kt} = 10\), so \(t = \dfrac{\log 6}{k} = \dfrac{10\log 6}{\log 1.5} \approx 44.2\) minutes.

AnswerAbout \(46.7^\circ\text{C}\) after 20 minutes; it reaches \(30^\circ\text{C}\) after about 44.2 minutes.

Example 2: Radioactive decay

Easy

A radioactive substance loses 20% of its mass in 10 years. Find its half-life.

  1. \(N = N_0e^{-kt}\). After 10 years \(N = 0.8N_0\), so \(e^{-10k} = 0.8\) and \(k = \tfrac{1}{10}\log 1.25 \approx 0.0223\) per year.
  2. Half-life \(= \dfrac{\log 2}{k} = \dfrac{10\log 2}{\log 1.25}\).

AnswerHalf-life \(\approx 31.1\) years

Example 3: Population growth

Easy

A bacterial culture grows at a rate proportional to its size and doubles in 3 hours. How long does it take to triple?

  1. \(N = N_0e^{kt}\) with \(e^{3k} = 2\), so \(k = \tfrac{1}{3}\log 2\).
  2. Triple: \(e^{kt} = 3\), so \(t = \dfrac{\log 3}{k} = \dfrac{3\log 3}{\log 2}\).

AnswerAbout 4.75 hours

Example 4: An RL circuit

Medium

A circuit has \(L = 0.5\) H, \(R = 10\ \Omega\) and a constant emf \(E = 20\) V, switched on at \(t = 0\). Find \(i(t)\), the current at \(t = 0.1\) s, and the time for the current to reach 1 A.

  1. \(0.5\dfrac{di}{dt} + 10i = 20\), that is \(\dfrac{di}{dt} + 20i = 40\). IF \(= e^{20t}\), so \(i\,e^{20t} = 2e^{20t} + c\).
  2. \(i(0) = 0\) gives \(c = -2\): \(i = 2(1 - e^{-20t})\) A. The steady current is 2 A and the time constant is \(\dfrac{L}{R} = 0.05\) s.
  3. At \(t = 0.1\): \(i = 2(1 - e^{-2}) \approx 1.729\) A.
  4. \(i = 1\): \(e^{-20t} = \tfrac{1}{2}\), so \(t = \dfrac{\log 2}{20} \approx 0.0347\) s.

Answer\(i = 2(1 - e^{-20t})\) A; \(i(0.1) \approx 1.73\) A; 1 A after about 0.035 s.

Example 5: An RC circuit

Medium

A resistor \(R = 2000\ \Omega\) and an uncharged capacitor \(C = 50\ \mu\text{F}\) are connected in series to \(E = 100\) V at \(t = 0\). Find the charge and current at \(t = 0.2\) s.

  1. \(C = 50\times 10^{-6} = 5\times 10^{-5}\) F, so \(RC = 0.1\) s and \(CE = 5\times 10^{-3}\) C.
  2. \(q = 5\times 10^{-3}\big(1 - e^{-10t}\big)\) C and \(i = \dfrac{dq}{dt} = 0.05\,e^{-10t}\) A.
  3. At \(t = 0.2\): \(q = 5\times 10^{-3}(1 - e^{-2}) \approx 4.32\times 10^{-3}\) C and \(i = 0.05e^{-2} \approx 6.77\times 10^{-3}\) A.

Answer\(q \approx 4.32\) mC and \(i \approx 6.77\) mA at \(t = 0.2\) s.

Example 6: Damping cases for a spring

Medium

A 1 kg mass hangs on a spring with \(k = 9\) N/m. Classify the motion for damping constants \(c = 10\), \(6\) and \(2\) N s/m. For \(c = 2\), find \(x(t)\) if \(x(0) = 0.1\) m and \(x'(0) = 0\).

  1. \(4mk = 36\). \(c = 10\): \(100 > 36\), over-damped. \(c = 6\): \(36 = 36\), critically damped. \(c = 2\): \(4 < 36\), under-damped.
  2. For \(c = 2\): \(x'' + 2x' + 9x = 0\), \(r = -1 \pm 2\sqrt{2}\,i\). So \(x = e^{-t}\big(A\cos 2\sqrt2 t + B\sin 2\sqrt2 t\big)\).
  3. \(x(0) = A = 0.1\). \(x'(0) = -A + 2\sqrt2 B = 0\), so \(B = \dfrac{0.1}{2\sqrt 2} \approx 0.0354\).

Answer\(x = e^{-t}\big(0.1\cos 2\sqrt2 t + 0.0354\sin 2\sqrt2 t\big)\) m, an oscillation that dies out.

Example 7: An LCR circuit

Exam level

An LCR circuit has \(L = 0.1\) H, \(R = 20\ \Omega\), \(C = 10^{-3}\) F and a constant emf of 10 V. At \(t = 0\), \(q = 0\) and \(i = 0\). Find \(q(t)\) and \(i(t)\), and the largest current.

  1. \(0.1q'' + 20q' + 1000q = 10\), so \(q'' + 200q' + 10^4q = 100\).
  2. \(r^2 + 200r + 10^4 = (r + 100)^2\): critically damped (\(R^2 = 400 = \tfrac{4L}{C}\)). CF \(= (A + Bt)e^{-100t}\), PI \(= \dfrac{100}{10^4} = 0.01\).
  3. \(q(0) = 0\): \(A = -0.01\). \(q'(0) = B - 100A = 0\): \(B = -1\). So \(q = 0.01 - (0.01 + t)\,e^{-100t}\) C.
  4. \(i = \dfrac{dq}{dt} = -e^{-100t} + 100(0.01 + t)\,e^{-100t} = 100t\,e^{-100t}\) A.
  5. \(\dfrac{di}{dt} = 100e^{-100t}(1 - 100t) = 0\) at \(t = 0.01\) s, where \(i = e^{-1} \approx 0.368\) A.

Answer\(q = 0.01 - (0.01 + t)e^{-100t}\) C, \(i = 100t\,e^{-100t}\) A; largest current \(\approx 0.368\) A at \(t = 0.01\) s.

Example 8: Orthogonal trajectories

Medium

Find the orthogonal trajectories of the parabolas \(y = ax^2\).

  1. \(\dfrac{dy}{dx} = 2ax\). Eliminate \(a = \dfrac{y}{x^2}\): \(\dfrac{dy}{dx} = \dfrac{2y}{x}\).
  2. Replace \(\dfrac{dy}{dx}\) by \(-\dfrac{dx}{dy}\): \(-\dfrac{dx}{dy} = \dfrac{2y}{x}\), so \(x\,dx + 2y\,dy = 0\).
  3. Integrate: \(\dfrac{x^2}{2} + y^2 = \text{const}\).

AnswerThe ellipses \(x^2 + 2y^2 = c\)

Vipul Sir's tip

Convert every quantity to SI units in the first line of your answer: microfarads to farads, millihenries to henries. Pick one time unit, minutes or seconds, and keep it all the way through. Then write the unit next to the final number. This habit alone saves you from answers that are out by a factor of a thousand.

05

Common mistakes

1. Writing \(\dfrac{dT}{dt} = -kT\) for cooling

Newton's law is about the temperature difference: \(\dfrac{dT}{dt} = -k(T - T_s)\). Using \(-kT\) in Example 1 would make the body cool towards \(0^\circ\text{C}\) instead of the room temperature of \(20^\circ\text{C}\).

2. Not converting \(\mu\text{F}\) or mH

In Example 5, using \(C = 50\) instead of \(5\times 10^{-5}\) F gives \(RC = 10^5\) s instead of 0.1 s. The answer is then out by a factor of a million.

3. Replacing \(\dfrac{dy}{dx}\) before eliminating the constant

For \(y = ax^2\), if you replace \(2ax\) by \(-\dfrac{dx}{dy}\) while \(a\) is still in it, you get a family that depends on the old constant. Eliminate \(a\) first to reach \(\dfrac{dy}{dx} = \dfrac{2y}{x}\), then swap.

06

Practice questions

Try each one on paper before you open the answer.

Q1Tea at \(90^\circ\text{C}\) in a room at \(25^\circ\text{C}\) cools to \(70^\circ\text{C}\) in 5 minutes. What is its temperature after 10 minutes?

\(T - 25 = 65e^{-kt}\) with \(e^{-5k} = \tfrac{45}{65} = \tfrac{9}{13}\).

At 10 minutes: \(25 + 65\left(\tfrac{9}{13}\right)^2 = 25 + \tfrac{405}{13} \approx 56.2^\circ\text{C}\).

Q2Carbon-14 has a half-life of 5730 years. What fraction of a sample remains after 2000 years?

\(N = N_0\cdot 2^{-t/5730}\).

\(2^{-2000/5730} \approx 0.785\), so about 78.5% remains.

Q3An RL circuit has \(L = 2\) H, \(R = 4\ \Omega\), \(E = 12\) V and \(i(0) = 0\). Find \(i(t)\) and \(i(1)\).

\(\dfrac{di}{dt} + 2i = 6\), so \(i = 3(1 - e^{-2t})\) A.

\(i(1) = 3(1 - e^{-2}) \approx 2.59\) A.

Q4A charged capacitor \(C = 100\ \mu\text{F}\) discharges through \(R = 5\ \text{k}\Omega\). How long until its charge halves?

\(R\dfrac{dq}{dt} + \dfrac{q}{C} = 0\) gives \(q = q_0e^{-t/RC}\), with \(RC = 5000\times 10^{-4} = 0.5\) s.

\(e^{-2t} = \tfrac{1}{2}\), so \(t = 0.5\log 2 \approx 0.347\) s.

Q5Classify \(x'' + 5x' + 4x = 0\) and solve it with \(x(0) = 1\), \(x'(0) = 0\).

\(25 > 16\): over-damped. Roots \(-1, -4\), so \(x = Ae^{-t} + Be^{-4t}\).

\(A + B = 1\), \(-A - 4B = 0\): \(x = \tfrac{4}{3}e^{-t} - \tfrac{1}{3}e^{-4t}\).

Q6Find the orthogonal trajectories of the hyperbolas \(xy = c\).

\(x\dfrac{dy}{dx} + y = 0\), so \(\dfrac{dy}{dx} = -\dfrac{y}{x}\). Swap: \(\dfrac{dx}{dy} = \dfrac{y}{x}\), so \(x\,dx = y\,dy\).

\(y^2 - x^2 = k\), another family of rectangular hyperbolas.

Stuck on a question?

Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.

07

Frequently asked questions

What is the formula for Newton's law of cooling?

\(\dfrac{dT}{dt} = -k(T - T_s)\), which solves to \(T = T_s + (T_0 - T_s)e^{-kt}\). \(T_s\) is the temperature of the surroundings and \(k > 0\) is found from the data.

What is the time constant of an RL or RC circuit?

\(\dfrac{L}{R}\) for an RL circuit and \(RC\) for an RC circuit, both in seconds. After one time constant a charging circuit is at about 63% of its final value.

What is the difference between over-damped, critically damped and under-damped?

It depends on the sign of \(c^2 - 4mk\) (or \(R^2 - \tfrac{4L}{C}\)). Positive: over-damped, returns slowly with no oscillation. Zero: critically damped, the fastest return with no oscillation. Negative: under-damped, oscillates with shrinking amplitude.

How do you find orthogonal trajectories?

Form the differential equation of the family by eliminating the constant, replace \(\dfrac{dy}{dx}\) by \(-\dfrac{dx}{dy}\), and solve. In polar form, replace \(r\dfrac{d\theta}{dr}\) by \(-\dfrac{1}{r}\dfrac{dr}{d\theta}\).

Related lessons

← All 12 Linear Algebra & DE topics
Vipul Sir
Written by Vipul Sir

Vipul Sir has taught mathematics for over 15 years to HSC, CBSE, ICSE, IGCSE/IB, Diploma, Engineering and BSc students at VVS Classes in Goregaon and Vile Parle, Mumbai. He teaches every class himself, concepts first and exam technique second.

Linear Algebra and Differential Equations

Get Linear Algebra & DE right, with Vipul Sir beside you.

Concept-first classes in small batches in Goregaon and Vile Parle, or online. Your first class is free.

WhatsApp↗