What is a solution to the differential equation \frac{dy}{dx}=\frac{2y+x^{2}}{x}?

Willow Cooper

Willow Cooper

Answered question

2022-04-19

What is a solution to the differential equation dydx=2y+x2x?

Answer & Explanation

veselrompoikm

veselrompoikm

Beginner2022-04-20Added 12 answers

This is a linear differential equation. Its solution can be composed of the homogeneous solution (yh(x)) plus a particular solution (yp(x)) so
y(x)=yh(x)+yp(x)
The homogeneous solution obeys
dyhdx2xyh(x)=0. Here, clearly the solution is
yh(x)=Cx2
By grouping variables:
dyhyh=2dxxlnyh=C1lnx2yh=Cx2
The determination of yp(x) must obey
dypdx2xyp(x)=x
We will suppose that yp(x)=c(x)yh(x). Substituting we obtain
yh(x)dc(x)dx+c(x)(dyh(x)dx2yh(x)x)=x or
yh(x)dc(x)dx=x so
dc(x)dx=xyh(x)=xx2=1x so
c(x)=logex and finally
y(x)=Cx2+loge(x)x2=(C+loge(x))x2
abangan85s0

abangan85s0

Beginner2022-04-21Added 16 answers

Alternative Approach
y=2y+x2x=2yx+x
y2xy=x
This is exact if we times it by a factor of 1x2
1x2y2x3y=1x
ie
(1x2y)=1x
1x2y=lnx+C
y=x2(lnx+C)
Integrating Factor
We can extract the "integrating factor" η(x) for the DE in form y2xy=x as:
η=exp(2xdx)
=e2lnx
=1x2

Do you have a similar question?

Recalculate according to your conditions!

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?