A85 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A8 · Lesson 5 · Exact and Bernoulli equations

Two more first-order equations you can solve exactly

Separation and integrating factors cover most first-order equations an engineer meets, but two more families come up often enough to know by name. An exact equation is the derivative of something that stays constant, the way energy stays constant in a lossless system; its solutions are the level curves of that something. A Bernoulli equation has a power of y on the right that makes it nonlinear, but a change of variable turns it linear. The logistic equation is one, and so is a capacitor discharging through a load whose current grows faster than its voltage.

  • The curves solve y˙=y−y3, a Bernoulli equation, from the starting value you set.
  • Every start above zero settles at 1, from above or below. The formula behind the curve came from turning the equation into a linear one.
  • Try a start near zero: the solution lingers, then rises. Try a start of 3: it drops quickly, because the y3 term dominates.

Predict

Substituting v=1/y2 into y˙=y−y3 gives which equation for v?

Name it

Exact equations

An equation written as M(x,y)dx+N(x,y)dy=0 is exact if there's a function F(x,y) with Fx=M and Fy=N. Along a solution, dF=Mdx+Ndy=0, so the solutions are the level curves F(x,y)=C.

The test: mixed partial derivatives agree, so an exact equation must have My=Nx, and in a simply connected region that's also enough.

Finding F: integrate M with respect to x, adding an unknown function g(y); then choose g so that Fy=N.

Bernoulli equations

An equation of the form

y˙+p(t)y=q(t)yn,n≠0,1

becomes linear with v=y1−n: dividing by yn and using v˙=(1−n)y−ny˙ gives

v˙+(1−n)p(t)v=(1−n)q(t)

Solve that by an integrating factor, then return to y=v1/(1−n).

Where they appear

  • The logistic equation P˙=rP−rKP2 is Bernoulli with n=2: v=1/P makes it linear.
  • Quadratic drag, mv˙=−bv2+F, and a capacitor discharging through a load whose current goes as v2 are Bernoulli or separable.
  • Conservative systems give exact equations: for x¨=−f(x), energy 12x˙2+∫fdx is the F whose level curves are the trajectories in the phase plane.

Worked example

Solve (2xy+3)dx+(x2+4y)dy=0 through the point (1,1).

Show the solution
  1. Test for exactness. My=2x and Nx=2x, so it's exact.
  2. Integrate M in x. F=x2y+3x+g(y)
  3. Match Fy to N. Fy=x2+g′(y) must equal N=x2+4y, so g′=4y and g=2y2: F=x2y+3x+2y2
  4. Pass through (1,1). F(1,1)=1+3+2=6

Answer the solution is the curve x2y+3x+2y2=6.

Worked example

Solve y˙=y−y3 with y(0)=0.5, and find y(1).

Show the solution
  1. Substitute. With n=3, use v=y−2. The equation becomes v˙+2v=2
  2. Solve the linear equation. It starts at v0=0.5−2=4: v=1+(v0−1)e−2t=1+3e−2t
  3. Go back to y. y=11+3e−2t
  4. Evaluate at t=1. y(1)=11+3e−2=0.843
  5. Long run. As t→∞, v→1 and y→1, the stable equilibrium.

Answer y=1/1+3e−2t, and y(1)=0.843.

Worked example

Solve the logistic equation P˙=0.5P(1−P1000) with P(0)=100 as a Bernoulli equation.

Show the solution
  1. Substitute v=1/P. v˙=−P˙/P2=−0.5v+0.0005 which is linear, with equilibrium v=0.001.
  2. Solve for v. v=0.001+(0.01−0.001)e−0.5t
  3. Go back to P. P=10.001+0.009e−0.5t
  4. Evaluate at t=4. P(4)=10.001+0.009e−2=451 This is the same answer separation gives in A6, found here without partial fractions.

Answer P=1/(0.001+0.009e−0.5t), which gives P(4)=451.

Check

For which a is (axy+1)dx+(2x2+y)dy=0 exact?

Check

The solutions of (2xy+3)dx+(x2+4y)dy=0 are the curves F=C. What is C for the curve through (1,1)?

Check

A Bernoulli equation has y3 on the right. What power m in v=ym makes it linear?

Check

Solve y˙=y−y3 with y(0) = 0.5. What is y at t = 0.5?

Check

Solve P˙=0.5P(1−P100) with P(0) = 50, using v=1/P.

(a)

What value does v settle to?

(b)

What is P at t=2?

Check

Turn y˙+py=qy2 into a linear equation with v=1/y.

Step 1

v˙=−y˙/y2=p/y−q. The equation is v˙=av−q. What is a?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Why does the substitution v=y1−n turn a Bernoulli equation into a linear one?

Practice

Keep practicing

7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.