On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Introduction to Calculus · Grade 9-12

Introduction to Differential Equations

A differential equation contains an unknown function and one or more of its derivatives, and solving it means finding the function(s) satisfying the relationship — typically a whole family differing by a constant.

General form: F(x,y,y′,y′′,…)=0. Exponential growth/decay: dydt=ky has solution y=Cekt.

Quick Answer

A differential equation contains an unknown function and one or more of its derivatives, and solving it means finding the function(s) satisfying the relationship — typically a whole family differing by a constant. Use it when a problem tells you how a quantity changes rather than what it is: "the population grows at a rate proportional to its size", "the coffee cools faster the hotter it is", "the velocity is 20−9.8t". Find every function that fits, then use a starting value to pick the one you need.

Why This Matters

Most laws of science are stated as rates: Newton's second law, radioactive decay, the spread of a disease, continuously compounded interest. A differential equation turns such a rate law into a formula you can predict with: how long until a drug level halves, how old a bone is, what a balance will be in 10 years. Without the constant of integration and an initial condition, you get the right shape but the wrong curve.

Intuitive Explanation

An ordinary equation like 2x=10 hides a number; a differential equation hides a whole function. dydt=0.03y does not say what y is. It says how y changes: at every moment, y grows at 3% of its current size. You solve it by finding functions whose derivative behaves that way. y=Ce0.03t works for every constant C, since its derivative is 0.03Ce0.03t=0.03y.

That is why solutions come in families. dydx=2x is satisfied by x2, x2+1 and x2−7, because shifting a curve up or down does not change its slopes. Each value of C gives a different curve that obeys the same slope rule. An initial condition picks one: if y(0)=3, only x2+3 passes through (0,3). A rate law together with a starting value is called an initial value problem, and it has a single answer.

Check a proposed solution by substitution, the way you check a root. Does y=e2x satisfy y′′−4y=0? Here y′′=4e2x, and 4e2x−4e2x=0, so it does. The order of a differential equation is its highest derivative, so that one is second order. Order is not about powers: (dydx)3=y is first order even though it contains a cube.

Think of it like this. A differential equation is a recipe for change with no starting point: "every moment, grow by 3% of whatever you have". Start with $100 or with $500 and the same recipe produces different histories; together they form the family of solutions. The initial condition says how much you began with, and that picks out one history.

Core idea. A differential equation relates a function to its derivatives; solving it means finding the function(s) that fit.


When to Use

Use it when a problem gives a rate of change, through words like "grows at a rate proportional to", "decays" or "cools", or through an equation containing y′, dydx or dydt, and asks for the quantity itself or its value at a later time. If the rate depends only on x, integrate directly. If it depends on y as well, use separation of variables or a slope field. If no derivative appears at all, it is ordinary algebra.

Tip. Ask: Does the equation involve an unknown function together with its derivative(s), with the goal of finding that function?

How to Recognize It

Identify the unknown function, look at what its rate of change depends on, and check whether starting values are given.

  1. Does the rate depend only on the input variable, as in dydt=20−9.8t?

    Then one integration solves it, y=20t−4.9t2+C, the plain antiderivative case. If the rate also contains y, as in dydt=0.3y, you need separation of variables or another method.

  2. Is a starting value given, like y(0)=50?

    Yes makes it an initial value problem: find the general family, then use the value to fix C. Without one, the correct answer is the whole family, written with its constant.

  3. Are you asked whether a given function is a solution, rather than to find one?

    Then substitute and compare; no solving is needed. To test y=e3x in y′=3y, compute y′=3e3x and 3y=3e3x: they match, so it is a solution.

  4. Does a second derivative appear, as in y′′=−9y?

    Yes makes it second order, so the general solution has two constants and needs two conditions, such as a starting position and a starting velocity. Here the solutions are y=Acos⁡3x+Bsin⁡3x.

Introduction to Differential Equations compared with Algebraic equation, Antiderivative / indefinite integral, and Initial value problem

All four rows connect a quantity with an unknown or with its rate of change, so they can look like one task. Ask whether a derivative appears, whether the rate depends on y or on x alone, and whether a starting value picks one solution.

Introduction to Differential Equations

Meaning
Use this when an equation describes a quantity through its rate(s) of change and you must recover the underlying function.
Key test
Does the equation involve an unknown function together with its derivative(s), with the goal of finding that function?
Formula
General form: F(x,y,y′,y′′,…)=0. Exponential growth/decay: dydt=ky has solution y=Cekt.
Example
Solve dydx=2x given y(0)=3.

Algebraic equation

Meaning
Has an unknown NUMBER and no derivatives; solving gives values, not functions.
Key test
Use when no rate of change appears.
Formula
x2=4
Example
x=±2

Antiderivative / indefinite integral

Meaning
The simplest DE, dydx=f(x), solved by integrating; general DEs can be far harder.
Key test
Use when the derivative equals a function of x ALONE.
Formula
y=∫f(x) dx
Example
dydx=2x⇒y=x2+C

Initial value problem

Meaning
A DE PLUS a starting condition, which selects one specific solution from the family.
Key test
Use when given a point like y(0)=3 to find C.
Formula
y′=ky, y(0)=y0
Example
decay starting at a known amount

Formula & Notation

General form: F(x,y,y′,y′′,…)=0. Exponential growth/decay: dydt=ky has solution y=Cekt.
An ODE of order n: F(x,y,y′,y′′,…,y(n))=0. An initial value problem (IVP): y′=f(x,y), y(x0)=y0. Existence and uniqueness (Picard-Lindelof): if f and ∂f∂y are continuous near (x0,y0), the IVP has a unique local solution.

How to read it: y′ or dydx = first derivative, y′′ or d2ydx2 = second derivative. Order = highest derivative present. IVP = initial value problem.

Worked Examples

Example 1 — Recognize and solve a simple DE

Easy

Solve dydx=2x given y(0)=3.
Show the steps and the answer
  1. Notice that the right side depends only on x, so y is an antiderivative of 2x.

    When the slope is given purely as a function of x, integrating undoes the derivative.

  2. Integrate: y=∫2x dx=x2+C.

    The +C keeps every curve with this slope rule: x2 shifted up or down.

  3. Use the initial condition: y(0)=02+C=3, so C=3.

    Only one curve in the family passes through (0,3).

  4. Check: ddx(x2+3)=2x, and at x=0 the value is 02+3=3.

    The function satisfies both the equation and the starting value.

Answer: y=x2+3

Takeaway: Integrate to get the family with +C, then let the initial condition choose the one curve you need.

Example 2 — Just an algebraic equation

Standard

Solve 2x=10 — is this a differential equation?
Show the steps and the answer
  1. Look for a derivative: there is no y′, dydx or any other rate in 2x=10.

    Without a derivative it is an algebraic equation, not a differential equation.

  2. Identify the unknown: a single number x, not a function.

    An algebraic equation's solution is a value; a differential equation's solution is a function.

  3. Solve: divide both sides by 2, so x=5.

    Check: 2(5)=10. Compare dydx=10, whose solutions are the functions y=10x+C.

Answer: x=5

Takeaway: No derivative means ordinary algebra with a number as the answer; a derivative means you are looking for a function.

Example 3 — Find the mistake: the lost constant

Application

A ball's height h in metres satisfies dhdt=20−9.8t, and h(0)=2. Ravi writes: "h(t)=20t−4.9t2, so h(1)=15.1 m." Find the mistake and correct it.
Show the steps and the answer
  1. Test Ravi's function at the start: it gives h(0)=0, but the ball starts at 2 m.

    His function has the right slope rule but the wrong starting value.

  2. Restore the constant: h(t)=20t−4.9t2+C.

    Integrating gives a whole family of curves; dropping C silently chose the one through (0,0).

  3. Use the starting height h(0)=2: 0−0+C=2, so C=2 and h(t)=20t−4.9t2+2.

    The initial condition picks the curve that starts at the thrower's hand.

  4. Recompute: h(1)=20−4.9+2=17.1 m.

    Every height Ravi computes is exactly 2 m too low, the size of the missing constant.

Answer: h(t)=20t−4.9t2+2, so h(1)=17.1 m

Takeaway: Keep the +C when you integrate, and use the initial condition to find its value.

Where You'll See It

  • A cooling cup of coffee

    Newton's law of cooling, dTdt=−k(T−20), says coffee cools faster when it is much hotter than a 20 °C room. Its solution is T=20+Ce−kt, and T(0)=90 gives C=70. With k=0.05 per minute, the coffee reaches 55 °C when e−0.05t=0.5, after about 14 minutes.

  • Carbon dating a bone

    Carbon-14 obeys dNdt=−kN, so N=N0e−kt, with a half-life of 5,730 years. A bone that keeps 25% of its original carbon-14 has been through two half-lives, so it is about 11,460 years old.

Common Mistakes

  1. The slip: Dropping the constant of integration

    Instead: the general solution is a family y=…+C; omitting C loses all but one solution.

  2. The slip: Confusing the order

    Instead: the ORDER of a DE is the highest derivative present, not the highest power.

  3. The slip: Expecting a numerical answer

    Instead: a DE's solution is a function (or family of functions), not a single value.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Is y=e3x a solution of dydx=3y?

    Hint: Differentiate y and compare the result with 3y.

  2. Show that y=5cos⁡2x solves y′′+4y=0, and state the order of the equation.

    Hint: Differentiate twice, then substitute into the left side.

  3. Solve dydx=6x2−4 with y(1)=5.

    Hint: Integrate to get a family of solutions, then use the starting value to find C.

  4. For which values of k is y=ekx a solution of y′′−y′−6y=0?

    Hint: Substitute y=ekx, then divide by ekx, which is never 0.

  5. Which of these is a differential equation: y2+3y=10 or y′+3y=10? What kind of answer does each have?

    Hint: Look for a derivative of the unknown.

  6. A student says "(y′)3+y=x is a third-order differential equation." Correct the student.

    Hint: Does the order count the highest power or the highest derivative?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Can a differential equation have no solution, or two solutions through the same point?

Both can happen, though not for the friendly equations in this course. (dydx)2=−1\left(\frac{dy}{dx}\right)^2=-1 has no real solution, since no real slope squares to −1-1. And dydx=3y2/3\frac{dy}{dx}=3y^{2/3} with y(0)=0y(0)=0 has two: y=0y=0 and y=x3y=x^3. When the right side is smooth, as in y′=kyy'=ky, each starting value gives exactly one solution.

How do investigators use a differential equation to estimate a time of death?

Newton's law of cooling, dTdt=−k(T−Troom)\frac{dT}{dt}=-k(T-T_{\text{room}}), says a warm body cools at a rate proportional to how much warmer it is than the room. Its solution, T=Troom+(T0−Troom)e−ktT=T_{\text{room}}+(T_0-T_{\text{room}})e^{-kt}, can be fitted to two temperature readings taken some time apart. Those fix kk, and the formula is then run backwards to normal body temperature, about 37∘37^\circC.

Can every differential equation be solved with a formula?

No; most cannot be solved exactly. Even dydx=x2+y2\frac{dy}{dx}=x^2+y^2, which looks simple, has no solution in terms of familiar functions. Scientists then use slope fields to see the behaviour and numerical methods, such as Euler's method, to compute values step by step. Weather forecasts come from solving enormous systems of differential equations numerically on supercomputers.

Learning Path

← Before

DerivativeIntegral
Introduction to Differential Equations

You are here

You need Derivative and Integral, since solving the simplest equations, dydx=f(x), is just integration. This concept adds the idea that the unknown is a function, that solutions form families, and that an initial condition selects one. Next, Slope Fields show the solutions of dydx=f(x,y) as a picture, and Separation of Variables solves equations like dydt=ky exactly.

See Also