Vous êtes sur la page 1sur 2

Input:

y (x) +

y(x)

sin(x), y 0
x
3

ODE classification:

first- order linear ordinary differential equation


Alternate forms:

y(x) x (sin(x) - y (x)), y 0


3
x y (x) + y(x)

sin(x), y 0
x
3
y(x)
1
1

y (x) +
- x - x , y 0
x
2
2
3
Alternate form assuming x is positive:

x sin(x) x y (x) + y(x), y 0


3
Differential equation solutions:

y(x)

6 sin(x) - 6 x cos(x) + - 3

6x

Possible intermediate steps:

Solve the linear equation

Let (x)

1
x

y(x)
x

y(x)
x

sin(x), such that y 3 0:

x.

Multiply both sides by (x):


y(x)
+ y(x) x sin(x)
x
x

Substitute 1
x

Out[14]=

y(x)
x

(x):
x

(x) y(x) x sin(x)

Apply the reverse product rule g

f
x

+f

g
x

(f
x

g) to the left- hand side:

(x y(x)) x sin(x)

Integrate both sides with respect to x:

(x y(x)) x x sin(x) x

Evaluate the integrals:


x y(x) -(x cos(x)) + sin(x) + c1 , where c1 is an arbitrary constant.

Divide both sides by (x) x:


-(x cos(x)) + sin(x) + c1
y(x)
x

Solve for c1 using the initial conditions:

Substitute y 3 0 into y(x)


3 c1 +

3
2

c1 +sin(x)-x cos(x)
:
x

- 6

Solve the equation:


c1

1
6

-3

3 +

Substitute c1

1
6

- 3

3 into y(x)

c1 +sin(x)-x cos(x)
:
x

Answer:

y(x)

-6 x cos(x) + 6 sin(x) - 3
6x

3 +

Vous aimerez peut-être aussi