Differential-Equations · Unit 3 · Video 1 · Interactive Practice

First Order Linear: Standard Form and the Sign of p

IKey Formulas

FormulaNameWhat you need
a(x)y+b(x)y=c(x)a(x)\,y' + b(x)\,y = c(x)First-order linear equation — linear in yy and yy'yy and yy' alone, first power, each times a function of xx; aa, bb, cc otherwise arbitrary
ay1+by2=ca\,y_1 + b\,y_2 = cThe high-school analogy: yy' plays y1y_1, yy plays y2y_2Nothing — it is the same shape, one equation in two variables
y+p(x)y=q(x)y' + p(x)\,y = q(x),
p=bap = \dfrac{b}{a}, q=caq = \dfrac{c}{a}
Standard linear formDivide through by a(x)a(x), where a(x)0a(x) \neq 0
y+py=0    y=Cepxy' + p\,y = 0 \;\Longrightarrow\; y = C e^{-px}Homogeneous test case, pp constantq0q \equiv 0; the sign of pp then decides decay or growth

Key Insight: Keep the pp term on the left. The other standard form, y=p(x)y+q(x)y' = -p(x)y + q(x), carries p-p as the coefficient of yy, and one wrong sign turns epxe^{-px} into e+pxe^{+px} — decay into blow-up, with no later step able to repair it.

IIFreeze x: Straight Line or Not

Hold xx fixed: the pairs (y,y)(y, y') the equation allows form a straight line exactly when it is linear.

IIIDividing Down to Standard Form

One division by a(x)a(x) separates the general linear equation from its standard form.

1 · the equation as given
xy+3y=x2(x>0)x\,y' + 3y = x^2 \qquad (x > 0)

a(x)=xa(x) = x, b(x)=3b(x) = 3, c(x)=x2c(x) = x^2 — the coefficient of yy' is not 11.

💡 Dividing is legal only where a(x)0a(x) \neq 0: the standard form of xy+3y=x2x\,y' + 3y = x^2 lives on x>0x > 0 or on x<0x < 0, never across x=0x = 0.

IVOne Sign, Opposite Behavior

With pp constant and nothing on the right, the sign in front of pypy is the whole difference.

VQuiz Questions

Problem 1 · Which One Is Linear

Given: four first-order equations — find the one that is linear in yy and yy', then decide whether it is homogeneous.

Which equation is linear?

Is that equation homogeneous?

✅ Correct! In y+(cosx)y=x3y' + (\cos x)y = x^3 the unknown appears alone and differentiated once, each multiplied by a function of xx; the coefficients may be as wild as they like. Homogeneous is decided by the right-hand side alone, and x30x^3 \neq 0.
❌ Not quite. y2y^2 is the unknown multiplied by itself — the one product that breaks linearity, and the reason this lecture-one equation has no elementary solution.
❌ Not quite. yyy\,y' multiplies the unknown by its own derivative. Linear means linear in the pair (y,y)(y, y') jointly, so a product of the two is out.
❌ Not quite. siny\sin y puts the unknown inside a function. Only yy and yy' themselves, times functions of xx, are allowed.
❌ Not quite. Test each equation on yy and yy' only: they must appear alone, to the first power, never multiplied together and never inside a function.
❌ Check the definition. Homogeneous means the right-hand side c(x)c(x) is identically zero — nothing to do with the coefficients on the left.
Show solution

Treat yy' as a variable in its own right and ask whether the equation is linear in the pair (y,y)(y, y'):

  • y=xy2y' = x - y^2: the unknown is squared — not linear.
  • yy+y=xy\,y' + y = x: the unknown multiplies its own derivative — not linear.
  • y+(cosx)y=x3y' + (\cos x)\,y = x^3: matches a(x)y+b(x)y=c(x)a(x)y' + b(x)y = c(x) with a=1a = 1, b=cosxb = \cos x, c=x3c = x^3linear.
  • y+siny=0y' + \sin y = 0: the unknown sits inside a sine — not linear.

It is already in standard form, so p(x)=cosxp(x) = \cos x and q(x)=x3q(x) = x^3.

Homogeneous? The word means c(x)0c(x) \equiv 0, exactly as for ay1+by2=ca y_1 + b y_2 = c in algebra. Here c(x)=x3c(x) = x^3, which is zero only at x=0x = 0, not identically — so the equation is not homogeneous.

Problem 2 · Divide by a(x)

Given: xy3y=x5x\,y' - 3y = x^5 on x>0x > 0write it in standard linear form y+p(x)y=q(x)y' + p(x)y = q(x) and read off the two coefficients.

What is p(x)p(x)?

What is q(x)q(x)?

✅ Correct! Dividing by a(x)=xa(x) = x gives y3xy=x4y' - \frac{3}{x}y = x^4, so p(x)=3xp(x) = -\frac{3}{x} and q(x)=x4q(x) = x^4 — the sign of pp is the one it carries on the left.
❌ Half a step. Every term must be divided by a(x)=xa(x) = x, the yy term included: 3y-3y becomes 3xy-\frac{3}{x}y.
❌ Close, but check the sign. pp is read off the left-hand side of y+p(x)y=q(x)y' + p(x)y = q(x). You have read the coefficient from y=3xy+x4y' = \frac{3}{x}y + x^4, the other standard form, whose coefficient is p-p.
❌ Half a step. The right-hand side is divided by a(x)=xa(x) = x as well: x5/x=x4x^5/x = x^4.
❌ Not quite. Divide the whole equation by a(x)=xa(x) = x, then read the coefficient of yy exactly as it stands on the left.
❌ Not quite. qq is the right-hand side after the division: x5÷xx^5 \div x, not a derivative of anything.
Show solution

Step 1 — identify aa, bb, cc: a(x)=xa(x) = x, b(x)=3b(x) = -3, c(x)=x5c(x) = x^5.

Step 2 — divide every term by a(x)=xa(x) = x (legal on x>0x > 0):

xyx3yx=x5xy3xy=x4\frac{x\,y'}{x} - \frac{3y}{x} = \frac{x^5}{x} \qquad\Longrightarrow\qquad y' - \frac{3}{x}\,y = x^4

Step 3 — compare with y+p(x)y=q(x)y' + p(x)y = q(x):

p(x)=ba=3x,q(x)=ca=x4p(x) = \frac{b}{a} = -\frac{3}{x}, \qquad q(x) = \frac{c}{a} = x^4

Check: multiplying y3xy=x4y' - \frac{3}{x}y = x^4 back by xx returns xy3y=x5x y' - 3y = x^5.

Written the other way, y=3xy+x4y' = \frac{3}{x}y + x^4 — and the +3x+\frac{3}{x} there is p-p, not pp. That is exactly the confusion the standard form is chosen to avoid.

Problem 3 · What the Sign of p Does

Given: the homogeneous equation y+12y=0y' + \tfrac{1}{2}y = 0find its solutions and their behavior as xx \to \infty.

✅ Correct! Differentiating ex/2e^{-x/2} returns 12-\tfrac{1}{2} times the function — precisely py-p\,y — and p<0-p < 0 makes every solution decay.
❌ Close, but check the sign. y=Cex/2y = Ce^{x/2} gives y=+12yy' = +\tfrac{1}{2}y, which solves y12y=0y' - \tfrac{1}{2}y = 0 — the sign-flipped equation, with the opposite behavior.
❌ Not quite. y=Ce2xy = Ce^{-2x} has y=2yy' = -2y, so it solves y+2y=0y' + 2y = 0. The exponent is px-p\,x itself, not the reciprocal of pp.
❌ Not quite. That is what you would get from y=12y' = -\tfrac{1}{2}; here the right-hand side is 00 and the 12-\tfrac{1}{2} multiplies yy.
❌ Not quite. Substitute each candidate into y+12yy' + \tfrac{1}{2}y and keep the one that returns 00.
Show solution

The equation is the constant-pp test case with p=12p = \tfrac{1}{2} and q=0q = 0. Try y=Cerxy = Ce^{rx}:

y+12y=(r+12)Cerx=0r=12y' + \tfrac{1}{2}y = \left(r + \tfrac{1}{2}\right)Ce^{rx} = 0 \qquad\Longrightarrow\qquad r = -\tfrac{1}{2} y=Cex/2y = Ce^{-x/2}

Check by differentiating: ddxex/2=12ex/2\frac{d}{dx}e^{-x/2} = -\tfrac{1}{2}e^{-x/2}, which is p-p times the function — exactly what y=pyy' = -py demands.

Since p=12<0-p = -\tfrac{1}{2} < 0, every solution decays to 00; at x=6x = 6 it has already fallen to Ce30.050CC e^{-3} \approx 0.050\,C.

Flip the sign of pp and the equation y12y=0y' - \tfrac{1}{2}y = 0 is solved by Ce+x/2Ce^{+x/2}: the same p|p|, unbounded growth. One sign, opposite fates.

Problem 4 · The Other Standard Form

Given: a textbook writes the equation as y=5ye2xy' = 5y - e^{2x}put it into the standard linear form used in this course and identify pp and qq.

What is p(x)p(x)?

What is q(x)q(x)?

✅ Correct! Moving the yy term across gives y5y=e2xy' - 5y = -e^{2x}, so p=5p = -5 and q=e2xq = -e^{2x}. The 55 printed in the textbook's version is p-p.
❌ Close, but check the sign. 55 is the coefficient of yy on the right. Carried to the left it becomes 5y-5y, and pp is read from the left: p=5p = -5.
❌ Not quite. pp is a function of xx alone — it is the coefficient multiplying yy, never a term containing yy.
❌ Close, but check the sign. Only the yy term moves; e2x-e^{2x} stays on the right exactly as it is, so q=e2xq = -e^{2x}.
❌ Not quite. Rewrite as y+p(x)y=q(x)y' + p(x)y = q(x) first: the yy term has to sit on the left before pp can be read.
❌ Not quite. qq is whatever is left on the right once the yy term has moved — no differentiating, no sign change.
Show solution

y=5ye2xy' = 5y - e^{2x} is written in the general first-order standard form (yy' equals everything else). The linear standard form wants the yy term on the left:

y5y=e2xy' - 5y = -e^{2x}

Compare with y+p(x)y=q(x)y' + p(x)y = q(x):

p(x)=5,q(x)=e2xp(x) = -5, \qquad q(x) = -e^{2x}

Half the books write this equation as y=r(x)y+q(x)y' = r(x)y + q(x) with r=pr = -p; we never do, because the sign of pp is what the whole method hangs on.

What the sign predicts: p=5<0p = -5 < 0, so the homogeneous partner y5y=0y' - 5y = 0 grows like e5xe^{5x} — and indeed the general solution is y=Ce5x+13e2xy = Ce^{5x} + \tfrac{1}{3}e^{2x}. Reading p=+5p = +5 instead would have predicted a decaying e5xe^{-5x}: the wrong behavior from the first line on.

Solved: 0 / 4