How can I solve the differential equation y'=sin x−xsin x ?

Lina Neal

Lina Neal

Answered question

2022-09-12

How can I solve the differential equation y = sin x - x sin x ?

Answer & Explanation

incibracy5x

incibracy5x

Beginner2022-09-13Added 21 answers

y = d y d x = sin x - x sin x
To find y, we have to take the integral of y':
y = ( sin x - x sin x ) d x
y = sin x d x - x sin x d x = - cos x - I
I = x sin x d x
The argument of the integral is product of two functions. As such, we will use integration by parts:
u = x , and d v = sin x d x
d u = d x , and v = - cos x
u d v = u v - v d u
x sin x d x = - x cos x - - cos x d x =
- x cos x + cos x d x = - x cos x + sin x
I = - x cos x + sin x
Let's plug it in:
y = - cos x - ( - x cos x + sin x ) = - cos x + x cos x - sin x
y = ( x - 1 ) cos x - sin x + C
This is the solution to the differential equation in your problem statement.

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Differential Equations

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?