HSC Study

Solving Differential Equations

Solving first order differential equations of the forms dy/dx = f(x), dy/dx = g(y) and dy/dx = f(x)g(y) by separating variables, recognising first order linear equations, and modelling with exponential and logistic equations.

55 min · Calculus

Assumes you have read Differential Equations and Direction Fields and Calculus of Inverse Functions.

The full teaching. Start here.

The short version

Separation of variables for :

Integrate both sides, add one constant, use the initial condition, then rearrange for .

  • : just integrate.
  • : , integrate with respect to .

Models:

EquationSolutionBehaviour
growth or decay
approaches if
S-curve up to

Three forms, one idea

Every method here comes down to getting all the terms on one side with , all the terms on the other with , and integrating.

dy/dx = f(x)

The right side involves only , so integrate directly: . This is the antidifferentiation you already know, now with an initial condition to find .

CheckpointAnswer before reading on.

Solve given when , and hence find when .

Hint 1.

Hint 2, .

Hint 3.

CheckpointAnswer before reading on.

Solve with . Find to four decimal places.

Hint 1.

Hint 2.

Hint 3.

dy/dx = g(y)

Now the right side involves only , and you cannot integrate with respect to because is an unknown function of . Flip both sides instead:

Worked example3 marks

The modified exponential model

Solve given when .

Flip

The right side depends only on y.

, so .

Rearrange

Exponentiate; the constant becomes a multiplier.

, so for some constant .

Initial condition

x = 0, y = 8.

, so .

Answer

Is that answer sensible?

and . Also .

Whenever you exponentiate, . The constant multiplies; it does not add. Rename as a single constant .

CheckpointAnswer before reading on.

To solve , a standard first step is:

Select one answer

Hint 1The right side has no x to integrate.

Hint 2Flip both sides.

Hint 3.

CheckpointAnswer before reading on.

Solve with .

Select one answer

Hint 1.

Hint 2.

Hint 3.

CheckpointAnswer before reading on.

Solve with .

Select one answer

Hint 1.

Hint 2.

Hint 3.

CheckpointAnswer before reading on.

Solve with . Find to four decimal places.

Hint 1.

Hint 2.

Hint 3.

CheckpointAnswer before reading on.

Solve with .

Select one answer

Hint 1.

Hint 2.

Hint 3.

Exam question

Harder · about 4 min

3 marks

Solve for with , and find .

Hint 1.

Hint 2, .

Hint 3.

Where students lose marks on this one
  • Integrating to 2√y.

    Why it happens: Forgetting the factor of a half.

    .

Written for this site.

dy/dx = f(x)g(y): separation of variables

Divide both sides by , then integrate each side with respect to its own variable:

(The left side is the chain rule in reverse: .)

Worked example3 marks

Separating variables

Solve for , given when .

Separate

Multiply by y: the y goes with dy, the x terms with dx.

Integrate both sides

One constant is enough; two would combine into one anyway.

Use the condition

x = 2, y = 3.

, so , and .

Answer

(positive root, since ).

Is that answer sensible?

, and .

Common mistake

Separating dy/dx = xy as ∫y dy = ∫x dx.

Why it happens: Moving y by multiplying instead of dividing.

To get on the left with , divide by it: . Check any separation by putting it back together: is the original equation; is not.

CheckpointAnswer before reading on.

A student separates as . What is wrong?

Select one answer

Hint 1Separating means dividing both sides by y.

Hint 2.

Hint 3The y goes into the denominator.

CheckpointAnswer before reading on.

Solve with , and find to four decimal places.

Hint 1.

Hint 2.

Hint 3.

CheckpointAnswer before reading on.

Solve with , and find when .

Hint 1.

Hint 2.

Hint 3Take the positive root since .

CheckpointAnswer before reading on.

The general solution of is:

Select one answer

Hint 1.

Hint 2.

Hint 3.

CheckpointAnswer before reading on.

When separating we divide by . Which solution can this step lose?

Select one answer

Hint 1Division needs a non-zero divisor.

Hint 2Is y = 0 a solution?

Hint 3Check: .

Exam question

Harder · about 5 min

3 marks

Solve with , and find when .

Hint 1.

Hint 2, .

Hint 3.

Where students lose marks on this one
  • Integrating $y^{-2}$ as $\ln y^{2}$.

    Why it happens: Using the log rule on a power.

    .

Written for this site.

First order linear equations

A first order equation is linear when and appear only to the first power and are not multiplied together:

The growth model and the modified model are both of this form, with known solutions. You met them as Year 11 exponential models; now you can derive them by separating variables, as in the worked example above. (A general method for all linear equations, the integrating factor, is beyond this course.)

CheckpointAnswer before reading on.

Which of these is a first order linear differential equation?

Select one answer

Hint 1Linear: and appear only to the first power.

Hint 2No products like y times dy/dx.

Hint 3Form .

CheckpointAnswer before reading on.

The general solution of with is:

Select one answer

Hint 1Rate proportional to size.

Hint 2Exponential.

Hint 3.

CheckpointAnswer before reading on.

An investment grows continuously according to ( in years). How long does it take to double? Give your answer to four decimal places.

Hint 1.

Hint 2.

Hint 3.

Exam question

Harder · about 5 min

3 marks

A cup of tea cools according to , where is in °C and in minutes. Initially , and after minutes . Find after minutes.

Hint 1.

Hint 2, so .

Hint 3.

Where students lose marks on this one
  • Answering $20$.

    Why it happens: Thinking the difference halves to zero.

    The difference halves every 10 minutes: 70, 35, 17.5.

Written for this site.

CheckpointAnswer before reading on.

For the tea with and , how many minutes until ? Give your answer to two decimal places.

Hint 1.

Hint 2.

Hint 3.

Exam question

Harder · about 4 min

2 marks

A tank holds salt water. Fresh water flows in and the mixture flows out so that the mass of salt grams satisfies , with and in minutes. Find the mass of salt after minutes, to four decimal places.

Hint 1.

Hint 2.

Hint 3.

Where students lose marks on this one
  • Treating the rate as constant.

    Why it happens: Computing $200-\frac{200}{50}\times 25$.

    The rate shrinks as the salt decreases.

Written for this site.

The logistic equation

Unlimited exponential growth is unrealistic: food, space or customers run out. The logistic equation builds that limit in:

When is small, the bracket is close to and growth is nearly exponential. As approaches the carrying capacity , the bracket approaches and growth stops. The same equation models a rumour or disease spreading through a fixed population, a chemical reaction using up its reactant, or a new product saturating a market.

tP1000500100steepest: P = 500carrying capacity
The logistic solution . Growth is fastest at half the carrying capacity.

Worked example4 marks

Solving the logistic equation

A population satisfies with . Using , find as a function of .

Rewrite and separate

Write the right side as a single fraction so the given identity can be used.

, so .

Integrate using the identity

Watch the negative from the chain rule on 1000 − P.

(for ).

Initial condition

t = 0, P = 100.

, so , giving .

Rearrange for P

Cross multiply, collect the P terms.

, so and .

Answer

(dividing top and bottom by ).

Is that answer sensible?

, and as , so , the carrying capacity.

CheckpointAnswer before reading on.

For the logistic equation , what is the carrying capacity?

Select one answer

Hint 1Set dP/dt = 0.

Hint 2 or .

Hint 3The stable one.

CheckpointAnswer before reading on.

For , at what population is the growth rate greatest?

Select one answer

Hint 1The rate is a quadratic in P.

Hint 2Roots at 0 and 500.

Hint 3Vertex halfway.

CheckpointAnswer before reading on.

A population follows . Find when , to two decimal places.

Hint 1.

Hint 2.

Hint 3Divide.

CheckpointAnswer before reading on.

For , find when , to four decimal places.

Hint 1.

Hint 2.

Hint 3.

CheckpointAnswer before reading on.

In a school of students, a rumour spreads at a rate proportional to the product of the number who have heard it, , and the number who have not. Which equation models this?

Select one answer

Hint 1Those who have not heard: N − R.

Hint 2Product.

Hint 3Constant of proportionality k.

Exam question

Hardest asked · about 6 min

3 marks

Given that , solve with , and find to four decimal places.

Hint 1.

Hint 2, .

Hint 3.

Where students lose marks on this one
  • Integrating $\frac{1}{1-y}$ as $\ln(1-y)$.

    Why it happens: Missing the negative from the chain rule.

    .

Written for this site.

Exam question

Hardest asked · about 5 min

3 marks

Show that satisfies . (3 marks)

Hint 1, so .

Hint 2.

Hint 3Multiply by that.

Where students lose marks on this one
  • Sign error in the chain rule.

    Why it happens: The derivative of $e^{-kt}$ is $-ke^{-kt}$.

    Two negatives make the derivative positive.

Written for this site.

What lifts this to a Band 6

Logistic questions almost always give the partial fraction identity. The marks are lost in the algebra afterwards. Keep the constant as a logarithm () until the end, combine the logs into one, exponentiate once, and check your final answer at and as .

Where the logistic curve came from

The logistic equation was proposed by the Belgian mathematician Pierre-François Verhulst in the 1830s and 1840s, as a response to the claim that populations grow exponentially without limit. His S-shaped curve reappears across science: in how a new technology spreads, how an enzyme reaction proceeds, and (as the logistic function) in the output layer of many statistical and machine learning models, where it turns any number into a probability between and .