In this guide
← Maths AA guides

Calculus · AA HL

Differential equations

Recognise separable, homogeneous and linear first-order equations, apply initial conditions and approximate solutions numerically.

Course focus: AA HL: this guide develops additional higher-level content; it is not required for AA SL.

Before you start: Differentiation, integration, logarithms and substitution.

Start with a small example

Build it from the beginning

HL content

A differential equation specifies a relationship involving the rate of change of an unknown function. A solution is a whole function, not a single number. A starting condition selects one function from a family.

A first walkthrough

Solve \(dy/dx=2x\) with y=5 at x=1.

  1. Integrate to get \(y=x^2+C\).
  2. Use the starting point: \(5=1+C\), so \(C=4\).
  3. The solution is \(y=x^2+4\); its derivative and starting value both check.
Try the practice ladder after learning the methods ↓

The foundations behind the method

Understand what the symbols mean

A differential equation relates an unknown function to its rates of change. Its solution is a function, not one number. A general solution contains constants; an initial condition selects a particular solution. The model's domain and any physical restrictions still apply after solving.

How the ideas connect

Separation moves y-dependent terms to one side and x-dependent terms to the other, then integrates. Dividing by a function of y may discard constant equilibrium solutions where that function vanishes. Check those cases in the original equation before dividing and retain them when appropriate.

01

Start with the idea

Build your understanding

A differential equation constrains an unknown function and its rate of change. A general solution describes a family; an initial condition chooses a member. Method selection depends on the equation’s structure, and divisions can discard constant solutions.

Equilibrium solutions

A constant solution can occur where the rate is zero. Check it before dividing by a variable-dependent factor.

Initial conditions

An initial condition applies at a specific input. Substitute it into the integrated family, not into an unrelated derivative formula.

Compare the approaches

Choose by the information in the question, rather than the formula you recognise first.

Separable

When it helpsMove the dependent-variable factors and independent-variable factors to different sides.

Check before using itRecord zero factors that division would exclude.

Linear first order

When it helpsUse an integrating factor after placing the equation in standard form.

Check before using itThe coefficient must match the standard y-term.

Your method plan

  1. Classify the equation and check constant solutions.
  2. Apply the method with domains and constants retained.
  3. Use the initial condition and substitute the solution back into the original equation.
02

Learn the methods

Learn step by step

1. An equation for a function

A differential equation relates an unknown function to its derivatives. Solving it gives a family of functions; an initial condition selects a member. Distinguish the independent variable from the dependent one before separating or substituting.

2. Separable equations

For \(dy/dx=g(x)h(y)\), separate \(dy/h(y)=g(x)dx\) and integrate. Division by h(y) may lose constant equilibrium solutions where \(h(y)=0\), so check those separately. Integrate both sides and apply the initial condition on the same connected solution domain.

Separation

Why this formula works

Dividing by h(y) and multiplying by dx places the dependent-variable expression on one side and the independent-variable expression on the other. Integration then reverses each rate. Division can discard equilibrium solutions, so check \(h(y)=0\) separately.

The formula

\(\int dy/h(y)=\int g(x)dx\), with equilibrium solutions checked separately.

Quick example

For \(y'=xy\) and \(y\ne 0\), \(dy/y=x\) dx gives \(ln|y|=\frac{x^{2}}{2}+C\), hence \(y=Ae^{\frac{x^{2}}{2}}\). \(y=0\) is also a solution.

Worked example: Separable growth

Solve \(y'=2y\) with \(y(0)=3\).

  1. For \(y\ne 0\), separate \(dy/y=2dx\) and integrate: \(\ln|y|=2x+C\).
  2. Write \(y=Ae^{2x}\). The initial value gives \(A=3\).
  3. Therefore \(y=3e^{2x}\). The equilibrium \(y=0\) is another solution of the equation but does not satisfy the given condition.

3. Linear first-order equations

Put the equation in \(y'+P(x)y=Q(x)\) form. Multiply by the integrating factor e^(∫Pdx). The left side becomes the derivative of the factor times y. Integrate, solve for y and use the initial value. This method depends on the equation being linear in y and y′.

Integrating factor

Why this formula works

To turn \(y'+Py\) into the product derivative \((Iy)'/I\), require \(I'/I=P\). Solving that equation gives \(I=e^{\int Pdx}\). Multiplication then converts the entire left side into a single derivative.

The formula

\(I(x)=e^{\int P(x)dx}\) \((Iy)'=IQ\) for \(y'+Py=Q\).

Quick example

For \(y'+2y=4\), \(I=e^{2x}\). Then \((e^{2x}y)'=4e^{2x}\), giving \(y=2+Ce^{-2x}\) after integration.

Worked example: A linear equation

Solve \(y'+y=x\) with \(y(0)=0\).

  1. The integrating factor is \(e^x\), so \((e^xy)^{\prime}=xe^x\).
  2. Integrate by parts: \(e^xy=e^x(x-1)+C\), hence \(y=x-1+Ce^{-x}\).
  3. At zero, \(0=-1+C\), so \(y=x-1+e^{-x}\).

4. Homogeneous substitution

For \(y'=F(\frac{y}{x})\), let \(v=\frac{y}{x}\), so \(y=vx\) and \(y'=v+xv'\). Substitute and separate the resulting equation when possible. Keep \(x\ne 0\) and any other division restrictions. Here “homogeneous” describes dependence on the ratio, not merely a zero right-hand side in a linear equation.

Worked example: A homogeneous substitution

Solve \(y\prime=1+y/x\) for \(x>0\) with \(y(1)=0\).

  1. Let \(v=\frac{y}{x}\), so \(y=vx\) and \(y\prime=v+xv\prime\). Substitute to get \(v+xv\prime=1+v\).
  2. Thus \(v\prime=1/x\) and \(v=\ln x+C\). Multiply by x: \(y=x\ln x+Cx\).
  3. The initial condition gives \(C=0\). The solution is \(y=x\ln x\) on \(x>0\); differentiating gives \(y^{\prime}=1+\ln x\), matching \(1+\frac{y}{x}\).

5. Euler approximation

Starting from an initial point, use the current slope to take a small step. Recalculate the slope at each new approximate point. A smaller step often improves accuracy, but stability and domain still matter. Record the step size and stop at the requested input.

Euler steps follow the current slope

00.5111.522.53xy
  • Exact: y = eˣ
  • Euler steps: h = ½
For y′ = y, y(0) = 1 and step size ½, Euler values are 1, 1.5 and 2.25. The exact curve is eˣ. Each step uses the previous point’s slope, so error accumulates.

Euler step

Why this formula works

Euler uses the tangent-line change \(\Delta y\approx y'\Delta x\) over one short step. Recomputing the slope at each new approximate point adapts the next tangent. It is an approximation rather than an exact integration formula.

The formula

\(x_{n+1}=x_n+h\) \(y_{n+1}=y_n+h f(x_n,y_n)\) for \(y'=f(x,y)\).

Quick example

For \(y'=y\) with \(y(0)=1\) and \(h=0.1\), the first value is 1.1, then 1.21. The second slope is 1.1, not the initial slope 1.

Worked example: Euler steps

Approximate y(0.2) for \(y'=y\), \(y(0)=1\) using \(h=0.1\).

  1. First step: \(y_{1}=1+0.1(1)=1.1\) at \(x=0.1\).
  2. Second: \(y_{2}=1.1+0.1(1.1)=1.21\).
  3. This approximates \(e^{0.2}\approx 1.2214\); it is not an exact solution.

6. Check and interpret

Differentiate the proposed solution and substitute into the original equation. A model solution may blow up or leave the physical domain, so an algebraic expression valid somewhere is not necessarily valid for every time.

Quick formula reference

For revision once you understand the methods above. Check the conditions before using a formula.

Separation

\(\int dy/h(y)=\int g(x)dx\), with equilibrium solutions checked separately.

Return to the explanation →

Integrating factor

\(I(x)=e^{\int P(x)dx}\); \((Iy)'=IQ\) for \(y'+Py=Q\).

Return to the explanation →

Euler step

\(x_{n+1}=x_n+h\), \(y_{n+1}=y_n+h f(x_n,y_n)\) for \(y'=f(x,y)\).

Return to the explanation →

Learn to diagnose an error

Spot the mistake

The statement below is incorrect. Identify the missing condition or reasoning before opening the explanation.

Incorrect reasoning

From \(y'=y(1-y)\), divide by y(1-y) and assume the resulting family includes every solution.

Explain and repair the mistake

The constant solutions y=0 and y=1 were excluded by division. Both give derivative zero and satisfy the original equation. Record them separately before solving the non-equilibrium cases.

03

Connect and apply

Put the ideas together

A more demanding application of this guide’s methods. This is a learning stage; any additional HL content is labelled separately.

Worked application

Keep the equilibrium and solve an initial value

Solve \(dy/dx=2xy\) with \(y(0)=3\), and identify any constant solution of the differential equation.

  1. The constant function \(y=0\) solves the equation, although it does not fit the stated initial value.
  2. For nonzero y, separate: \(dy/y=2x\,dx\), giving \(\ln|y|=x^2+C\).
  3. The nonzero family can be written \(y=Ae^{x^2}\). The initial condition gives \(A=3\), so \(y=3e^{x^2}\).
  4. Differentiating gives \(6xe^{x^2}=2x(3e^{x^2})\), checking the equation. The chosen solution remains positive and never crosses the equilibrium.
Pause and explain

Does division by y prove y=0 is not a solution?

Check your reasoning

No. It only excludes that case from the divided calculation. Test the zero function in the original equation separately.

Common mistakes and how to avoid them

  • Check equilibrium solutions before dividing by a function of y.
  • Apply initial conditions after obtaining the general solution.
  • Euler uses the latest approximate point’s slope.
  • Put a linear equation into standard form first.
04

Practise independently

Build confidence, then apply it

Try each question before opening its hint or solution. If a method is new, return to the walkthrough, then try again. These learning stages describe the practice sequence; additional HL content is labelled separately.

  1. 1

    Build confidence

    HL extension

    Solve \(dy/dx=3\) with y=2 at x=0.

    Need a starting point?

    A constant slope produces a line.

    Show the worked solution
    1. \(y=3x+C\).
    2. The condition gives \(C=2\), so \(y=3x+2\).
  2. 2

    Apply and explain

    HL extension

    Verify that \(y=4e^{2x}\) solves \(dy/dx=2y\).

    Need a starting point?

    Calculate each side independently.

    Show the worked solution
    1. The derivative is \(8e^{2x}\).
    2. The right side is also \(2(4e^{2x})=8e^{2x}\), so the equality holds.
  3. 3

    Check your understanding

    Solve \(y'=2y\) with \(y(0)=3\).

    Show the worked solution

    The family is \(y=Ce^{2x}\), including zero when C=0. The condition gives C=3, so \(y=3e^{2x}\). Differentiation verifies the equation.

  4. 4

    Use the method

    Solve \(y'=3x^{2}\) with \(y(0)=2\).

    Show the worked solution

    Integrate: \(y=x^{3}+C\). The condition gives \(C=2\), so \(y=x^{3}+2\).

Finished? Use the linked question bank below to practise selecting the method without a guide telling you which rule to use.

Using these methods in exam questions

AA Paper 1

No calculator

Practise the algebra and exact values by hand. Keep fractions, surds and multiples of π exact where required. Show the steps that justify the result.

AA Paper 2

GDC required

Use graphing, numerical solving or statistical tools when appropriate. Write the setup before giving the output, and keep extra precision until the final answer.

For this topic: Distinguish a function value from a derivative value. For a tangent give both the point and slope; for an integral show the integrand and limits, then interpret the sign and units.

HL only · GDC required

Paper 3: build a connected argument

Both AA HL and AI HL Paper 3 contain two extended problem-solving questions. A question develops a theme, so keep useful earlier results, test small cases and explain any proposed general rule. A calculator pattern can suggest a result; your mathematical reasoning must support it.

  1. Identify what the first part establishes and record the conditions under which it holds.
  2. When a later part introduces a new definition or model, connect it to methods you already know rather than assuming a new formula must have been memorised.
  3. Check the conclusion against an earlier numerical case and explain its meaning or limitation.

For the first-assessment-2021 courses. IB assessment reference ↗

Find a specific method or formula

Now practise the method

If you opened this guide from a question, return to that tab and try the method without looking at the example. Your answer stays in the question tab.

Practise this subtopic →

Want a broader practice session? Explore IB Maths AA HL practice questions →Try free IB Maths exam-style questions and worked solutions →

Original Arc Practice teaching notes for Maths AA. Core and HL sections are distinguished above. These notes follow the first-assessment-2021 course and are not an official IB publication or a complete syllabus checklist. IB course reference. Report a correction.