← Differential Equations home

Unit 1: First Order Equations

Separation of variables

Build a model first, then learn the method that matches it.

Symbolic model and dimensionsdydt=g(t)h(y),∫dyh(y)=∫g(t) dt\frac{dy}{dt}=g(t)h(y),\quad\int\frac{dy}{h(y)}=\int g(t)\,dt[dydt]=[y][t]=[f],y′=ry ⟹ [r]=[t]−1\left[\frac{dy}{dt}\right]=\frac{[y]}{[t]}=[f],\quad y'=r y\ \Longrightarrow\ [r]=[t]^{-1}

For an abstract equation the coordinates can be dimensionless. For a physical model, assign a unit to the state and time first; the right-hand side must have units of state per time. Arguments of logarithms and exponentials must be dimensionless.

y(t)=y0ert,y(2 h)=(5 kg)e(0.3 h−1)(2 h)≈9.11059 kgy(t)=y_0e^{rt},\quad y(2\,\mathrm h)=(5\,\mathrm{kg})e^{(0.3\,\mathrm{h^{-1}})(2\,\mathrm h)}\approx9.11059\,\mathrm{kg}

This example models proportional growth with constant r; it does not describe a conserved total mass in a closed system.

Lesson Progress
0 / 0 complete

Big idea

A separable equation is one where you can pull the variables apart.
You rearrange the equation so the y-stuff is with dydy and the t-stuff is with dtdt, then integrate both sides.

IDEA

What makes an equation separable?

The pattern to look for

You want to rewrite the DE so each variable lives on its own side.

A common separable form is:

dydt=g(t)h(y)\frac{dy}{dt} = g(t)h(y)

Then you separate:

dyh(y)=g(t) dt\frac{dy}{h(y)} = g(t)\,dt

Quick check

choose one
Which equation is already in a separable-friendly form?

WALKTHROUGH

See the separation happen

Interactive: separate step by step

Watch how a separable equation gets rewritten into something you can integrate.

Start

Begin with dydt=ty\frac{dy}{dt} = ty.

METHOD

The separable equation workflow

1) Separate variables

Move all y terms with dydy and all t terms with dtdt.

2) Integrate both sides

Once separated, integrate each side like a regular calculus problem.

3) Simplify / solve for y

After integrating, rearrange if needed to get an explicit formula for y.

4) Use the initial condition

If the problem gives something like y(0)=2y(0)=2, plug it in to find the constant.

PRACTICE

Practice: do the method

Practice progress

Loading...

Quick check

choose one
If dydt=ty\frac{dy}{dt} = ty, what is the correct separated form?

Quick check

choose one
After separating dyy=t dt\frac{dy}{y} = t\,dt, what do you get after integrating?

3) Initial condition

keyword check

Why do we use an initial condition after integrating a separable equation?

Matched concepts: 0/2

4) Explain the logic

keyword check

In your own words, what is the main idea behind the separable equations method?

Matched concepts: 0/2

WHAT'S NEXT

Separation is a solving method

Unlike slope fields, separable equations give you a direct way to compute formulas for solutions. Later, you’ll connect this method to growth, decay, and logistic models.

A deeper application

Heat a room with temperature-dependent losses

A room starts at 20°C with outdoors held at 20°C. A 3 kW heater runs continuously; effective heat capacity is 60 kJ/K and heat loss is UA(T − T∞), with UA = 100 W/K. Derive the trajectory, find when it reaches 40°C, and calculate its temperature at the adjustable time.

Synthesis challenge

Compare two scenarios and defend the difference

First calculate scenario A. Then change only time from 2 h to 3.2 h. Predict the direction, calculate scenario B, and find the signed difference B − A in the model’s reported quantity (units). Explain whether a proportionate change in the input produces a proportionate change in the output.

Other inputs: Initial amount: 2 units. The difference concerns the model’s displayed answer, not necessarily the graph’s vertical coordinate.

Explore the comparison and worked solution
Time (h) versus Amount. Solution. Selected solution value: 3.64424 units. The equation gives a family of solutions. The initial condition selects one trajectory through the slope field.006.05312.0996AmountTime (h)
Solution

solution value
Set up before calculating

Symbolic relationship

y′=0.3y,y(0)=y0,y(t)=y0e0.3ty'=0.3y,\quad y(0)=y_0,\quad y(t)=y_0e^{0.3t}

Dimensions and units

[y′]=[y]/h,[0.3]=h−1[y']= [y]/\mathrm h,\quad[0.3]=\mathrm{h^{-1}}
Timeq1=(2 h)q_{1}=\left(2\,\mathrm{h}\right)
Initial amountq2=(2 units)q_{2}=\left(2\,\mathrm{units}\right)

The result is reported in units. Convert inputs to the model’s unit system before evaluating.

y(2)=2e0.3(2)=3.64424y(2)=2e^{0.3(2)}=3.64424

The equation gives a family of solutions. The initial condition selects one trajectory through the slope field.

Assumptions, units, and limits

A first-order initial-value problem with constant proportional growth. The derivative specifies a rate, not the value itself.

Slope field for ode, with current initial-value trajectory. Segment angles account for axis scale.State (same units as main plot)Time · 0 to 20 h

Each segment gives the local rate at that time and state. The red trajectory follows the chosen initial condition; Euler uses finite tangent steps.

The controls specify a new scenario. Curves are calculated from the equations; physical illustrations are schematic.

Set up before calculating

Symbolic relationship

y′=0.3y,y(0)=y0,y(t)=y0e0.3ty'=0.3y,\quad y(0)=y_0,\quad y(t)=y_0e^{0.3t}

Dimensions and units

[y′]=[y]/h,[0.3]=h−1[y']= [y]/\mathrm h,\quad[0.3]=\mathrm{h^{-1}}
Timeq1=(2 h)q_{1}=\left(2\,\mathrm{h}\right)
Initial amountq2=(2 units)q_{2}=\left(2\,\mathrm{units}\right)

The result is reported in units. Convert inputs to the model’s unit system before evaluating.

  1. Evaluate the symbolic relationship using scenario A, keeping the displayed units on its inputs.y(2)=2e0.3(2)=3.64424y(2)=2e^{0.3(2)}=3.64424
  2. Change only the selected input and recompute scenario B.y(3.2)=2e0.3(3.2)=5.22339y(3.2)=2e^{0.3(3.2)}=5.22339
  3. Subtract like quantities.ΔR=RB−RA=(5.22339 units)−(3.64424 units)=(1.57916 units)\Delta R=R_B-R_A=\left(5.22339\,\mathrm{units}\right)-\left(3.64424\,\mathrm{units}\right)=\left(1.57916\,\mathrm{units}\right)

The equation gives a family of solutions. The initial condition selects one trajectory through the slope field.

Walk through the assumptions

What we assumed: A first-order initial-value problem with constant proportional growth. The derivative specifies a rate, not the value itself.

What changes: Treat the domain, timing, and constraints as part of the model. If an input leaves the stated range or the governing relationship changes, the original result is no longer justified. Rebuild the equation with the changed condition, then compare predictions while holding the other inputs fixed.