Questions
Questions
Questions
Questions
Example Find an equation of the curve that passes through the point (1, 1) and whose slope at (x, y) is y 2 /x3 .
Example Find the solution of the differential equation that satisfies the initial condition (this is another way of saying
initial value problem):
dy
= tey , y(1) = 0.
dt
Example Find and sketch the family of curves which solve the differential equation:
dy 1+x
= , x 6= 0.
dx xy
dy t
Example Solve = ey , y(1) = 0.
dt y
dy ln x
Example Solve = for y(x).
dx cos2 y
Solutions
Example Find an equation of the curve that passes through the point (1, 1) and whose slope at (x, y) is y 2 /x3 .
This is just a tricky way of asking an initial value problem. We will want to solve a differential equation, and then use
the condition to determine the constant of integration, thus selecting one curve from the family of curves.
y2
y0 =
x3
dy y2
=
dx x3
dy dx
= (separate)
y2 x3
Z Z
dy dx
= (integrate)
y2 x3
Z Z
y −2 dy = x−3 dx
y −1 x−2
+ c1 = + c2 (c1 , c2 are constants of integration)
−1 −2
y −1 x−2
= + c (c = c2 − c1 )
−1 −2
1 1
− = − 2 + c (begin to simplify)
y 2x
Examples from Section 9.3 Separable Equations Page 2
1 1 2x2 c
= −
y 2x2 2x2
2
1 1 − 2x c
=
y 2x2
2x2
y =
1 − 2x2 c
2x2
y(x) = .
1 − 2x2 c
We use the condition which was supplied to pick one curve out of the family of curves. We want the curve that passes
through (1, 1), so we want y(1) = 1.
2 1
y(1) = 1 = −→ c = − .
1 − 2c 2
The curve which passes through the point (1, 1) and has slope y 2 /x3 at the point (x, y) is
2x2
y(x) = .
1 + x2
Example Find the solution of the differential equation that satisfies the initial condition (this is another way of saying
initial value problem):
dy
= tey , y(1) = 0.
dt
Solution:
dy
= tey
dt
e−y dy = t dt (separate)
Z Z
e−y dy = t dt (integrate)
t2
−e−y + c1 = + c2 (c1 , c2 are constants of integration)
2
t2
−e−y = + c3 (c3 = c2 − c1 )
2
t2
e−y = − − c3 (begin to simplify)
2
t2
−y = ln − − c3
2
2
t
y = − ln − − c3
2
Examples from Section 9.3 Separable Equations Page 3
t2
y(t) = − ln − − c3 .
2
We then use the initial condition to pick a single curve out of the family of curves,
12
y(1) = 0 = − ln − − c3 ,
2
and for the logarithm to be zero, the argument of the logarithm must be one, so
12 3
− − c3 = 1 −→ c3 = − .
2 2
t2
3
y(t) = − ln − + .
2 2
Example Find and sketch the family of curves which solve the differential equation:
dy 1+x
= , x 6= 0.
dx xy
dy 1+x
=
dx xy
1+x
y dy = dx (separate)
Z Z x
1+x
y dy = dx (integrate)
x
y2
Z Z
1
+ c1 = dx + dx
2 x
y2
+ c1 = ln |x| + c2 + x + c3
2
y2
= ln |x| + x + c (c = c2 + c3 − c1 )
2
This is an implicit function solution to the differential equation. Once we have loaded the ImplicitPlot command in
Mathematica, we can plot the family of solutions using the following commands:
y = sin x + c
d d
[y] = [sin x + c]
dx dx
dy
= cos x
dx
Note that in this case the constant disappears when it is hit with the derivative, so there is no need to back substitute to
eliminate the constant. Cool!
So the family of curves has slope at the point (x, y) given by y 0 = cos x. The orthogonal trajectories will have slope at the
point (x, y) given by y 0 = − sec x. This is the differential equation we must solve to determine the orthogonal trajectories.
dy
= − sec x
dx
dy = − sec x dx
Z Z
dy = − sec x dx
y = − ln | sec x + tan x| + k
Here is a sketch. To be able to see the orthogonality condition clearly, we must be careful to plot equal x and y lengths
and use an AspectRatio of 1. I’ve added some color to clearly distinguish the two families.
fam1[x_,c_]=Sin[x]+c
plot1=Plot[{fam1[x,-1],fam1[x,0],fam1[x,1]},{x,-5,5},PlotRange->{{-5,5},{-5,5}},
PlotStyle->Blue];
Examples from Section 9.3 Separable Equations Page 5
fam2[x_,k_]=-Log[Abs[Sec[x]+Tan[x]]]+k
plot2=Plot[{fam2[x,-1],fam2[x,0],fam2[x,1]},{x,-5,5},PlotRange->{{-5,5},{-5,5}},
PlotStyle->Red];
Show[plot1,plot2,AxesLabel->{"x","y"},AspectRatio->1]
dy t
Example Solve = ey , y(1) = 0.
dt y
dy t y
= e
dt y
ye−y dy = t dt
Z Z
ye−y dy = t dt (1)
Use parts on the first integral, with u = y, dv = e−y dy. Therefore, du = dy and v = −e−y .
Z Z
ye−y dy = u dv
Z
= uv − v du
Z
= −ye−y + e−y dy
= −ye−y − e−y + c1
t2
Z
t dt = + c2
2
Examples from Section 9.3 Separable Equations Page 6
t2
− ye−y − e−y + c1 = + c2
2
t2
−(y + 1)e−y = +c
2
This is an implicit solution to the differential equation. It would be difficult to solve for y(t), so we are content with the
implicit solution. The constant c = c2 − c1 .
Now, use the initial condition to determine the value of the constant c. At t = 1, y = 0, so
12
− (0 + 1)e−0 = +c
2
3
− = c
2
t2 − 3
The solution to the initial value problem is −(y + 1)e−y = .
2
dy ln x
Example Solve = for y(x).
dx cos2 y
dy ln x
=
dx cos2 y
cos2 y dy = ln x dx
Z Z
cos2 y dy = ln x dx (2)
Z Z
1
cos2 y dy = (1 + cos(2y)) dy
2
Z Z
1 1
= dy + cos(2y) dy
2 2
1 1
= y + sin(2y) + c1
2 4
The logarithm integral you may have memorized; if not work it out using parts, with u = ln x, dv = dx. Then du = dx/x
and v = x, so
Z Z
ln x dx = u dv
Z
= uv − v du
Z
= x ln x − dx
= x ln x − x + c2
Examples from Section 9.3 Separable Equations Page 7
1 1
y + sin(2y) + c1 = x ln x − x + c2
2 4
1 1
y + sin(2y) = x ln x − x + c
2 4