BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Substitutions: scaling, Bernoulli and homogeneous equations

Only two kinds of first-order equation can always be solved, separable and linear; most others that can be solved are reduced to these by a change of variables. Scaling, x₁ = x/a and y₁ = y/b, changes units, makes variables dimensionless and lumps constants, as for the radiation cooling law dT/dt = k(M⁴ − T⁴). A Bernoulli equation y′ = p(x)y + q(x)yⁿ becomes linear for v = y^(1−n). A homogeneous equation y′ = F(y/x), one unchanged by zooming both axes, becomes separable by the inverse substitution y = zx. A boat keeping a 45° angle to a lighthouse beam obeys y′ = (x + y)/(x − y), and its path is an exponential spiral r = Ce^θ.

You need this first

Full reading path (17 pages)
  1. The derivative: slope of the tangent line and rate of change (18.01)
  2. Limits and continuity (18.01)
  3. Derivatives of sine and cosine, and the product and quotient rules (18.01)
  4. The chain rule and higher derivatives (18.01)
  5. Implicit differentiation and the derivatives of inverse functions (18.01)
  6. Exponentials and logarithms: the number e and its derivatives (18.01)
  7. Linear and quadratic approximations (18.01)
  8. Curve sketching with the first and second derivative (18.01)
  9. Sketching strategy and maximum–minimum problems (18.01)
  10. More max–min, and related rates (18.01)
  11. A ring on a string, and Newton's method (18.01)
  12. The mean value theorem and inequalities (18.01)
  13. Differentials and antiderivatives (18.01)
  14. Differential equations and separation of variables (18.01)
  15. Direction fields, isoclines and integral curves (18.03)
  16. Euler's method and better numerical methods (18.03)
  17. First-order linear equations and integrating factors (18.03)
On this page · 5 sections
  1. Scaling
  2. Bernoulli equations
  3. Homogeneous equations
  4. The boat and the lighthouse
  5. Summary

So far, two kinds of first-order equation can be solved: separable and linear. In a sense those are the only two general methods; most other solvable equations are solved by a change of variables that turns them into one of these (transcript, p. 1).

Scaling#

The most common change of variables simply rescales the axes (transcript, p. 1):

Scaling
x1=xa,y1=ybx_1 = \frac{x}{a}, \qquad y_1 = \frac{y}{b}
In words

x one equals x over a, y one equals y over b

with constants aa, bb. It is used to change units, to make variables dimensionless, and to reduce the number of constants (p. 1).

Example. At high temperatures Newton's cooling law is replaced by a fourth-power law, with external temperature MM (p. 1):

Radiation cooling law
dTdt=k (M4−T4)\frac{dT}{dt} = k\,(M^4 - T^4)
In words

d capital T over d t equals k the quantity M to the power 4 minus capital T to the power 4

Let T1=T/MT_1 = T/M, which is dimensionless. To substitute, use the inverse form T=MT1T = MT_1, since it is TT that appears in the equation. Then M dT1/dt=kM4(1−T14)M\,dT_1/dt = kM^4(1 - T_1^4), so (p. 1)

Scaled form
dT1dt=k1 (1−T14),k1=kM3\frac{dT_1}{dt} = k_1\,(1 - T_1^4), \qquad k_1 = kM^3
In words

d capital T one over d t equals k sub 1 the quantity 1 minus capital T one to the power 4, k sub 1 equals k M cubed

It is no easier to solve, but simpler: T1T_1 has no units, and the lumped constant k1k_1 has units of inverse time only (p. 1).

Direct and inverse substitution (p. 2). A direct substitution defines the new variable from the old ones (u=1−x2u = 1 - x^2 for ∫x1−x2 dx\int x\sqrt{1 - x^2}\,dx); an inverse one writes the old variables in terms of the new (x=sin⁡ux = \sin u for ∫1−x2 dx\int\sqrt{1 - x^2}\,dx). The two integrals look alike but need different kinds of substitution. The rule: look at what you have to replace in the equation, and substitute for that.

Bernoulli equations#

A Bernoulli equation has the form (transcript, p. 2)

Bernoulli equation
y′=p(x) y+q(x) yny' = p(x)\,y + q(x)\,y^n
In words

y prime equals p(x) y plus q(x) y to the power n

for any number nn: 2, 3, 12\frac12, −5-5. For n=0n = 0 it is linear and for n=1n = 1 separable. It must have exactly these two terms: adding even a constant spoils it (p. 2). Method: divide by yny^n, giving y′/yn=p y1−n+qy'/y^n = p\,y^{1-n} + q. With v=y1−nv = y^{1-n}, v′=(1−n)y−ny′v' = (1 - n)y^{-n}y', and the equation becomes linear (p. 2):

Bernoulli made linear
v′1−n=p(x) v+q(x),v=y1−n\frac{v'}{1 - n} = p(x)\,v + q(x), \qquad v = y^{1-n}
In words

v prime over the quantity 1 minus n, equals p(x) v plus q(x), v equals y to the power 1 minus n, end of power

Solve it as a linear equation, then convert back to yy. Learn the method, not the final formula (p. 2).

Example (pp. 2–3). y′=y/x−y2y' = y/x - y^2: divide by y2y^2, set v=1/yv = 1/y, v′=−y′/y2v' = -y'/y^2. Then −v′=v/x−1-v' = v/x - 1, i.e. v′+v/x=1v' + v/x = 1. The integrating factor is xx: (xv)′=x(xv)' = x, so xv=x2/2+Cxv = x^2/2 + C and v=x/2+C/xv = x/2 + C/x. Turning it upside down (p. 3):

Example solution
y=2xx2+C1y = \frac{2x}{x^2 + C_1}
In words

y equals 2 x over the quantity x squared plus capital C one

The arbitrary constant is tucked inside the solution, not added on (p. 3).

Homogeneous equations#

A first-order equation is homogeneous (a different use of the word from homogeneous linear equations) if it can be written (transcript, p. 3)

Homogeneous equation
y′=F ⁣(yx)y' = F\!\left(\frac{y}{x}\right)
In words

y prime equals F ( y over x )

For example y′=x2y/(x3+y3)y' = x^2y/(x^3 + y^3), after dividing top and bottom by x3x^3, is y/x1+(y/x)3\frac{y/x}{1 + (y/x)^3}; and xy′=x2+y2xy' = \sqrt{x^2 + y^2} is 1+(y/x)2\sqrt{1 + (y/x)^2} (p. 3). The name comes from zooming: under x=ax1x = ax_1, y=ay1y = ay_1, both dy/dxdy/dx and y/xy/x are unchanged, so the equation stays the same (p. 3).

Method (pp. 3–4). The direct substitution z=y/xz = y/x leads to a mess if you differentiate it by the quotient rule. Use the inverse form instead, y=zxy = zx, because y′y' is what the equation contains:

Substitution for homogeneous equations
y=zx,y′=z′x+z,x dzdx=F(z)−zy = zx, \qquad y' = z'x + z, \qquad x\,\frac{dz}{dx} = F(z) - z
In words

y equals z x, y prime equals z prime x plus z, x d z over d x equals F(z) minus z

and the variables separate. At the end, go back to yy and xx.

The boat and the lighthouse#

A lighthouse at the origin keeps its beam on a boat, which escapes by always steering at 45° to the beam (transcript, p. 4). Why is this a differential equation? We want a curve, and we know something about its slope. If the beam makes angle α\alpha with the horizontal, tan⁡α=y/x\tan\alpha = y/x, and the path's slope is tan⁡(α+45°)\tan(\alpha + 45°), so by the tangent addition formula (p. 4)

The boat's path
y′=y/x+11−y/x=x+yx−yy' = \frac{y/x + 1}{1 - y/x} = \frac{x + y}{x - y}
In words

y prime equals the quantity y over x plus 1, all over the quantity 1 minus y over x, equals the quantity x plus y, all over the quantity x minus y

a homogeneous equation. With y=zxy = zx: xz′=1+z1−z−z=1+z21−zxz' = \frac{1 + z}{1 - z} - z = \frac{1 + z^2}{1 - z}, so 1−z1+z2 dz=dxx\frac{1 - z}{1 + z^2}\,dz = \frac{dx}{x} and (pp. 4–5)

Integrated
arctan⁡z−12ln⁡(1+z2)=ln⁡x+c\arctan z - \tfrac12\ln(1 + z^2) = \ln x + c
In words

arc tangent z minus one half log of the quantity 1 plus z squared, equals log x plus c

Put back z=y/xz = y/x (taking x>0x > 0): arctan⁡(y/x)=ln⁡x2+y2+c\arctan(y/x) = \ln\sqrt{x^2 + y^2} + c. A mess, until it is read in polar coordinates, where arctan⁡(y/x)=θ\arctan(y/x) = \theta and x2+y2=r\sqrt{x^2 + y^2} = r: θ=ln⁡r+c\theta = \ln r + c, that is (p. 5)

Exponential spiral
r=C eθr = C\,e^{\theta}
In words

r equals capital C e to the power theta

The boat sails along an exponential spiral (p. 5).

The boat's path r=eθr = e^{\theta} (C=1C = 1), drawn from the parametric form x=eθcos⁡θx = e^{\theta}\cos\theta, y=eθsin⁡θy = e^{\theta}\sin\theta for θ\theta from −3 to 1.4: at every point the path makes a 45° angle with the line to the origin (the axes are not drawn to the same scale, so the angle looks distorted).
Worked example

A logistic Bernoulli equation and a homogeneous one

Solve (a) y′=y−y2y' = y - y^2 and (b) y′=(x2+y2)/(xy)y' = (x^2 + y^2)/(xy).

(a) Bernoulli with n=2n = 2

Divide by y2y^2: y′/y2=1/y−1y'/y^2 = 1/y - 1. With v=1/yv = 1/y, v′=−y′/y2v' = -y'/y^2, so −v′=v−1-v' = v - 1, i.e. v′+v=1v' + v = 1. Integrating factor exe^x: (exv)′=ex(e^xv)' = e^x, v=1+Ce−xv = 1 + Ce^{-x}, so y=11+Ce−xy = \dfrac{1}{1 + Ce^{-x}}: every positive solution approaches 1, the logistic curve. (Dividing by y2y^2 loses the solution y=0y = 0.)

(b) Homogeneous

Dividing top and bottom by x2x^2: y′=1+z2zy' = \dfrac{1 + z^2}{z} with z=y/xz = y/x. Then xz′=1+z2z−z=1zxz' = \dfrac{1 + z^2}{z} - z = \dfrac1z, so z dz=dx/xz\,dz = dx/x, 12z2=ln⁡∣x∣+c\frac12 z^2 = \ln|x| + c, and y2=x2(2ln⁡∣x∣+C)y^2 = x^2(2\ln|x| + C).

Summary#

  • Scaling makes variables dimensionless and lumps constants; substitute for what the equation contains (often an inverse substitution).
  • Bernoulli y′=py+qyny' = py + qy^n: v=y1−nv = y^{1-n} makes it linear.
  • Homogeneous y′=F(y/x)y' = F(y/x) (zoom-invariant): y=zxy = zx makes it separable.
  • The 45° boat follows the exponential spiral r=Ceθr = Ce^\theta.

Symbols on this page

Show the 37 symbols used here
α\alpha alpha.
The angle of the lighthouse beam above the horizontal. Say it: “alpha”.
θ\theta theta.
The polar angle. Say it: “theta” (sounds like “thay-ta or thee-ta”).
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
∫\int integral.
Integral: the sum of infinitely many small pieces, such as the area under a curve. Say it: “the integral of”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
tan⁡\tan tangent.
Tangent of an angle, sin/cos. Say it: “tan”.
ln⁡\ln natural logarithm.
Natural logarithm (base e ≈ 2.718). Say it: “log”.
aa a.
A scale factor. Say it: “a”.
zz z.
The new variable y/x. Say it: “z”.
cc c.
A constant of integration. Say it: “c”.
kk k.
A rate constant. Say it: “k”.
TT T.
The inside temperature. Say it: “capital T”.
arctan⁡\arctan arctangent.
The inverse tangent. Say it: “arc tangent”.
xx x.
The independent variable. Say it: “x”.
yy y.
The unknown function. Say it: “y”.
tt t.
Time. Say it: “t”.
dd d.
The d of d/dt, dx, dz. Say it: “d”.
nn n.
The power in a Bernoulli equation. Say it: “n”.
ee e.
Euler's number, 2.718…, the base of the exponential. Say it: “e”.
FF F.
The function of y/x on the right of a homogeneous equation. Say it: “F”.
vv v.
The new variable y^(1−n). Say it: “v”.
rr r.
The polar radius √(x² + y²). Say it: “r”.
CC C.
An arbitrary constant. Say it: “capital C”.
bb b.
A second scale factor. Say it: “b”.
qq q.
The coefficient of yⁿ in a Bernoulli equation. Say it: “q”.
pp p.
The coefficient of y in a Bernoulli equation. Say it: “p”.
MM M.
The external temperature, assumed constant. Say it: “M”.
y′y' y prime.
The derivative dy/dx. Say it: “y prime”.
T1T_{1} T one.
The dimensionless temperature T/M. Say it: “capital T one”.
uu u.
A substitution variable in an integral. Say it: “u”.
x1x_{1} x 1.
The rescaled x variable. Say it: “x one”.
y1y_{1} y 1.
The rescaled y variable. Say it: “y one”.
k1k_{1} first wavevector component.
The lumped constant kM³. Say it: “k sub 1”.
v′v' v prime.
The derivative of the new variable v. Say it: “v prime”.
z′z' z prime.
The derivative dz/dx. Say it: “z prime”.
C1C_{1} C 1.
A rescaled arbitrary constant. Say it: “capital C one”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 21 words used here

New here

lumped constant.
A single constant standing for a combination of several, used to make an equation simpler.
Bernoulli equation.
A first-order equation y′ = p(x)y + q(x)yⁿ, which a substitution turns into a linear equation.

Also used

separable.
Of a first-order differential equation: one that can be rearranged with each variable on its own side and then integrated.
linear.
The property that sums and multiples of solutions are again solutions, so the responses to separate inputs simply add. Explained in First-order linear equations and integrating factors.
change of variables.
Rewriting a problem in new variables suited to it; in an integral this needs a factor, the Jacobian, for how areas or volumes stretch. Explained in Change of variables in double integrals.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
dimensionless.
Having no unit, because the units cancel: a ratio such as v/c is the same number in any system of units. Explained in Friction and drag.
inverse.
The thing that undoes another: a matrix times its inverse gives the identity matrix, as a function followed by its inverse gives back the start. Explained in Planes through three points, and matrices.
inverse substitution.
A change of variable that writes x in terms of a new variable, such as x = sin θ, often to remove a square root. Explained in Inverse substitution and completing the square.
integral.
A sum of very many very small pieces, such as the area under a graph; it undoes taking a derivative. Explained in Rates of change and area under a graph.
i.e..
That is: introduces a clearer or more exact way of saying what was just said.
integrating factor.
A function an equation is multiplied by so that one side becomes an exact derivative; for a first-order linear equation, of a single product. Explained in First-order linear equations and integrating factors.
differentiation.
Finding a derivative: working out how fast a function changes. Explained in The derivative: slope of the tangent line and rate of change.
quotient rule.
The rule for the derivative of a fraction of two functions: (u/v)′ = (u′v − uv′)/v².
differential equation.
An equation that links an unknown function to its derivatives; solving it means finding the function. Explained in Circular motion dynamics: worked problems.
tangent.
The trigonometric function tan x, equal to sin x divided by cos x.
polar coordinates.
Coordinates in a flat plane that give a point's distance r from the origin and its angle θ from a fixed direction. Explained in Vectors.

Academic

in a sense.
Partly, or when looked at in one particular way; not in every respect.
transcript.
A written record of exactly what was said in a recorded lecture, word for word.
arbitrary.
Free to be chosen as one likes; any choice gives a correct result.
homogeneous.
Of a function: unchanged in form when every variable is multiplied by the same number, apart from a power of that number.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

31 more cosmology pages that build on this

Pages that build on this

Check your understanding

  1. Which substitution turns the Bernoulli equation y′=p(x)y+q(x)yny' = p(x)y + q(x)y^n (n≠1n \ne 1) into a linear one?
  2. What makes y′=F(y/x)y' = F(y/x) called homogeneous?
  3. For a homogeneous equation, which substitution separates the variables?
0 of 3 answered

Flashcards

1 / 3