Question
Question: If the solution of the differential equation \(x\dfrac{dy}{dx}+y=x{{e}^{x}}\) be \(xy={{e}^{x}}\varp...
If the solution of the differential equation xdxdy+y=xex be xy=exφ(x)+c. Then, φ(x) is equal to?
(a) x + 1
(b) x – 1
(c) 1 – x
(d) x
Solution
Hint: For solving this question, we use the basic concepts of first order linear differential equations. The formula for first order linear equation dxdy + P(x)y = Q(x) is given by –
y e∫P(x)dx = ∫(Q(x)e∫P(x)dx) dx + c
Complete step by step answer:
Thus, to solve this problem, we first convert xdxdy+y=xex into format similar to dxdy + P(x)y = Q(x). This would be because we can then use the formula y e∫P(x)dx = ∫(Q(x)e∫P(x)dx) dx + c , to get the required differential equation. Thus, in the given problem, we have,
xdxdy+y=xex
Thus, dividing LHS and RHS by x, we get,
dxdy+xy=ex
Now, we are in the position to compare this equation to dxdy + P(x)y = Q(x). By comparing, we have,
P(x) = x1, Q(x) = ex
Now, evaluating, e∫P(x)dx , we have,
e∫x1dx=elnx = x (since, ∫x1dx = lnx )
Now, substituting this in y e∫P(x)dx = ∫(Q(x)e∫P(x)dx) dx + c, we have,
yx=∫xexdx+c -- (1)
Now, we use integration by parts to evaluate ∫xexdx. The formula for integration of parts is given by –
∫uvdx=u∫vdx−∫(dxdu∫vdx)dx
Where, in this case, u = x and v = ex . Thus, we have,
= u∫vdx−∫(dxdu∫vdx)dx
= x∫exdx−∫(dxd(x)∫exdx)dx
= xex−∫(1)exdx
(Since, dxd(x)=1 and ∫exdx=ex )
= xex−ex
Now, substituting this in (1), we get,
yx = xex−ex + c
xy = ex(x−1)+ c
Now, comparing this with xy=exφ(x)+c , we can tell that φ(x) = (x-1).
Hence, the correct option is (b) x-1.
Note: In case of first order linear differential equation problems, it is always useful to remember the formula for dxdy + P(x)y = Q(x), given by y e∫P(x)dx = ∫(Q(x)e∫P(x)dx) dx + c . At times equation may not be in the desired format, at those times it is suggested to manipulate the original differential equation slightly as done in the problem till we get equation of the format dxdy + P(x)y = Q(x).