Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

In[ ]:=  (x^2 + y^2 + 2 x) Dt[x] + (2 y) Dt[y] == 0

Input:

x2 + y2 + 2 x ⅆ x + (2 y) ⅆ y  0

Bernoulli's equation:
y(x) x (2 + x)
y′ (x)  - -
2 2 y(x)
Bernoulli's equation »

ODE classification »

Differential equation solutions: Solve as a homogeneous equation | ▾ Hide steps

y(x)  - c1 ⅇ-x - x2

y(x)  c1 ⅇ-x - x2
Possible intermediate steps:
Solve x2 + 2 x + y(x)2 + 2 ⅆy(x)
ⅆx
y(x)  0 :

Let y(x)  x v(x)


, which gives
ⅆy(x) ⅆv(x)
ⅆx
x ⅆx
+ v(x) :
ⅆ v(x)
x2 + 2 x + x2 v(x)2 + 2 x x + v(x) v(x)  0
ⅆx

Simplify:
ⅆ v(x)
x x + (x + 2) v(x)2 + 2 x v(x) + 2  0
ⅆx

ⅆv(x)
Solve for ⅆx
:
ⅆ v(x) -x - 2 v(x)2 - x v(x)2 - 2

ⅆx 2 x v(x)

Factor:
ⅆ v(x) (x + 2) v(x)2 + 1
-
ⅆx 2 x v(x)

Divide both sides by

Printed by Wolfram Mathematica Student Edition


2 ED-TAREA.nb

2
- v(x) +1
2 v(x)
:
ⅆv(x)
2 ⅆx
v(x) x+2
- 
v(x)2 + 1 x

Integrate both sides with respect to


x :
2 ⅆv(x)
ⅆx
v(x) x+2
 - ⅆx   ⅆx
v(x)2 + 1 x

Evaluate the integrals:


-logv(x)2 + 1  x + 2 log(x) + c1 , where c1 is an arbitrary constant.

Solve for v(x) :


ⅇ-x-c1 - x2 ⅇ-x-c1 - x2
v(x)  - or v(x) 
x x

Simplify the arbitrary constants:


-x2 + c1 ⅇ-x -x2 + c1 ⅇ-x
v(x)  - or v(x) 
x x

Substitute back for


y(x)

x v(x) :

Answer:

y(x)  - -x2 + c1 ⅇ-x or y(x)  -x2 + c1 ⅇ-x

Plots of sample individual solution »

Sample solution family »

Interactive differential equation solution plots »

Printed by Wolfram Mathematica Student Edition


ED-TAREA.nb 3

In[ ]:=  ((x - 1) (y^2 - y + 1)) Dt[x] - ((y + 1) (x^2 + x + 1)) Dt[y] == 0

Input:

(x - 1) y2 - y + 1 ⅆ x - (y + 1) x2 + x + 1 ⅆ y  0

Separable equation:
y′ (x) -1 + x
- 
1-y(x)+y(x)2 -1 - x - x2
1+y(x)

ODE classification »

Differential equation solutions: Approximate form Hide steps


1 2x+1 1 2 y(x) - 1
c1 + logx2 + x + 1 - 3 tan-1  logy(x)2 - y(x) + 1 + 3 tan-1
2 3 2 3
Possible intermediate steps:
Solve the separable equation
- ⅆy(x)
ⅆx
(y(x) + 1) x2 + x + 1 + (x - 1) y(x)2 - y(x) + 1  0 :

ⅆy(x)
Solve for ⅆx
:
ⅆ y(x) (x - 1) y(x)2 - y(x) + 1

ⅆx (y(x) + 1) x2 + x + 1

Divide both sides by


y(x)2 -y(x)+1
y(x)+1
:
ⅆy(x)
ⅆx
(y(x) + 1) x-1

y(x)2 - y(x) + 1 x2 +x+1

Integrate both sides with respect to


x :
ⅆy(x)
ⅆx
(y(x) + 1) x-1
 ⅆx   ⅆx
2
y(x) - y(x) + 1 2
x +x+1

Evaluate the integrals:

Answer:

2 y(x) - 1 1
3 tan-1 + logy(x)2 - y(x) + 1 

Printed by Wolfram Mathematica Student Edition


4 ED-TAREA.nb

logy( ) y( ) 
3 2
2x+1 1
- 3 tan-1 + logx2 + x + 1 + c1 , where c1 is an arbitrary constant.
3 2

Plots of sample individual solution »

Sample solution family »

Interactive differential equation solution plots »

In[ ]:=  (x - 2 x y - y^2) Dt[y] + y^2 Dt[x] == 0

Input:

x - 2 x y - y2  ⅆ y + y2 ⅆ x  0

ODE classification »

Differential equation solutions: Approximate form Hide steps


y(x)
x  c1 ⅇ y(x)2 + y(x)2
Possible intermediate steps:
Solve y(x)2 + ⅆy(x)
ⅆx
x - y(x)2 - 2 x y(x)  0 :

Let R(x, y)

y2
and
S(x, y)

x - y2 - 2 x y .
This is not an exact equation, because
 ∂R(x,y)
∂y
 2 y ≠ -2 y + 1  ∂S(x,y)
∂x
 .

Find an integrating factor


μ(y)
such that
ⅆy(x)
μ(y) R(x, y) + ⅆx
μ(y) S(x, y)  0 is exact.

This means

∂y
(μ(y) R(x, y))

Printed by Wolfram Mathematica Student Edition


ED-TAREA.nb 5



∂x
(μ(y) S(x, y)) :
ⅆ μ(y)
y2 + 2 y μ(y)  (-2 y + 1) μ(y)
ⅆy

Isolate μ(y) to
the left-hand side:
∂μ(y)
∂y -4 y + 1

μ(y) y2

Integrate both sides with respect to


y :
1
log(μ(y))  - - 4 log(y)
y

Take exponentials of both sides:


ⅇ-1/y
μ(y) 
y4

Multiply both sides of


y(x)2 + ⅆy(x)
ⅆx
x - y(x)2 - 2 x y(x)  0 by
μ(y(x)) :
ⅇ-1/y(x) ⅇ-1/y(x) x - y(x)2 - 2 x y(x) ⅆy(x)
ⅆx
+ 0
y(x)2 y(x)4

ⅇ-1/y
Let P(x, y)  y2

and
ⅇ-1/y x-y2 -2 x y
Q(x, y)  y4
.

This is an exact equation, because


∂P(x,y)
∂y


- 2 ⅇy3
-1/y ⅇ-1/y
+ y4


∂Q(x,y)
∂x
.

Define f (x, y)

Printed by Wolfram Mathematica Student Edition


6 ED-TAREA.nb

such that
∂ f (x,y)
∂x
 P(x, y)
and
∂ f (x,y)
∂y
 Q(x, y)

. :
Then, the solution will be given by
f (x, y)  c1 , where
c1
is an arbitrary constant.

∂ f (x,y)
Integrate ∂x

with respect to
x
in order to find
f (x, y) :
f (x, y)

ⅇ-1/y
∫ y2
ⅆx


ⅇ-1/y x
y2
+ g(y)

where g(y)
is an arbitrary function of
y .

Differentiate
f (x, y)
with respect to
y
in order to find
g(y) :
∂ f (x, y) ∂ ⅇ-1/y x ⅇ-1/y x 2 ⅇ-1/y x ⅆ g(y)
 + g(y)  - +
∂y ∂y y2 y4 y3 ⅆy

Substitute into
∂ f (x,y)
∂y
 Q(x, y) :
ⅇ-1/y x 2 ⅇ-1/y x ⅆ g(y) ⅇ-1/y x - y2 - 2 y x
- + 
y4 y3 ⅆy y4

Printed by Wolfram Mathematica Student Edition


ED-TAREA.nb 7

ⅆg(y)
Solve for ⅆy
:
ⅆ g(y) ⅇ-1/y
-
ⅆy y2

ⅆg(y)
Integrate ⅆy

with respect to
y :
g(y)

ⅇ-1/y
∫- y2
ⅆy


-ⅇ-1/y

Substitute g(y)
into f (x, y) :
ⅇ-1/y x
f (x, y)  -ⅇ-1/y +
y2

The solution is
f (x, y)  c1 :

Answer:

ⅇ-1/y x
-ⅇ-1/y +  c1
y2

Plots of sample individual solution »

Sample solution family »

Interactive differential equation solution plots »

In[ ]:=  (y Cos[x]) Dt[x] + (2 y - Sin[x]) Dt[y] == 0

Printed by Wolfram Mathematica Student Edition


8 ED-TAREA.nb

Input:

(y cos(x)) ⅆ x + (2 y - sin(x)) ⅆ y  0

ODE classification:

first-order nonlinear ordinary differential equation

Plots of sample individual solution »

Sample solution family »

Interactive differential equation solution plots »

Printed by Wolfram Mathematica Student Edition

You might also like