Equations of the form
dy∕dx = f(x)g(y)
|
are called separable. They are dealt with in the following way: Divide both sides by g(y), and integrate both sides with respect to x,
Now do both integrals.
Example 7.3:
Solve the DE
, given that y = 1∕2 when x = 0.
Solution:
Divide by {y}^{2}, and obtain
Now integrate both sides with respect to x
This is the general solution, but we know that at x = 0, y = 1∕2. Substituting this we find that 1∕2 = −1∕k, therefore k = −2 and
\class{boxed}{y = − {1\over {
x}^{2} − 2} = {1\over
2 − {x}^{2}}. }
|
Example 7.4:
Find the general solution of
Solution:
Rearrange as
{dy\over
dx} = {4 + {y}^{2}\over
2y(x + 1)}.
|
So here f(x) = 1∕(x + 1), g(y) = {4+{y}^{2}\over 2y} . Divide by g(y),
{2y\over
4 + {y}^{2}} {dy\over
dx} = {1\over
x + 1}\quad .
|
Integrate both sides with respect to x
We write k =\mathop{ ln}\nolimits A, with A also arbitrary, but positive. We find
\mathop{ln}\nolimits (4 + {y}^{2}) =\mathop{ ln}\nolimits (x + 1) +\mathop{ ln}\nolimits A =\mathop{ ln}\nolimits (A(x + 1)),
|
Thus 4 + {y}^{2} = A(x + 1), or isolating y,
\class{boxed}{y = ±\sqrt{A(x + 1) − 4}. }
|
Example 7.5:
N(t) satisfies the DE
Given that N = 10 at t = 0 find N at t = 3.
Solution:
Here f(t) = α, i.e., a constant, and g(N) = N, so
Since at t = 0, N = 10, we have A = 10, and
\class{boxed}{N = 10{e}^{αt}\quad . }
|
At t = 3, N = 10{e}^{3α}.
These have form,
{dy\over
dx} + p(x)y = q(x)
| (7.1) |
Method as follows
s(x) =\mathop{ \mathop{\mathop{∫
}\nolimits }}\nolimits p(x)\kern 1.66702pt dx\quad ,
|
and thus ds∕dx = p.
{e}^{s}{dy\over
dx} + {e}^{s}py = {e}^{s}q\quad .
|
Since p = ds∕dx we have
{e}^{s}{dy\over
dx} + {e}^{s} {ds\over
dx}y = {e}^{s}q\quad .
| (7.2) |
{d\over
dx}({e}^{s}) = {d\over
ds}({e}^{s}) {ds\over
dx} = {e}^{s} {ds\over
dx}\quad .
|
Note also that
{d\over
dx}\left (y{e}^{s}\right ) = {dy\over
dx}{e}^{s} + y {d\over
dx}\left ({e}^{s}\right ) = \left ({e}^{s}\right ){dy\over
dx} + y({e}^{s}) {ds\over
dx}\quad .
|
This is exactly the l.h.s. of (7.2). Rewrite eq. (7.2) as
{d\over
dx}(y{e}^{s}) = q{e}^{s}\quad .
| (7.3) |
y{e}^{s} =\mathop{ \mathop{\mathop{∫
}\nolimits }}\nolimits q{e}^{s}\kern 1.66702pt dx + k\quad .
|
Hence
\class{boxed}{y = {e}^{−s}\left [\mathop{\mathop{\mathop{∫
}\nolimits }}\nolimits q{e}^{s}\kern 1.66702pt dx + k\right ]\quad . }
|
N.B. Remember the method not the final formula!
Example 7.6:
Find the general solution of
{dy\over
dx} + (\mathop{tan}\nolimits x)y = 3\mathop{cos}\nolimits x\quad .
| (7.4) |
Solution:
Here p =\mathop{ tan}\nolimits x so s =\mathop{ \mathop{\mathop{∫ }\nolimits }}\nolimits \mathop{tan}\nolimits x\kern 1.66702pt dx =\mathop{ ln}\nolimits (\mathop{sec}\nolimits x) (no constant of integration needed here), {e}^{s} = {e}^{\mathop{ln}\nolimits (\mathop{sec}\nolimits x)} =\mathop{ sec}\nolimits x. Multiply both sides of (7.4) by {e}^{s} =\mathop{ sec}\nolimits x:
\mathop{sec}\nolimits x\kern 1.66702pt {dy\over
dx} +\mathop{ sec}\nolimits (x)\mathop{tan}\nolimits (x)y = 3\mathop{cos}\nolimits (x)\mathop{sec}\nolimits (x)\quad .
|
The l.h.s. is the differential of {e}^{s}y so we find
{d\mathop{sec}\nolimits (x)y\over
dx} = 3\quad .
|
Integrate this and find
(\mathop{sec}\nolimits x)y = 3x + k\quad .
|
Thus, finally,
\class{boxed}{y = (3x + k)\mathop{cos}\nolimits x\quad . }
|
Example 7.7:
Solution:
Rearrange (7.5) ,
{dy\over
dx} + {2\over
x}y = 4\quad ,
| (7.6) |
which is of linear form with p = {2\over x}. We find
and {e}^{s} = {e}^{\mathop{ln}\nolimits ({x}^{2}) } = {x}^{2}. Multiply (7.6) by {e}^{s} = {x}^{2}, and find
{x}^{2} {dy\over
dx} + 2xy = 4{x}^{2}\quad .
|
the l.h.s. is differential of {e}^{s}y = {x}^{2}y. Integrate this and find
This is the general solution. We know that when x = 1 then y = 0 so
. Therefore k = −4∕3 and
\class{boxed}{y = {4\over
3}(x − {1\over {
x}^{2}})\quad . }
|
We first need to define a function of two variables:
function | degree |
{x}^{2} + xy + {y}^{2} | 2 |
x + 2y | 1 |
{{x}^{2}\over y} + {{y}^{2}\over x} | 1 |
1 + {x\over y} + {{x}^{2}\over {y}^{2}} | 0 |
xy | 2 |
{x}^{2} + y | not homogeneous |
x + y + 1 | not homogeneous |
There is a simple test to see if f(x,y) is homogeneous. Replace x by λx and y by λy to get f(λx,λy). If f(λx,λy) = {λ}^{n}f(x,y) then f is homogeneous with degree n.
Example 7.8:
f(λx,λy) = λx + 2λy = λ(x + 2y)\quad ,
|
and f is homogeneous with degree 1.
which is therefore homogeneous of degree 0.
f(λx,λy) =\mathop{ cos}\nolimits \bigg ({λx\over
λy}\bigg ) =\mathop{ cos}\nolimits \bigg ({x\over
y}\bigg )
|
which is therefore homogeneous of degree 0.
A homogeneous DE is one of type {dy\over dx} = {f(x,y)\over g(x,y)} , with g and f both homogeneous and of the same degree.
Example 7.9:
Find general solution of
Solution:
Put y = xv(x), then {dy\over dx} = v + x{dv\over dx}, so
therefore
which is separable. This can be solved in the standard way,
And we conclude that
\class{boxed}{2{\mathop{tan}\nolimits }^{−1}\big ({y\over
x}\big ) −{1\over
2}\mathop{ln}\nolimits \big (1 + {y\over
x}\big ) =\mathop{ ln}\nolimits x + k\quad . }
|
(We can also replace k with \mathop{ln}\nolimits A.)
Often we need to rearrange the equation first to get a homogeneous form, as in the following example.
Example 7.10:
Solve
given y = 1 when x = 1.
Solution:
Rearrange as
This is therefore a homogeneous DE. We substitute y = xv,
v + x{dv\over
dx} = {3{x}^{2} + {x}^{2}{v}^{2}\over
{x}^{2}v} = {3 + {v}^{2}\over
v} = {3\over
v} + v\quad .
|
We can now turn the crank,
which is the general solution. Imposing the condition that for x = 1, y = 1, we obtain 1 = 2(0 + k), and therefore k = 1∕2. The solution is thus
\class{boxed}{{y}^{2} = 2{x}^{2}(2\mathop{ln}\nolimits x + 1∕2). }
|