01 / 21

Common Setup
Pitfalls

Master the three traps that derail most differential equation solutions: sign errors, initial conditions, and unit mismatches.

Differential Equations

Why Setup Is Everything

Most errors in differential equations do not come from integration or algebra: they happen before you even begin solving. A wrong sign, a misread initial condition, or inconsistent units will propagate through every subsequent step and produce a final answer that looks plausible but is completely wrong.

The Three Major Pitfalls

✕ Sign Errors
Flipping a sign in \(\frac{dy}{dt}\) reverses growth into decay or vice versa.
★ Initial Conditions
Applying \(y(t_0) = y_0\) at the wrong stage or with the wrong value selects the wrong particular solution.
★ Unit Mismatches
Mixing seconds with minutes, or grams with kilograms, makes every coefficient meaningless.

Pitfall 1: Sign Errors

Consider Newton's Law of Cooling. The temperature of an object decreases toward ambient temperature \(T_a\). The correct model is:

The negative sign ensures that when \(T > T_a\), the derivative \(\frac{dT}{dt} < 0\): the object cools down. Omitting it produces exponential growth instead of decay.

\(t\) \(T\) \(T_a\) Correct (decay) Wrong (growth) \(T_0\)

Common Sign Traps

1
Cooling vs. heating: cooling needs \(-k\); heating toward a hot source also uses \(-k(T - T_a)\), but now \(T < T_a\) makes the derivative positive automatically.
2
Draining tanks: volume decreases, so \(\frac{dV}{dt}\) must be negative. Writing a positive outflow rate without the minus sign doubles the error.
3
Population with harvesting: \(\frac{dP}{dt} = rP\) \(- H\). Forgetting the subtraction turns removal into addition.

Pitfall 2: Initial Conditions

The general solution to a first-order ODE contains one arbitrary constant \(C\). The initial condition \(y(t_0) = y_0\) pins down the unique particular solution from the infinite family of curves.

\(t\) \(y\) \(y(0) = y_0\) Family of solutions (varying C) Particular solution

When to Apply ICs

1
Separate and integrate (or use the appropriate method) to obtain the general solution with constant \(C\).
2
Substitute the initial condition \(y(t_0) = y_0\) into the general solution to solve for \(C\).
3
Write the particular solution with the determined value of \(C\).

Pitfall 3: Unit Mismatches

Every term in a differential equation must have the same units. If \(\frac{dy}{dt}\) has units of \(\text{kg/s}\), then every term on the right side must also reduce to \(\text{kg/s}\).

✓ Consistent
\(\dfrac{dT}{dt}\,[\text{°C/min}] = -k\,[\text{min}^{-1}] \cdot (T - T_a)\,[\text{°C}]\)
✕ Inconsistent
\(\dfrac{dT}{dt}\,[\text{°C/min}] = -k\,[\text{hr}^{-1}] \cdot (T - T_a)\,[\text{°C}]\)

The Dimensional Consistency Rule

\(\dfrac{dy}{dt}\) [\text{quantity / time}] = \(k\,[\text{time}^{-1}] \times (y - y_{\text{eq}})\,[\text{quantity}]\) = [\text{quantity / time}] ✓ Dimensions must match

This rule is your first line of defense. After writing an ODE, check units before solving. If they don't match, something is wrong in the model setup.

General vs. Particular Solutions

General Solution Particular Solution
Form \(y = Ce^{kt} + \text{...}\) \(y = 3e^{2t} + 5\)
Constants Contains arbitrary \(C\) \(C\) is determined
IC applied? Not yet Yes
Represents Infinite family of curves One specific curve
Pitfall Stopping here (forgetting IC) Applying IC too early

The Setup Checklist

1
Identify the variable: What quantity changes? What does it depend on? Define \(y\) and \(t\) explicitly.
2
Write units for every term: State the units of \(y\), \(t\), and each constant. Verify dimensional homogeneity.
3
Check the sign: If the quantity should decrease, confirm that the derivative is negative in that region.
4
Solve for the general solution: Integrate/apply the appropriate method, keeping the constant \(C\).
5
Apply the initial condition last: Substitute \(y(t_0) = y_0\) into the general solution to find \(C\).

Example 1: Radioactive Decay

A sample has 200 g of a radioactive isotope. The decay constant is \(k = 0.03\,\text{hr}^{-1}\). Find the amount remaining after \(t\) hours, given \(N(0) = 200\).

Example 2: Mixing Problem

A 100-L tank initially contains pure water. Brine with 0.5 kg/L of salt flows in at 3 L/min. The well-mixed solution drains at 3 L/min. Find the salt amount \(S(t)\).

Example 3: Unit Conversion Trap

A population grows at a rate of \(r = 0.02\,\text{year}^{-1}\). Data gives initial population at \(t = 0\) months. A student writes \(\frac{dP}{dt} = 0.02P\) with \(t\) in months.

Common Mistakes Summary

✕ Dropped Negative
Writing \(\frac{dT}{dt} = k(T - T_a)\) for cooling instead of \(-k(T - T_a)\). The solution blows up instead of decaying.
✕ Early IC
Substituting \(y(0) = 5\) before integrating, eliminating the constant \(C\) and getting a wrong particular solution.
✕ Mixed Units
Using \(k\) in \(\text{hours}^{-1}\) with \(t\) in minutes. The solution is off by a factor of 60.

Pitfall Summary Table

Pitfall What Goes Wrong Prevention
Sign Error Growth where there should be decay (or vice versa) Check: does the sign of \(\frac{dy}{dt}\) match the physical behavior?
IC Timing Wrong value of \(C\); wrong particular solution Apply IC only after obtaining the general solution
IC Value Misinterpreting the initial value or time from the problem statement (e.g., using \(t=1\) instead of \(t=0\)) Circle the IC in the problem statement; confirm variable and time
Unit Mismatch Coefficients are numerically wrong; predictions are off by orders of magnitude Write units of every coefficient; verify dimensional homogeneity

Question 1 of 5

A hot object cools in a room at \(T_a = 20\)°C. Which ODE correctly models Newton's Law of Cooling?

Question 2 of 5

You solve \(\frac{dy}{dt} = 2y\) and get the general solution \(y = Ce^{2t}\). The initial condition is \(y(0) = 7\). What is the particular solution?

Question 3 of 5

A decay constant is given as \(k = 0.1\,\text{hr}^{-1}\). A student measures time in minutes. What value of \(k\) should they use?

Question 4 of 5

A student solves \(\frac{dS}{dt} = 1.5 - 0.03S\) and obtains \(S(t) = 50 + Ce^{-0.03t}\). They then write \(S(0) = 0 \Rightarrow C = -50\). What did they do correctly?

Question 5 of 5

In the equation \(\frac{dV}{dt} = -2\sqrt{V}\), what does the negative sign physically indicate?