Find the general solution to the equation displaystyle{x}{left(frac{{left.{d}{y}right.}}{{left.{d}{x}right.}}right)}+{3}{left({y}+{x}^{2}right)}=frac{{ sin{{x}}}}{{x}}

Question
Differential equations
Find the general solution to the equation $$\displaystyle{x}{\left(\frac{{\left.{d}{y}\right.}}{{\left.{d}{x}\right.}}\right)}+{3}{\left({y}+{x}^{2}\right)}=\frac{{ \sin{{x}}}}{{x}}$$

2021-02-21
Write this equation as follows:
$$\displaystyle\frac{{\left.{d}{y}\right.}}{{\left.{d}{x}\right.}}+{3}\frac{y}{{x}}+\frac{{ \sin{{x}}}}{{{x}^{2}}}-{3}{x}{\left({1}\right)}$$
We first solve the differential equation
$$\displaystyle\frac{{\left.{d}{y}\right.}}{{\left.{d}{x}\right.}}+{3}\frac{y}{{x}}={0}\Rightarrow\frac{{\left.{d}{y}\right.}}{{y}}=-{3}\frac{{\left.{d}{x}\right.}}{{x}}\Rightarrow\int\frac{{\left.{d}{y}\right.}}{{y}}=-{3}\int\frac{{\left.{d}{x}\right.}}{{x}}$$
Thus,
$$\displaystyle{\ln}{\left|{y}\right|}=-{3}{\ln}{\left|{x}\right|}+{C}=\frac{ \ln{{1}}}{{{\left|{x}^{3}\right|}}}+{C}$$
Here we used that $$\displaystyle\alpha \ln{\beta}={I}{n}\beta^{\alpha}$$. Now use the exponential function:
$$\displaystyle{\left|{y}\right|}=\frac{1}{{{\left|{x}^{3}\right|}}}\cdot{e}^{C}$$
Recall that $$\displaystyle{\left|\alpha\right|}=\pm\alpha$$, so we can write
$$\displaystyle{y}=\pm{e}^{C}\cdot\frac{1}{{x}^{3}}$$
Defining a new constant $$\displaystyle{D}=\pm{e}^{C}$$ yields
$$\displaystyle{y}=\frac{D}{{x}^{3}}$$
This is the solution of the homogeneous equation. To obtain the solution of the initial equation, we regard D as a function of x, so
$$\displaystyle\frac{{\left.{d}{y}\right.}}{{\left.{d}{x}\right.}}=\frac{{{D}'{x}^{3}-{3}{D}{x}^{2}}}{{{x}^{6}}}=\frac{{{D}'}}{{x}^{3}}-{3}\frac{{{D}}}{{x}^{4}}$$
Plugging this and (2) into (1) yields
$$\displaystyle\frac{{{D}'}}{{x}^{3}}-{3}\frac{D}{{x}^{4}}+{3}\frac{D}{{x}^{4}}=\frac{{ \sin{{x}}}}{{x}^{2}}-{3}{x}\Rightarrow\frac{{{D}'}}{{x}^{3}}=\frac{{ \sin{{x}}}}{{x}^{2}}-{3}{x}$$
Thus,
$$\displaystyle{D}'={x} \sin{{x}}-{3}{x}^{4}\Rightarrow{D}=\int{\left({x} \sin{{x}}-{3}{x}^{4}\right)}{\left.{d}{x}\right.}=\int{x} \sin{{x}}{\left.{d}{x}\right.}-{3}\int{x}^{4}{\left.{d}{x}\right.}$$
Now,
$$\displaystyle\int{x} \sin{{x}}{\left.{d}{x}\right.}={\left\lbrace{\left({u}={x}\Rightarrow{d}{u}={\left.{d}{x}\right.}\right)},{\left({d}{v}= \sin{{x}}{\left.{d}{x}\right.}\Rightarrow{v}=- \cos{{x}}\right)}\right\rbrace}$$
$$\displaystyle=-{x} \cos{{x}}+\int \cos{{x}}{\left.{d}{x}\right.}$$
$$\displaystyle=-{x} \cos{{x}}+ \sin{{x}}+{C}$$
Therefore,
$$\displaystyle{D}=-{x} \cos{{x}}+ \sin{{x}}-\frac{{{3}{x}^{5}}}{{5}}+{C}$$
Finally, plugging this into (2) yields the solution:
$$\displaystyle{y}=-\frac{{ \cos{{x}}}}{{x}^{2}}+\frac{{ \sin{{x}}}}{{x}^{3}}-\frac{3}{{5}}{x}^{2}+\frac{C}{{x}^{3}}$$

Relevant Questions

Solve the equation:
$$\displaystyle{\left({x}+{1}\right)}{\frac{{{\left.{d}{y}\right.}}}{{{\left.{d}{x}\right.}}}}={x}{\left({y}^{{2}}+{1}\right)}$$
Solve the equation:
$$\displaystyle{\left({a}-{x}\right)}{\left.{d}{y}\right.}+{\left({a}+{y}\right)}{\left.{d}{x}\right.}={0}$$
Give the correct answer and solve the given equation:
$$\displaystyle{x}{y}{\left.{d}{x}\right.}-{\left({y}+{2}\right)}{\left.{d}{y}\right.}={0}$$

To solve:
$$\displaystyle{\left(\begin{matrix}{x}-{2}{y}={2}\\{2}{x}+{3}{y}={11}\\{y}-{4}{z}=-{7}\end{matrix}\right)}$$

The following quadratic function in general form, $$\displaystyle{S}{\left({t}\right)}={5.8}{t}^{2}—{81.2}{t}+{1200}$$ models the number of luxury home sales, S(t), in a major Canadian urban area, according to statistical data gathered over a 12 year period. Luxury home sales are defined in this market as sales of properties worth over \$3 Million (inflation adjusted). In this case, $$\displaystyle{\left\lbrace{t}\right\rbrace}={\left\lbrace{0}\right\rbrace}\ \text{represents}\ {2000}{\quad\text{and}\quad}{\left\lbrace{t}\right\rbrace}={\left\lbrace{11}\right\rbrace}$$represents 2011. Use a calculator to find the year when the smallest number of luxury home sales occurred. Without sketching the function, interpret the meaning of this function, on the given practical domain, in one well-expressed sentence.

Find the general solution of the following equation.
y '(x)=-y+2
$$\displaystyle{\left({2}+{x}\right)}{y}'={3}{y}$$
$$\displaystyle{\left({D}^{{{6}}}+{6}{D}^{{{4}}}+{12}{D}^{{{2}}}+{8}\right)}{y}={0}$$
$$\displaystyle{\left({D}^{{{2}}}+{2}{D}-{1}\right)}{y}={0}$$