When we're given dxdy=2x, finding y is just finding an antiderivative, y=x2+C. But if we change one letter, to dxdy=2y, integrating stops working. Let's see why, and find a function that works anyway.
Find a function with dxdy=2y
dxdydxdy=2x→y=x2+C=2y→y=?
Text solution
Why we can't integratey is an unknown function of x, the very function we're trying to find, so we can't integrate 2y with respect to x.
∫2ydx=?
Read it as slope and heightThe equation says that at every point on the curve, the slope is twice the height. At height 3 the slope must be 6. So we need a function whose derivative is twice itself.
Try y=e2xex is its own derivative, so we put a 2 in the exponent, and the chain rule brings that 2 out.
dxdy=e2x⋅2=2⋅e2x=2y
An equation like dxdy=2y, with an unknown function and its derivatives, is called a differential equation. You'll often see it written y′=2y, which means the exact same thing. A function that makes the equation true for every x is called a solution.
So a solution isn't a number, the way x=0 and x=3 solve x2=3x. It's a whole function, like y=e2x, and we check it by substituting the function for y and its derivative for dxdy.
2
Checking whether a function is a solution
We know y=e2x solves dxdy=2y. Let's test two more functions the same way, and then find the constant functions that solve a new equation.
Test whether y=3e2x and y=x2 solve dxdy=2y, and find the constant solutions of dtdy=y(4−y)
dxdy=2yy=3e2x?y=x2?
dtdy=y(4−y)y=c,c=?
Text solution
Test y=3e2xBoth sides come out as the same expression, so they're equal for every x, and y=3e2x is a solution.
dxdy2y=6e2x=2⋅3e2x=6e2x
Test y=x2The two sides are equal at x=0 and x=1, but not at x=2. They aren't equal for every x, so y=x2 is not a solution.
dxdy2y=2x=2x2
x=2:4=8
Constant solutionsAny constant has derivative 0, so it solves dtdy=y(4−y) exactly when the right side is 0.y=2 isn't a solution, because there the right side is 4.
y(4−y)=0→y=0,y=4
When a constant function solves a differential equation, we call it a constant solution. For dtdy=y(4−y), those are y=0 and y=4.
The test of y=x2 is the one to remember. Checking a couple of points made it look like a solution, but the two sides have to be the same expression, so that their graphs are the same curve.
The line y=2x and the parabola y=2x2 intersect at x=0 and x=1, but nowhere else. For y=3e2x, both sides give the same curve.
3
Families of solutions and initial conditions
Both e2x and 3e2x solve dxdy=2y, so what do all the solutions look like? For dxdy=2x, adding C gave us every solution, so it's natural to try e2x+C here too.
Why the solutions of dxdy=2y are Ce2x and not e2x+C
dxdy=2yy=e2x+C?y=Ce2x?
Text solution
Why adding C worked for 2xThe derivative of a constant is 0, so shifting the parabola up or down keeps every slope. And the slope dxdy=2x asks for depends only on x.
dxd(x2+C)=2x
Shifting e2x doesn't workHere the slope must be twice the height. Adding C changes the height but not the slope, so the two sides match only when C=0.
dxdy2y=2e2x=2e2x+2C
Multiplying doesBy the constant multiple rule, multiplying by C multiplies both the height and the slope by C, so the slope stays twice the height for every C.C=0 gives the constant solution y=0.
y=Ce2x:dxdy=2Ce2x=2y
Here are the three curves at x=0. Shifting by 2 raised the height to 3 and left the slope at 2, while multiplying by 3 tripled both.
y=e2x
y(0)=1
y′(0)=2
2y(0)=2
y=e2x+2
y(0)=3
y′(0)=2
2y(0)=6
y=3e2x
y(0)=3
y′(0)=6
2y(0)=6
Finding the curve through a given point
Every value of C gives a solution, so we call y=Ce2x the general solution. A requirement like y(0)=3, which picks the curve through (0,3), is called an initial condition, and the equation together with it is an initial value problem. The one curve it picks is a particular solution.
Find the particular solutions for dxdy=2y and y′′=6x
Text solution
Plug in the pointSubstitute the point's coordinates into the general solution and solve for C. At x=0,e0=1, so C is just the y-value.
y(0)=3:3=Ce0=C→y=3e2x
At another x,C isn't the y-valueThe curve y=3e2x has height 3e2 at x=1, so it misses (1,3). We plug in both coordinates instead.
y(1)=3:3=Ce2→C=e23→y=e23e2x=3e2x−2
Integrate y′′=6x twiceEach integration brings in its own constant.
y′′→y′→y=6x=3x2+C1=x3+C1x+C2
One condition for each constanty′(0)=2 fixes C1, and then y(0)=1 fixes C2.
y′(0)=2y(0)=1→C1=2→C2=1
y=x3+2x+1
The order of a differential equation is the order of its highest derivative, so dxdy=2y is first order and y′′=6x is second order. A second-order equation has two constants, so it needs two conditions to pick out one curve, just as motion problems need v(0) to get velocity from acceleration and s(0) to get position from velocity.
Does adding a constant still give a solution?
4
Solutions of the form erx and cos(kt)
Sometimes we're told the form of a solution, like erx or cos(kt), and we only need the constant that makes it work. We find it the same way we checked solutions, by substituting the function and its derivatives into the equation.
Find the values of r for which y=erx solves y′′−y′−6y=0, and the values of k for which y=cos(kt) solves y′′+9y=0
y′′−y′−6y=0y=erx,r=?
y′′+9y=0y=cos(kt),k=?
Text solution
DifferentiateBy the chain rule, each derivative brings down another r.
y′=rerx,y′′=r2erx
Substitute and factor out erxEvery term has an erx.
r2erx−rerx−6erx=erx(r2−r−6)=0
Set the bracket to 0erx is never 0, so the product is 0 for every x only when the bracket is 0.
(r−3)(r+2)=0→r=3,r=−2
The same steps for cos(kt)Two derivatives bring out k2, and cos(kt) factors out. It isn't 0 everywhere, since cos0=1, so the bracket must be 0.
y′′=−k2cos(kt)
(9−k2)cos(kt)=0
9−k2=0→k=3,k=−3
5
Writing a differential equation from a sentence
In word problems, the rate is usually described in a sentence, and we write the differential equation ourselves. We translate the sentence one phrase at a time.
the rate of change of P
→dtdP
is
→=
proportional to P
→kP
inversely proportional to P
→Pk
Write differential equations for a growing population and a cooling cup of coffee
growing population PdtdP=?
coffee in a 70∘F roomdtdT=?
Text solution
A growing populationA rate proportional to its size gives kP. The population grows, so dtdP is positive, and P is positive too, so k is positive.
dtdP=kP,k>0
Coffee in a 70∘F roomThe temperature T changes at a rate proportional to the difference between the coffee's temperature and the room's.
dtdT=k(T−70)
Choose the signThe coffee is hotter than the room but cooling, so k must be negative. Writing the minus sign out front lets k itself be positive, and it's the same equation.
T−70>0,dtdT<0
dtdT=−k(T−70),k>0
The rate at one momentWith k=0.1 and the coffee at 150∘F, the equation says it's cooling at 8∘F per minute, without solving anything. At T=70 the rate is 0, so T=70 is a constant solution.
k=0.1,T=150:dtdT=−0.1(150−70)=−8
Here's the coffee sentence again, with each phrase carried to its piece of the equation.
Summary
What makes a function a solution
y=3e2x:
dxdy2y=6e2x=6e2x
y=x2:
dxdy2y=2x=2x2
To check whether a function is a solution, substitute y and its derivatives into both sides of the equation. If both sides simplify to the exact same expression for every x, the function is a solution. For y=3e2x, both sides equal 6e2x everywhere. For y=x2, the two sides match only at x=0 and x=1, so it's not a solution.
Constant solutions
dtdy=y(4−y)
y(4−y)=0→y=0,y=4
For a constant solution y=c, the function doesn't change, so its derivative is 0. To find all constant solutions, replace dtdy with 0 and solve for y.
General and particular solutions
dxdy=2y:y=Ce2x
y(1)=3:3=Ce2→C=e23
The equation says the slope must be twice the height at every point. Multiplying e2x by a constant C multiplies both the height and the slope by C, keeping the slope equal to 2y, so the general solution is y=Ce2x, not e2x+C. To find the particular solution through a point, plug the point's coordinates into the general solution and solve for C. At x=0,e0=1, so C is just the initial y-value. If x is not 0, you have to solve for C. For (1,3), we get 3=Ce2, which means C=e23, not 3.
Order and initial conditions
y′′y=6x=x3+C1x+C2
y′(0)=2,y(0)=1
The order of a differential equation is the order of the highest derivative in it. In a second-order equation like y′′=6x, each integration adds a constant, so integrating twice gives two constants, C1 and C2. Finding a particular solution takes two initial conditions, such as y′(0) and y(0).
Finding r in an exponential solution
y=erx:erx(r2−r−6)=0→r=3,r=−2
To find the values of r that make y=erx a solution, substitute y and its derivatives into the equation and factor out erx. Because erx is never 0, the equation holds for every x only when the remaining factor equals 0.
Writing equations from words
dtdT=−k(T−70),k>0
Translate "rate of change of Q" to dtdQ, "proportional to" to k times that quantity, and "inversely proportional to" to k divided by that quantity. Then check whether Q is increasing or decreasing to fix the sign. For coffee hotter than a 70∘F room, T−70>0 and the coffee is cooling, so the derivative is negative and we write dtdT=−k(T−70) with k>0.
6
Practice
Enter exact values.
1
Show that y=xlnx is a solution of xdxdy−y=x.
Use the product rule to find dxdy for y=xlnx.
If you got 1−xlnx Check the derivative of xlnx. The product rule gives lnx+x⋅x1, not just x1.
Differentiate y=xlnx with the product rule.
dxdy=lnx+x⋅x1=lnx+1
Plug y and dxdy into the left side.
x(lnx+1)−xlnx=xlnx+x−xlnx=x
That is the right side, x, so y=xlnx is a solution.
2
Which of these functions is a solution of dxdy=y−2?
For each candidate, do dxdy and y−2 give the same expression?
If you got y=2ex Check both sides. The derivative is 2ex, but y−2 is 2ex−2.
Substitute each candidate into both sides of dxdy=y−2.
y=2ex:dxdy=2ex,y−2=2ex−2
y=ex+2:dxdy=ex,y−2=ex+2−2=ex
y=ex−2:dxdy=ex,y−2=ex−4
y=e2x:dxdy=2e2x,y−2=e2x−2
Only y=ex+2 makes the two sides equal for every x, so it is the solution.
3
Find all constant solutions of dtdy=y2−5y+6.
If y is constant, what is dtdy, and what does that make y2−5y+6?
If you got t=2 and t=3 A constant solution is a fixed value of y, not t.
If you got y=−2 and y=−3 Check the signs when factoring y2−5y+6. We need two numbers that multiply to 6 and add to −5.
A constant function has derivative 0, so set the right side equal to 0.
y constant:dtdy=0→y2−5y+6=0
Factor the quadratic to find the values of y.
(y−2)(y−3)=0→y=2,y=3
4
For what values of r is y=erx a solution of y′′+2y′−8y=0?
Find y′ and y′′ using the chain rule. What factor comes down each time?
Factor out erx. Since erx is never 0, what must equal 0?
If you got r=−2 and r=4 Check the signs when factoring r2+2r−8. The two numbers must add to 2 and multiply to −8.If you got r=38 Check the second derivative of erx. Each derivative brings down a factor of r, so y′′=r2erx, not rerx.
Differentiate y=erx twice using the chain rule.
y′=rerx,y′′=r2erx
Substitute y,y′, and y′′ into the equation and factor out erx.
r2erx+2rerx−8erx=erx(r2+2r−8)=0
erx is never 0, so set the quadratic factor to 0 and solve for r.
erx=0→r2+2r−8=(r+4)(r−2)=0→r=2,r=−4
5
(a) Show that y=Cex2 is a solution of dxdy=2xy for every constant C. (b) Find the solution with y(1)=3.
Differentiate ex2 using the chain rule. What is the derivative of the exponent x2?
Plug x=1 into Cex2 and set it equal to 3. What is C?
If you got y=3ex2 Check the value of y(1). When x=1,3ex2 gives 3e, not 3.
Differentiate y=Cex2 using the chain rule.
dxdy=Cex2⋅2x=2x⋅Cex2=2xy
Set x=1 and y=3 to find C, then simplify the exponent.
y(1)=3:3=Ce1→C=e3→y=e3ex2=3ex2−1
6
Water drains from a tank so that the depth h of the water, in feet, decreases at a rate proportional to the square root of the depth. Time t is in minutes. When h=16, the depth is decreasing at 2 feet per minute. (a) Write a differential equation for h, with k>0. (b) Find k. (c) How fast is the depth decreasing when h=4?
The rate is proportional to h, and h is decreasing, so what is the sign of dtdh?
Plug h=16 and dtdh=−2 into your differential equation to solve for k.
If you got 21 ft/min Check the formula for the rate. It's proportional to h, not to h.
Because h is decreasing, dtdh is negative.
dtdh=−kh,k>0
Plug in h=16 and dtdh=−2 to find k.
h=16:−2=−k16=−4k→k=21
Plug h=4 directly into the differential equation.
h=4:dtdh=−214=−1
So when h=4, the depth is decreasing at 1 foot per minute.
7
Find the constants a and b for which y=ax+b is a solution of dxdy+2y=4x. (Challenge)
Substitute y=ax+b and its derivative into dxdy+2y=4x, then group the x terms and constant terms.
The equation must hold for every x, so match the x coefficients and the constant terms on both sides.
If you got a=2,b=0 Check the constant terms. On the right side the constant term is 0, so a+2b=0.
Substitute y=ax+b and its derivative dxdy=a into the differential equation.
dxdy=a:a+2(ax+b)=2ax+(a+2b)=4x
Match the coefficients of x and the constant terms on both sides.