Scribe logoScribeNotes & practice
Sign inStart free
  1. Notes
  2. ›IB Mathematics: Analysis and Approaches
  3. ›5 Calculus
  4. ›5.18 First-order differential equations

IB Mathematics: Analysis and Approaches · Topic 5 · Calculus

5.18 First-order differential equations

Solve separable first-order differential equations, interpret their solutions in context, and verify them by substitution.

  • 4 min read
  • 5 parts
  • 10 questions
  • Draft
  • HL only
Start a Quick 5 on this topic→Jump to the 10 questions
1/5A differential equation links a quantity to its rate
  1. 1A differential equation links a quantity to its rate
  2. 2Separable equations can be split into x and y sides
  3. 3An initial condition picks one curve from the family
  4. 4A solution describes how a quantity changes in context
  5. 5Substitution verifies that a function is a solution
  6. Check your recall
  7. Practice: 10 questions
1

Part 1 of 5: A differential equation links a quantity to its rate

A cup of tea cools faster when it is much hotter than the room. The cooling rate depends on the current temperature. A differential equation captures this kind of link between a quantity and its rate of change.

A solution is a function that makes the equation true. For example, y=e3xy=e^{3x}y=e3x satisfies dydx=3y\frac{dy}{dx}=3ydxdy​=3y, because both sides equal 3e3x3e^{3x}3e3x. We call the equation first-order when it contains only the first derivative.

Solving the equation means finding every function that fits it. Usually the answer is a whole family of functions rather than a single one.

Key terms · tap one for its definition

differential equation

A differential equation is an equation involving a function and at least one of its derivatives.

solution

A differentiable function that satisfies a differential equation at every point of a specified interval.

Part 1 done

2

Part 2 of 5: Separable equations can be split into x and y sides

Now consider how to solve one. Many first-order equations can be written as dydx=f(x)g(y)\frac{dy}{dx}=f(x)g(y)dxdy​=f(x)g(y). This is a separable equation, because the variables can be moved to opposite sides.

Divide by g(y)g(y)g(y) and treat dxdxdx as a multiplier. Then ∫1g(y) dy=∫f(x) dx\int\frac{1}{g(y)}\,dy=\int f(x)\,dx∫g(y)1​dy=∫f(x)dx. Each side now involves one variable only. Not every equation can be split this way, but many in this course can.

  • Separate: put all yyy terms with dydydy and all xxx terms with dxdxdx.
  • Integrate: integrate both sides with respect to their own variables.
  • Add: include one constant ccc straight after integrating.
  • Rearrange: write yyy in terms of xxx where possible.
Go deeperWhy separation of variables is allowed

Write the equation as 1g(y)dydx=f(x)\frac{1}{g(y)}\frac{dy}{dx}=f(x)g(y)1​dxdy​=f(x) and integrate both sides with respect to xxx. The left side becomes ∫1g(y) dy\int\frac{1}{g(y)}\,dy∫g(y)1​dy, by reversing the chain rule.

So the step of moving dxdxdx across is a shortcut. It always gives the same result as this chain rule argument.

Key term

separable equation

A separable equation is a first-order differential equation that can be written as dydx=f(x)g(y)\frac{dy}{dx}=f(x)g(y)dxdy​=f(x)g(y).

Part 2 done

Quick check

One question on the part you just read

Easy

Identify which of the following is a differential equation.
Show answer and explanation

Answer: C · Worked explanation

A differential equation involves a function and at least one of its derivatives. Only dydx=3y\frac{dy}{dx}=3ydxdy​=3y contains a derivative. The function y=3exy=3e^{x}y=3ex is a possible solution of some equation, not an equation relating yyy to its derivative. Equations such as y=3x+1y=3x+1y=3x+1 are ordinary functions with no derivative inside them.
3

Part 3 of 5: An initial condition picks one curve from the family

Integrating introduces an unknown constant, so one equation has many solutions. Together they form the general solution, a family of curves. Each curve differs only in the value of the constant. Think of the family as copies of one shape, scaled by that constant.

Worked example

Solving a separable equation

Solve dydx=2xy\frac{dy}{dx}=2xydxdy​=2xy given that y=3y=3y=3 when x=0x=0x=0.
  1. 1
    Separate the variables: 1y dy=2x dx\frac1y\,dy=2x\,dxy1​dy=2xdx.
  2. 2
    Integrate both sides: ln⁡∣y∣=x2+c\ln|y|=x^2+cln∣y∣=x2+c.
  3. 3
    Rearrange: y=Aex2y=Ae^{x^2}y=Aex2, where A=±ecA=\pm e^{c}A=±ec.
  4. 4
    Use y=3y=3y=3 at x=0x=0x=0: 3=Ae03=Ae^{0}3=Ae0, so A=3A=3A=3.

Answer: The solution is y=3ex2y=3e^{x^2}y=3ex2.

The extra information, y=3y=3y=3 when x=0x=0x=0, is an initial condition. Without it, the constant stays unknown. The condition fixes the constant and leaves a single curve. That curve is the particular solution.

Figure 1. Every curve satisfies the same differential equation. The initial condition selects the curve through the point (0,3)(0,3)(0,3).

Common mistake

Add ccc straight after integrating. Writing y=ex2+cy=e^{x^2}+cy=ex2+c at the end is wrong, because ex2+c=Aex2e^{x^2+c}=Ae^{x^2}ex2+c=Aex2 and the constant multiplies the exponential.

Key terms · tap one for its definition

general solution

The general solution is the family of all solutions of a differential equation, with one arbitrary constant for a first-order equation.

initial condition

An initial condition is a given pair of values, such as y=3y=3y=3 when x=0x=0x=0, used to fix the arbitrary constant.

particular solution

A particular solution is the single member of the general solution that satisfies the given initial condition.

Part 3 done

4

Part 4 of 5: A solution describes how a quantity changes in context

Now see what a solution tells you. Many real quantities change at a rate proportional to their size. Radioactive decay and population growth are two examples. The model is dNdt=kN\frac{dN}{dt}=kNdtdN​=kN, where kkk is a constant.

Separating the variables gives N=N0ektN=N_0e^{kt}N=N0​ekt, where N0N_0N0​ is the value at t=0t=0t=0. A positive kkk means growth. A negative kkk means decay.

Reading the model in context means giving each symbol its meaning and units. In the example below, ttt is in years and MMM is in grams, so kkk has units year−1\mathrm{year^{-1}}year−1.

Worked example

Interpreting a decay model

A radioactive sample has mass MMM grams after ttt years. It satisfies dMdt=−0.2M\frac{dM}{dt}=-0.2MdtdM​=−0.2M, with M=500M=500M=500 when t=0t=0t=0. Find MMM when t=5t=5t=5.
  1. 1
    Separate the variables: 1M dM=−0.2 dt\frac1M\,dM=-0.2\,dtM1​dM=−0.2dt.
  2. 2
    Integrate: ln⁡M=−0.2t+c\ln M=-0.2t+clnM=−0.2t+c, so M=Ae−0.2tM=Ae^{-0.2t}M=Ae−0.2t.
  3. 3
    Use M=500M=500M=500 at t=0t=0t=0 to get A=500A=500A=500.
  4. 4
    Substitute t=5t=5t=5: M=500e−1M=500e^{-1}M=500e−1.

Answer: The mass is M=500e−1≈184 gM=500e^{-1}\approx184\,\mathrm{g}M=500e−1≈184g.

Each year the mass is multiplied by e−0.2≈0.819e^{-0.2}\approx0.819e−0.2≈0.819. A constant factor per unit time is the mark of exponential change.

Part 4 done

Quick check

One question on the part you just read

Easy

State the first step in solving dydx=xy\frac{dy}{dx}=xydxdy​=xy by separation of variables.
Show answer and explanation

Answer: A · Worked explanation

Separation puts all yyy terms with dydydy and all xxx terms with dxdxdx, giving 1y dy=x dx\frac1y\,dy=x\,dxy1​dy=xdx. Integrating the right side as x2y2\frac{x^2y}{2}2x2y​ wrongly treats yyy as a constant, although yyy depends on xxx. After separating, both sides can be integrated, each with respect to its own variable.
5

Part 5 of 5: Substitution verifies that a function is a solution

Any answer can be checked, and the check catches most errors. A proposed solution is correct if it satisfies the original equation. The process of verification means differentiating the function and substituting into both sides. It works even when you cannot see how the answer was found. It is also a good way to test an answer you are given.

  • Differentiate the proposed function.
  • Substitute the function and its derivative into each side.
  • Confirm that both sides are equal on the stated interval.
  • Check the initial condition, if one is given.

Worked example

Verifying a solution

Verify that y=11−xy=\frac{1}{1-x}y=1−x1​ satisfies dydx=y2\frac{dy}{dx}=y^2dxdy​=y2 with y=1y=1y=1 when x=0x=0x=0.
  1. 1
    Write y=(1−x)−1y=(1-x)^{-1}y=(1−x)−1 and differentiate: dydx=(1−x)−2\frac{dy}{dx}=(1-x)^{-2}dxdy​=(1−x)−2.
  2. 2
    Left side: dydx=1(1−x)2\frac{dy}{dx}=\frac{1}{(1-x)^2}dxdy​=(1−x)21​.
  3. 3
    Right side: y2=1(1−x)2y^2=\frac{1}{(1-x)^2}y2=(1−x)21​, so both sides match.
  4. 4
    Initial condition: at x=0x=0x=0, y=11=1y=\frac11=1y=11​=1.

Answer: The function is a solution for x<1x<1x<1, where it is defined.

Exam tip

State the interval on which your solution is valid. A solution only counts where the function and its derivative both exist.

Key term

verification

Verification is substituting a proposed solution and its derivative into an equation to confirm that both sides are equal.

Note read

Check your recall[15 marks]

6 written questions. Answer each one in your head or on paper, then open the mark scheme.

  1. 1.State[2 marks]

    State what makes a first-order differential equation separable.

    Show mark schemeHide mark scheme

    Model answer

    It can be written as dydx=f(x)g(y)\frac{dy}{dx}=f(x)g(y)dxdy​=f(x)g(y), so the variables can be separated onto different sides.

    • 1 mark for stating that it can be written in the form dydx=f(x)g(y)\frac{dy}{dx}=f(x)g(y)dxdy​=f(x)g(y)
    • 1 mark for stating that the yyy terms and xxx terms can be separated onto opposite sides
  2. 2.Determine[3 marks]

    Determine the general solution of dydx=4xy\frac{dy}{dx}=4xydxdy​=4xy, giving yyy in terms of xxx.

    Show mark schemeHide mark scheme

    Model answer

    Separate: ∫1y dy=∫4x dx\int\frac1y\,dy=\int4x\,dx∫y1​dy=∫4xdx. Then ln⁡∣y∣=2x2+c\ln|y|=2x^2+cln∣y∣=2x2+c, so y=Ae2x2y=Ae^{2x^2}y=Ae2x2.

    • 1 mark for separating the variables and integrating both sides
    • 1 mark for obtaining ln⁡∣y∣=2x2+c\ln|y|=2x^2+cln∣y∣=2x2+c
    • 1 mark for rearranging to y=Ae2x2y=Ae^{2x^2}y=Ae2x2
  3. 3.Calculate[3 marks]

    The equation dydx=−0.5y\frac{dy}{dx}=-0.5ydxdy​=−0.5y has y=8y=8y=8 when x=0x=0x=0. Calculate yyy when x=2x=2x=2.

    Show mark schemeHide mark scheme

    Model answer

    Separating and integrating gives y=Ae−0.5xy=Ae^{-0.5x}y=Ae−0.5x. Since y=8y=8y=8 at x=0x=0x=0, A=8A=8A=8. Then y=8e−1≈2.94y=8e^{-1}\approx2.94y=8e−1≈2.94.

    • 1 mark for obtaining the general solution y=Ae−0.5xy=Ae^{-0.5x}y=Ae−0.5x
    • 1 mark for using the initial condition to find A=8A=8A=8
    • 1 mark for obtaining y=8e−1≈2.94y=8e^{-1}\approx2.94y=8e−1≈2.94
  4. 4.Explain[2 marks]

    Explain why a first-order differential equation has many solutions and how an initial condition selects one.

    Show mark schemeHide mark scheme

    Model answer

    Integration introduces an arbitrary constant, so each value of the constant gives a different solution curve. An initial condition fixes the constant and so gives the particular solution.

    • 1 mark for stating that integration introduces an arbitrary constant giving a family of solutions
    • 1 mark for stating that the initial condition fixes the constant to give one particular solution
  5. 5.Determine[3 marks]

    Determine whether y=2e3xy=2e^{3x}y=2e3x is a solution of dydx=3y\frac{dy}{dx}=3ydxdy​=3y with y=2y=2y=2 when x=0x=0x=0.

    Show mark schemeHide mark scheme

    Model answer

    Differentiating gives dydx=6e3x\frac{dy}{dx}=6e^{3x}dxdy​=6e3x. Also 3y=6e3x3y=6e^{3x}3y=6e3x, so both sides match. At x=0x=0x=0, y=2e0=2y=2e^0=2y=2e0=2. So it is a solution.

    • 1 mark for differentiating to obtain 6e3x6e^{3x}6e3x
    • 1 mark for showing that 3y3y3y equals 6e3x6e^{3x}6e3x
    • 1 mark for checking that y=2y=2y=2 when x=0x=0x=0
  6. 6.Describe[2 marks]

    Describe what a negative value of kkk means for a quantity NNN that satisfies dNdt=kN\frac{dN}{dt}=kNdtdN​=kN.

    Show mark schemeHide mark scheme

    Model answer

    The quantity NNN decays over time. It is multiplied by a constant factor less than 1 in each equal time interval.

    • 1 mark for stating that NNN decreases, or decays, as ttt increases
    • 1 mark for stating that the decrease is exponential, with a constant factor per unit time

Practice this topic

10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)

0 right0 of 10 answered

Includes the 2 quick checks in the note above.

3.

Easy·Identify[1 mark]

Identify what the general solution of a first-order differential equation contains.
Show answer and explanation

Answer: D · Worked explanation

Solving a first-order equation needs one integration, which introduces one arbitrary constant. Two constants would appear for a second-order equation. An initial condition is what later fixes the constant. Any method for a first-order equation therefore produces one constant, and a general solution is a family of curves.
4.

Medium·Determine[2 marks]

Determine the particular solution of dydx=5y\frac{dy}{dx}=5ydxdy​=5y given that y=2y=2y=2 when x=0x=0x=0.
Show answer and explanation

Answer: D · Worked explanation

Separating gives ln⁡∣y∣=5x+c\ln|y|=5x+cln∣y∣=5x+c, so y=Ae5xy=Ae^{5x}y=Ae5x. The condition y=2y=2y=2 at x=0x=0x=0 gives A=2A=2A=2. The form e5x+1e^{5x}+1e5x+1 wrongly adds the constant instead of using it as a multiplier, and 5e2x5e^{2x}5e2x swaps the coefficients. Check by differentiating: ddx(2e5x)=10e5x=5y\frac{d}{dx}\left(2e^{5x}\right)=10e^{5x}=5ydxd​(2e5x)=10e5x=5y, so the equation holds. The initial condition is also met, since 2e0=22e^0=22e0=2.
5.

Medium·Calculate[2 marks]

A quantity satisfies dNdt=−0.1N\frac{dN}{dt}=-0.1NdtdN​=−0.1N with N=200N=200N=200 when t=0t=0t=0. Calculate NNN when t=10t=10t=10.
Show answer and explanation

Answer: A · Worked explanation

The solution is N=200e−0.1tN=200e^{-0.1t}N=200e−0.1t. At t=10t=10t=10, N=200e−1≈73.6N=200e^{-1}\approx73.6N=200e−1≈73.6. The value 126.4 is the amount lost, 200−73.6200-73.6200−73.6, not the amount remaining, and 27.1 comes from using e−2e^{-2}e−2. After 10 time units the quantity is about 37% of its starting value, since e−1≈0.368e^{-1}\approx0.368e−1≈0.368. Check the size of your answer against this.
6.

Medium·Identify[2 marks]

Identify the function that is a solution of dydx=2y\frac{dy}{dx}=2ydxdy​=2y.
Show answer and explanation

Answer: D · Worked explanation

If y=e2xy=e^{2x}y=e2x then dydx=2e2x=2y\frac{dy}{dx}=2e^{2x}=2ydxdy​=2e2x=2y, so the equation holds for all xxx. The function y=ex2y=e^{x^2}y=ex2 has derivative 2xex22xe^{x^2}2xex2, which is 2xy2xy2xy and not 2y2y2y. Always differentiate the candidate and substitute it into both sides, rather than guessing from its shape. Here the factor 2 in the exponent produces the factor 2 in the derivative.
7.

Medium·Explain[2 marks]

A population PPP in thousands satisfies dPdt=0.03P\frac{dP}{dt}=0.03PdtdP​=0.03P, with ttt in years. Explain what the constant 0.03 means.
Show answer and explanation

Answer: B · Worked explanation

The equation says the rate of change is proportional to the current size, with constant 0.03. So growth speeds up as PPP grows. A fixed increase of 0.03 thousand per year would need a constant rate, not a rate proportional to PPP. The explanation also shows why the model suits growth: a larger PPP gives a larger rate, so growth accelerates.
8.

Hard·Calculate[2 marks]

The equation dydx=y2\frac{dy}{dx}=y^2dxdy​=y2 has y=2y=2y=2 when x=0x=0x=0. Calculate yyy when x=0.25x=0.25x=0.25.
Show answer and explanation

Answer: B · Worked explanation

Separating gives ∫y−2 dy=∫dx\int y^{-2}\,dy=\int dx∫y−2dy=∫dx, so −1y=x+c-\frac1y=x+c−y1​=x+c. Using y=2y=2y=2 at x=0x=0x=0 gives c=−12c=-\frac12c=−21​. Then y=112−xy=\frac{1}{\frac12-x}y=21​−x1​, which is 4 at x=0.25x=0.25x=0.25. The value 3.30 comes from wrongly treating the equation as dydx=2y\frac{dy}{dx}=2ydxdy​=2y. Check: at x=0.25x=0.25x=0.25, 10.5−0.25=4\frac{1}{0.5-0.25}=40.5−0.251​=4, and the denominator stays positive for x<0.5x<0.5x<0.5.
9.

Hard·Calculate[2 marks]

The equation dydx=xy\frac{dy}{dx}=\frac{x}{y}dxdy​=yx​ has y=2y=2y=2 when x=0x=0x=0, with y>0y>0y>0. Calculate yyy when x=3x=3x=3.
Show answer and explanation

Answer: A · Worked explanation

Separating gives y dy=x dxy\,dy=x\,dxydy=xdx, so y22=x22+c\frac{y^2}{2}=\frac{x^2}{2}+c2y2​=2x2​+c. The initial condition gives y2=x2+4y^2=x^2+4y2=x2+4. At x=3x=3x=3, y=13≈3.61y=\sqrt{13}\approx3.61y=13​≈3.61. The value 13 is y2y^2y2, not yyy, and 5 comes from assuming y=x+2y=x+2y=x+2. The solution is valid for every real xxx here, because y2=x2+4y^2=x^2+4y2=x2+4 is always positive.
10.

Hard·Calculate[2 marks]

The equation dydx=3x2y\frac{dy}{dx}=3x^2ydxdy​=3x2y has y=2y=2y=2 when x=0x=0x=0. Calculate yyy when x=1x=1x=1.
Show answer and explanation

Answer: D · Worked explanation

Separating gives ln⁡∣y∣=x3+c\ln|y|=x^3+cln∣y∣=x3+c, so y=Aex3y=Ae^{x^3}y=Aex3, and A=2A=2A=2. Then y=2e1≈5.44y=2e^{1}\approx5.44y=2e1≈5.44. The value 40.2 comes from using 2e32e^{3}2e3, and 8.96 comes from integrating 3x23x^23x2 as 3x22\frac{3x^2}{2}23x2​ instead of x3x^3x3. Check by substitution: dydx=6x2ex3\frac{dy}{dx}=6x^2e^{x^3}dxdy​=6x2ex3, and 3x2y=3x2×2ex33x^2y=3x^2\times2e^{x^3}3x2y=3x2×2ex3, which is the same. The solution is valid for all real xxx.

Keep going

Next topic5.19 Maclaurin seriesPrevious topic5.17 Volumes of revolution

More in Topic 5 · Calculus

  1. 5.11Definite integrals and areasNotes · 10 questions
  2. 5.12First principles and continuityNotes · 9 questions· HL only
  3. 5.13Limits and L'Hôpital's ruleNotes · 10 questions· HL only
  4. 5.14Implicit differentiation and related ratesNotes · 10 questions· HL only
  5. 5.15Derivatives of further functionsNotes · 10 questions· HL only
  6. 5.16Integration by substitution and partsNotes · 10 questions· HL only
  7. 5.17Volumes of revolutionNotes · 10 questions· HL only
  8. 5.18First-order differential equationsNotes · 10 questions· HL only
  9. 5.19Maclaurin seriesNotes · 10 questions· HL only

All IB Mathematics: Analysis and Approaches topics →

Draft: written by Scribe and checked automatically, not yet by a subject reviewer.

Practice questions are original, written by Scribe and checked automatically for correctness.

Topic codes follow the official numbering. Not endorsed by IB Diploma Programme or any exam board.

On this page

0/5 read

  1. 1A differential equation links a quantity to its rate
  2. 2Separable equations can be split into x and y sides
  3. 3An initial condition picks one curve from the family
  4. 4A solution describes how a quantity changes in context
  5. 5Substitution verifies that a function is a solution
  6. Check your recall
  7. Practice: 10 questions
All coursesScribeHow it worksPricingPrivacyTerms

Notes and questions are written by Scribe in our own words. Topic codes follow the official course numbering so you can find your place. Not produced or endorsed by the IB, College Board, AQA, OCR, Pearson Edexcel or any exam board.

© 2026 Scribe

A family of solution curves

y-1.5-1-0.500.511.5-10-505101520x
  • A = 1
  • A = 3
  • A = -1
  • (0, 3)