1. Home
  2. Explore
  3. Mathematics
  4. Differential Equations Intro

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Differential Equations Intro

Differential Equations: Comprehensive Study Notes

What Is a Differential Equation?

A differential equation (DE) is an equation that involves an unknown function and one or more of its derivatives. The unknown function is typically denoted by yyy (or uuu) and depends on an independent variable, often xxx (or ttt). The goal is to find the function that satisfies the equation.

Example:

y′′+y=0y'' + y = 0y′′+y=0

This is a DE because it contains the second derivative of yyy and the function yyy itself.

Contrast with an algebraic equation:
An algebraic equation such as x+2=0x + 2 = 0x+2=0 has a number as its solution (x=−2x = -2x=−2). A differential equation has a function as its solution. For y′′+y=0y'' + y = 0y′′+y=0, the solution is a family of functions: y=c1cos⁡x+c2sin⁡xy = c_1 \cos x + c_2 \sin xy=c1​cosx+c2​sinx.

Real-world importance:
Differential equations model phenomena in physics (e.g., vibrating springs, waves), chemistry, biology, finance. The Black-Scholes equation (a PDE) models stock option prices and earned its creators a Nobel Prize. This is why entire courses are dedicated to DEs.


Types of Differential Equations

Ordinary Differential Equations (ODEs)

An ordinary differential equation contains ordinary derivatives (derivatives with respect to a single independent variable, as learned in calculus 1).

Example:

dydx+3y=e6x\frac{dy}{dx} + 3y = e^{6x}dxdy​+3y=e6x

This is an ODE because it uses the ordinary derivative dydx\frac{dy}{dx}dxdy​.

Partial Differential Equations (PDEs)

A partial differential equation contains partial derivatives (derivatives with respect to more than one independent variable, typically studied in calculus 3).

Example: Laplace’s equation:

∂2u∂x2+∂2u∂y2=0\frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} = 0∂x2∂2u​+∂y2∂2u​=0

Here, ∂u∂x\frac{\partial u}{\partial x}∂x∂u​ represents the rate of change of uuu in the xxx-direction, and ∂u∂y\frac{\partial u}{\partial y}∂y∂u​ in the yyy-direction. PDEs are more advanced; this course focuses primarily on ODEs, though PDEs appear later.


Order of a Differential Equation

The order of a DE is the order of the highest derivative appearing in the equation.

  • The original function yyy is considered the zeroth derivative (similar to the constant term in a Taylor series).

Examples:

  1. $$\frac{d^2 y}{dx^2} + x \frac{dy}{dx} = \sin 4x$$
    Order: 2 (because of the second derivative).

  2. $$\frac{dy}{dx} + 5 = 8e^x$$
    Order: 1 (first derivative).

  3. $$\frac{d^4 y}{dx^4} + 3y = 1999x$$
    Order: 4.

The order is straightforward – it is simply the exponent on the derivative symbol (number of primes or the superscript on ddd).


Linear vs Nonlinear Differential Equations

A DE is linear in yyy if it can be written in the form:

an(x)dnydxn+an−1(x)dn−1ydxn−1+⋯+a1(x)dydx+a0(x)y=g(x)a_n(x) \frac{d^n y}{dx^n} + a_{n-1}(x) \frac{d^{n-1} y}{dx^{n-1}} + \dots + a_1(x) \frac{dy}{dx} + a_0(x) y = g(x)an​(x)dxndny​+an−1​(x)dxn−1dn−1y​+⋯+a1​(x)dxdy​+a0​(x)y=g(x)

with the following two conditions:

  1. yyy and all its derivatives appear only to the first power (no y2y^2y2, (y′)2(y')^2(y′)2, y\sqrt{y}y​, etc.).

  2. The coefficients an(x),an−1(x),…,a0(x)a_n(x), a_{n-1}(x), \dots, a_0(x)an​(x),an−1​(x),…,a0​(x) are pure functions of xxx – they cannot contain yyy or any of its derivatives.

If either condition is violated, the DE is nonlinear.

Examples – determine order and linearity:

Differential Equation

Order

Linear?

Reason

y′′+3xy′+x3y=0y'' + 3xy' + x^3 y = 0y′′+3xy′+x3y=0

2

Linear

yyy and y′y'y′ are to first power; coefficients 3x3x3x and x3x^3x3 are pure functions of xxx.

y′′′+3yy′′+y=exy''' + 3y y'' + y = e^xy′′′+3yy′′+y=ex

3

Nonlinear

The term 3yy′′3y y''3yy′′ has a product of yyy and y′′y''y′′; yyy appears in the coefficient, violating condition 2.

x2dydx+y=7x^2 \frac{dy}{dx} + y = 7x2dxdy​+y=7

1

Linear

Coefficient x2x^2x2 is a pure function of xxx; yyy and y′y'y′ are to first power.

ddx(4xdydx)+y=x\frac{d}{dx}(4x \frac{dy}{dx}) + y = xdxd​(4xdxdy​)+y=x after simplifying → 4xy′′+4y′+y=x4x y'' + 4y' + y = x4xy′′+4y′+y=x

2

Linear

After expanding, all coefficients are functions of xxx only.

(dydx)2+xy=ex\left(\frac{dy}{dx}\right)^2 + xy = e^x(dxdy​)2+xy=ex

1

Nonlinear

Derivative is squared, violating the first-power condition.

x2dydx+cos⁡(x+y)y=17x^2 \frac{dy}{dx} + \cos(x+y) y = 17x2dxdy​+cos(x+y)y=17

1

Nonlinear

cos⁡(x+y)\cos(x+y)cos(x+y) is not a pure function of xxx – it depends on yyy as well.

xy′′+yy′=0x y'' + y y' = 0xy′′+yy′=0

2

Nonlinear

yyy appears as a coefficient of y′y'y′ (product).

Nonlinear DEs are generally much harder to solve and often require approximation methods or series solutions.


Solutions to Differential Equations

Families of Solutions

When solving a DE, the result usually contains one or more arbitrary constants (from integration). These constants form a family of solutions.

  • One-parameter family: y=3x2+Cy = 3x^2 + Cy=3x2+C (one arbitrary constant CCC).

  • Two-parameter family: y=c1e2x+c2e4xy = c_1 e^{2x} + c_2 e^{4x}y=c1​e2x+c2​e4x (two constants c1,c2c_1, c_2c1​,c2​).

  • nnn-parameter family: nnn constants.

The term family is used mathematically like set – it’s a collection of all solutions parameterized by the constants.

Particular Solution

A particular solution is obtained by choosing specific values for the arbitrary constants. It contains no arbitrary constants. This is often done by using initial conditions (see Initial Value Problems below).

Trivial Solution

The trivial solution is y=0y=0y=0. It often satisfies a DE and is important because it can be a “hidden” solution.

Explicit vs Implicit Solutions

  • Explicit solution: yyy is written directly in terms of xxx (e.g., y=exy = e^xy=ex).

  • Implicit solution: yyy is defined implicitly by an equation involving xxx and yyy (e.g., ln⁡(x+y)=ey+x2+C\ln(x+y) = e^y + x^2 + Cln(x+y)=ey+x2+C). Explicit solutions are “solved for yyy”.

When a question asks for an explicit solution, you must solve for yyy explicitly.

Singular Solution

A singular solution is a solution that cannot be obtained by choosing any value of the arbitrary constant(s) from the general family. Singular solutions usually arise in nonlinear DEs. Often, the singular solution is y=0y=0y=0, but not always.

General Solution

If all solutions of a DE can be obtained by choosing values of the arbitrary constants (i.e., no singular solutions exist), the family is called the general solution. Linear DEs always have a general solution (proved later in the course).


Interval of Definition

The interval of definition of a solution is the largest interval (in xxx) over which the solution is defined and valid.

Key: The domain of the function may consist of multiple disconnected intervals (e.g., y=1/xy = 1/xy=1/x has domain (−∞,0)∪(0,∞)(-\infty,0) \cup (0,\infty)(−∞,0)∪(0,∞)). But an interval must be connected – any two points in the interval must have all numbers between them also in the interval. Therefore, for y=1/xy=1/xy=1/x, the domain is not an interval; the largest intervals are (−∞,0)(-\infty, 0)(−∞,0) and (0,∞)(0, \infty)(0,∞).

When an initial condition is given, the interval of definition is the largest interval that contains the xxx-value of the initial condition. Without an initial condition, you may choose either of the maximal intervals.


Initial Value Problems (IVPs)

An initial value problem consists of:

  • A differential equation (order nnn).

  • nnn initial conditions of the form y(x0)=y0y(x_0) = y_0y(x0​)=y0​, y′(x0)=y1y'(x_0) = y_1y′(x0​)=y1​, … (value of function and derivatives at a specific x0x_0x0​).

For a first-order DE, the IVP is:

dydx=f(x,y),y(x0)=y0\frac{dy}{dx} = f(x,y), \quad y(x_0) = y_0dxdy​=f(x,y),y(x0​)=y0​

The initial condition picks a particular solution from the family – the one that passes through the point (x0,y0)(x_0, y_0)(x0​,y0​). The interval of definition is then determined by that particular solution’s natural domain, restricted to the largest interval containing x0x_0x0​.


Worked Examples

Example 1: Verify a Solution and Find Interval of Definition

DE: xy′+y=0x y' + y = 0xy′+y=0
Proposed solution: y=1xy = \frac{1}{x}y=x1​
Show it is a solution:

  1. Compute y′y'y′: y=x−1⇒y′=−x−2=−1x2y = x^{-1} \Rightarrow y' = -x^{-2} = -\frac{1}{x^2}y=x−1⇒y′=−x−2=−x21​.

  2. Plug into DE: x(−1x2)+1x=−1x+1x=0x\left(-\frac{1}{x^2}\right) + \frac{1}{x} = -\frac{1}{x} + \frac{1}{x} = 0x(−x21​)+x1​=−x1​+x1​=0.
    Verified.

Interval of definition:
The function y=1/xy = 1/xy=1/x is defined for all x≠0x \neq 0x=0. Its domain is (−∞,0)∪(0,∞)(-\infty,0) \cup (0,\infty)(−∞,0)∪(0,∞), but that is not a single interval. The largest intervals are (−∞,0)(-\infty,0)(−∞,0) and (0,∞)(0,\infty)(0,∞). Either one is a valid interval of definition if no initial condition is given. (If an initial condition like y(1)=1y(1)=1y(1)=1 is given, the interval would be (0,∞)(0,\infty)(0,∞) because x=1x=1x=1 lies there.)

Example 2: One-Parameter Family, Initial Condition, Interval

DE: y′+2xy2=0y' + 2xy^2 = 0y′+2xy2=0 (nonlinear)
One-parameter family: y=1x2+Cy = \dfrac{1}{x^2 + C}y=x2+C1​
Initial condition: y(0)=−1y(0) = -1y(0)=−1

Find CCC:
Substitute x=0x=0x=0, y=−1y=-1y=−1:

−1=102+C=1C⇒C=−1-1 = \frac{1}{0^2 + C} = \frac{1}{C} \quad\Rightarrow\quad C = -1−1=02+C1​=C1​⇒C=−1

Particular solution:

y=1x2−1y = \frac{1}{x^2 - 1}y=x2−11​

Find interval of definition:
The function y=1/(x2−1)y = 1/(x^2-1)y=1/(x2−1) has vertical asymptotes at x=±1x = \pm 1x=±1 (where denominator zero). Its graph passes through (0,−1)(0,-1)(0,−1), which lies between x=−1x=-1x=−1 and x=1x=1x=1. Therefore, the largest interval containing x=0x=0x=0 where the solution is defined is (−1,1)(-1, 1)(−1,1).

Alternative initial condition: y(2)=13y(2) = \frac{1}{3}y(2)=31​

13=14+C  ⇒  4+C=3  ⇒  C=−1\frac{1}{3} = \frac{1}{4 + C} \;\Rightarrow\; 4+C = 3 \;\Rightarrow\; C = -131​=4+C1​⇒4+C=3⇒C=−1

Same particular solution y=1/(x2−1)y = 1/(x^2-1)y=1/(x2−1). Since x=2x=2x=2 is to the right of x=1x=1x=1, the interval of definition is (1,∞)(1, \infty)(1,∞).

Example 3: Singular Solution and Interval

DE: y′+2xy2=0y' + 2xy^2 = 0y′+2xy2=0 (same as above)
One-parameter family: y=1x2+Cy = \dfrac{1}{x^2 + C}y=x2+C1​
Initial condition: y(5)=0y(5) = 0y(5)=0

Attempt to find CCC:

0 = \frac{1}{25 + C} \quad\Rightarrow\quad \text{impossible (0 ≠ 1)}.

No value of CCC yields y=0y=0y=0. However, y=0y=0y=0 is a solution (check: 0′+2x⋅02=00' + 2x\cdot 0^2 = 00′+2x⋅02=0). This is a singular solution – it cannot be obtained from the family.

Since y=0y=0y=0 is defined for all xxx, and the initial condition y(5)=0y(5)=0y(5)=0 is satisfied, the solution to the IVP is y=0y=0y=0. Its interval of definition is (−∞,∞)(-\infty, \infty)(−∞,∞) (all real numbers). This example shows the importance of checking for singular solutions when an initial condition leads to a contradiction with the family.


Summary of Key Definitions

Term

Definition

Differential Equation

Equation containing unknown function and its derivatives.

Order

Highest derivative present.

Linear DE

yyy and its derivatives appear only to the first power; coefficients are pure functions of xxx.

Nonlinear DE

Fails either condition for linearity.

Family of Solutions

Set of solutions parameterized by arbitrary constants.

Particular Solution

Solution with specific constants (no arbitrary parameters).

Trivial Solution

y=0y=0y=0.

Singular Solution

Solution not obtainable from the general family.

General Solution

Family containing all solutions (no singular solutions).

Explicit Solution

yyy solved for explicitly in terms of xxx.

Implicit Solution

yyy defined implicitly by an equation.

Initial Value Problem (IVP)

DE plus initial condition(s) that pick a particular solution.

Interval of Definition

Largest connected interval where the solution is defined (containing the initial point if given).

These foundational concepts are essential for the entire course, as they appear in every chapter and on every exam.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent