4.6.11Ordinary Differential Equations

Case 1 - two distinct real roots

1,640 words7 min readdifficulty · medium2 backlinks

Context: solving the homogeneous linear ODE with constant coefficients ay+by+cy=0,a0.ay'' + by' + cy = 0, \qquad a\neq 0. This note covers the case where the characteristic equation has two distinct real roots.

The big idea

Derivation from scratch

WHAT we compute: y=erx,y=rerx,y=r2erx.y = e^{rx}, \quad y' = r e^{rx}, \quad y'' = r^2 e^{rx}.

HOW we substitute into ay+by+cy=0ay'' + by' + cy = 0: ar2erx+brerx+cerx=0.a\,r^2 e^{rx} + b\,r\,e^{rx} + c\,e^{rx} = 0.

Why this step? Each derivative just pulls down a power of rr, so erxe^{rx} is a common factor.

Factor it out: erx(ar2+br+c)=0.e^{rx}\big(ar^2 + br + c\big) = 0.

Since erx0e^{rx} \neq 0 for all real xx, the bracket must vanish:

Why we get TWO independent solutions

Each root gives a solution: y1=er1xy_1 = e^{r_1 x} and y2=er2xy_2 = e^{r_2 x}.

WHY combine them? The ODE is linear and second-order. Linear \Rightarrow any sum/scaling of solutions is again a solution (superposition). Second-order \Rightarrow the general solution needs exactly two arbitrary constants. So:

Figure — Case 1 -  two distinct real roots

Worked examples

  1. Characteristic equation: r2+5r+6=0r^2 + 5r + 6 = 0. Why? Replace yr2, yr, y1y''\to r^2,\ y'\to r,\ y\to 1.
  2. Factor: (r+2)(r+3)=0r1=2, r2=3(r+2)(r+3)=0 \Rightarrow r_1=-2,\ r_2=-3. Why? These are the distinct real roots; discriminant =2524=1>0=25-24=1>0. ✔ Case 1.
  3. General solution: y=C1e2x+C2e3xy = C_1 e^{-2x} + C_2 e^{-3x}. Why? Superpose the two independent exponentials.
  1. r2r2=0(r2)(r+1)=0r1=2, r2=1r^2 - r - 2 = 0 \Rightarrow (r-2)(r+1)=0 \Rightarrow r_1=2,\ r_2=-1.
  2. y=C1e2x+C2exy = C_1 e^{2x} + C_2 e^{-x}.
  3. Apply y(0)=1y(0)=1: C1+C2=1C_1 + C_2 = 1. Why? At x=0x=0, both exponentials equal 11.
  4. Differentiate: y=2C1e2xC2exy' = 2C_1 e^{2x} - C_2 e^{-x}. Apply y(0)=4y'(0)=4: 2C1C2=42C_1 - C_2 = 4. Why? We need a second equation to pin both constants.
  5. Add the two: 3C1=5C1=533C_1 = 5 \Rightarrow C_1 = \tfrac{5}{3}, then C2=153=23C_2 = 1 - \tfrac{5}{3} = -\tfrac{2}{3}.
  6. Answer: y=53e2x23exy = \tfrac{5}{3}e^{2x} - \tfrac{2}{3}e^{-x}.
  1. r29=0r=±3r^2 - 9 = 0 \Rightarrow r = \pm 3. (Here b=0b=0, still two distinct reals.)
  2. y=C1e3x+C2e3xy = C_1 e^{3x} + C_2 e^{-3x}. Why this matters: one term blows up, one decays — generic solutions grow unless C1=0C_1=0.

Forecast-then-Verify

Recall Forecast: before solving

y+7y+12y=0y''+7y'+12y=0, predict the roots' signs and long-term behaviour. Forecast: b,c>0b,c>0 with b2>4acb^2>4ac, so both roots are real and negative \Rightarrow solution decays to 0. Verify: r2+7r+12=(r+3)(r+4)=0r^2+7r+12=(r+3)(r+4)=0, roots 3,4-3,-4 (both negative). y=C1e3x+C2e4x0y=C_1e^{-3x}+C_2e^{-4x}\to 0. ✔

Common mistakes

Recall Feynman: explain to a 12-year-old

Imagine a function that grows or shrinks at a rate proportional to its own size — like money in a bank with interest, erxe^{rx}. The equation is asking: "find growth rates rr so that when I stack up the function and its speed and its acceleration with fixed weights, they cancel to zero." That cancelling is just a little quadratic puzzle. If the puzzle has two different answers r1r_1 and r2r_2, then BOTH growth patterns work, and the full answer is just a mix (C1C_1 of the first plus C2C_2 of the second), where you choose the mix to match where you start.

Connections


What ansatz do we try for ay+by+cy=0ay''+by'+cy=0?
y=erxy=e^{rx}, because its derivatives are scaled copies of itself.
What is the characteristic equation of ay+by+cy=0ay''+by'+cy=0?
ar2+br+c=0ar^2+br+c=0.
Condition for Case 1 (two distinct real roots)?
Discriminant b24ac>0b^2-4ac>0.
General solution when roots are distinct reals r1r2r_1\neq r_2?
y=C1er1x+C2er2xy=C_1e^{r_1x}+C_2e^{r_2x}.
Why do we need two constants C1,C2C_1,C_2?
The ODE is 2nd-order, so its solution family has two free parameters.
Why are er1xe^{r_1x} and er2xe^{r_2x} linearly independent when r1r2r_1\neq r_2?
Their ratio e(r1r2)xe^{(r_1-r_2)x} is non-constant; Wronskian (r2r1)e(r1+r2)x0(r_2-r_1)e^{(r_1+r_2)x}\neq0.
Roots of y+5y+6y=0y''+5y'+6y=0?
r=2,3r=-2,-3, so y=C1e2x+C2e3xy=C_1e^{-2x}+C_2e^{-3x}.
If b24ac=0b^2-4ac=0 instead, which case and what changes?
Case 2 (repeated root); solution becomes (C1+C2x)er1x(C_1+C_2x)e^{r_1x}.

Concept Map

solved by

gives

enables

common factor

yields

Case 1 needs

gives

each yields

independent via

superposition

ay'' + by' + cy = 0

Guess y = e^rx

Derivatives scale y

Substitute into ODE

Factor out e^rx

Characteristic eqn ar^2+br+c=0

Discriminant b^2-4ac gt 0

Two distinct real roots r1, r2

y1=e^r1x, y2=e^r2x

Wronskian ne 0

General y=C1 e^r1x + C2 e^r2x

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, jab humein ay+by+cy=0ay''+by'+cy=0 type ka equation solve karna hota hai, toh trick simple hai: hum guess karte hain ki solution y=erxy=e^{rx} hoga. Kyun? Kyunki exponential ka derivative apne hi jaisa hota hai — bas ek rr ka factor nikal aata hai. Isliye jab tum erxe^{rx} ko equation mein daalte ho, erxe^{rx} common ban ke bahar nikal jaata hai aur peeche reh jaata hai ek simple quadratic: ar2+br+c=0ar^2+br+c=0. Yahi characteristic equation hai.

Ab Case 1 ka matlab hai jab is quadratic ke do alag-alag real roots milein, yaani discriminant b24ac>0b^2-4ac>0. Maan lo roots r1r_1 aur r2r_2 hain (different). Toh er1xe^{r_1x} bhi solution hai aur er2xe^{r_2x} bhi. Kyunki equation linear aur second-order hai, general solution dono ka mix hota hai: y=C1er1x+C2er2xy=C_1e^{r_1x}+C_2e^{r_2x}. Yeh do constants C1,C2C_1,C_2 initial conditions se nikalte hain.

Ek important baat: dono constants mat bhoolna! Bahut students sirf er1x+er2xe^{r_1x}+e^{r_2x} likh dete hain — galat. Second-order ODE ko hamesha do free constants chahiye. Aur agar discriminant exactly zero ho jaye, toh roots same ho jaate hain — woh Case 2 hai, jahan ek extra xx multiply karna padta hai: (C1+C2x)erx(C_1+C_2x)e^{rx}. Isliye Case 1 sirf tab jab roots strictly different hon.

Yaad rakhne ka mantra: Replace, Solve, Superpose — derivatives ko rr ki powers se replace karo, quadratic solve karo, aur dono solutions ko constants ke saath jod do. Bas ho gaya!

Go deeper — visual, from zero

Test yourself — Ordinary Differential Equations

Connections