Question and Answers Forum

All Questions      Topic List

Differential Equation Questions

Previous in All Question      Next in All Question      

Previous in Differential Equation      Next in Differential Equation      

Question Number 100344 by bemath last updated on 26/Jun/20

solve y′′+y = sin x

$$\mathrm{solve}\:\mathrm{y}''+\mathrm{y}\:=\:\mathrm{sin}\:\mathrm{x} \\ $$

Answered by bobhans last updated on 26/Jun/20

homogenous solution  η^2 +1 = 0 ⇒η =± i   y_h  = Asin x + Bcos x  particular solution   y_p  = x(Asin x+ Bcos x)   y_p ′= Asin x+Bcos x+x(Acos x−Bsin x)  y_p ′′= 2Acos x−2Bsin x+x(−Asin x−Bcos x)  A=0 ∧ B=(1/2)  y_p  = (1/2)xcos x   Generall solution   y_g  = Asin x+Bcos x+(1/2)x cos x

$$\mathrm{homogenous}\:\mathrm{solution} \\ $$$$\eta^{\mathrm{2}} +\mathrm{1}\:=\:\mathrm{0}\:\Rightarrow\eta\:=\pm\:\mathrm{i}\: \\ $$$$\mathrm{y}_{\mathrm{h}} \:=\:\mathrm{Asin}\:\mathrm{x}\:+\:\mathrm{Bcos}\:\mathrm{x} \\ $$$$\mathrm{particular}\:\mathrm{solution}\: \\ $$$$\mathrm{y}_{\mathrm{p}} \:=\:{x}\left({A}\mathrm{sin}\:\mathrm{x}+\:\mathrm{Bcos}\:\mathrm{x}\right)\: \\ $$$$\mathrm{y}_{\mathrm{p}} '=\:\mathrm{Asin}\:\mathrm{x}+\mathrm{Bcos}\:\mathrm{x}+{x}\left({A}\mathrm{cos}\:\mathrm{x}−\mathrm{Bsin}\:\mathrm{x}\right) \\ $$$$\mathrm{y}_{\mathrm{p}} ''=\:\mathrm{2Acos}\:\mathrm{x}−\mathrm{2Bsin}\:\mathrm{x}+{x}\left(−{A}\mathrm{sin}\:\mathrm{x}−\mathrm{Bcos}\:\mathrm{x}\right) \\ $$$$\mathrm{A}=\mathrm{0}\:\wedge\:\mathrm{B}=\frac{\mathrm{1}}{\mathrm{2}} \\ $$$$\mathrm{y}_{\mathrm{p}} \:=\:\frac{\mathrm{1}}{\mathrm{2}}{x}\mathrm{cos}\:{x}\: \\ $$$$\mathbb{G}\mathrm{enerall}\:\mathrm{solution}\: \\ $$$$\mathrm{y}_{{g}} \:=\:{A}\mathrm{sin}\:\mathrm{x}+\mathrm{Bcos}\:\mathrm{x}+\frac{\mathrm{1}}{\mathrm{2}}\mathrm{x}\:\mathrm{cos}\:\mathrm{x}\: \\ $$

Answered by mathmax by abdo last updated on 26/Jun/20

y^(′′)  +y =sinx   (he) →r^2 +1 =0 ⇒r =+^− i ⇒y_h =ae^(ix)  +be^(−ix)  =αcosx +βsinx  =αu_1  +β u_2   W(u_1  ,u_2 ) = determinant (((cosx           sinx)),((−sinx       cosx)))=1  W_1 = determinant (((0           sinx)),((sinx    cosx)))=−sin^2 x  W_2 = determinant (((cosx        0)),((−sinx    sinx)))=cosx sinx  v_1 =∫ (w_1 /w)dx =−∫ ((sin^2 x)/1)dx =−∫((1−cos(2x))/2) =−(x/2)+(1/4)sin(2x)  v_2 =∫ (w_2 /w)dx =∫ cosx sinx dx =(1/2)∫ sin(2x)dx =−(1/4)cos(2x) ⇒  y_p =u_1 v_1  +u_2 v_2 =cosx(−(x/2)+(1/4)sin(2x))+sinx(−(1/4)cos(2x))  =−(x/2)cosx +(1/4)cosx sin(2x)−(1/4)sinx cos(2x)  =−(x/2)cosx +(1/2)cos^2 x sinx −(1/4)sinx(2cos^2 x−1)  =−(x/2)cosx +(1/4)sinx  the general solution is  y =y_h  +y_p =αcosx +β sinx −(x/2)cosx +(1/4)sinx

$$\mathrm{y}^{''} \:+\mathrm{y}\:=\mathrm{sinx}\:\:\:\left(\mathrm{he}\right)\:\rightarrow\mathrm{r}^{\mathrm{2}} +\mathrm{1}\:=\mathrm{0}\:\Rightarrow\mathrm{r}\:=\overset{−} {+}\mathrm{i}\:\Rightarrow\mathrm{y}_{\mathrm{h}} =\mathrm{ae}^{\mathrm{ix}} \:+\mathrm{be}^{−\mathrm{ix}} \:=\alpha\mathrm{cosx}\:+\beta\mathrm{sinx} \\ $$$$=\alpha\mathrm{u}_{\mathrm{1}} \:+\beta\:\mathrm{u}_{\mathrm{2}} \\ $$$$\mathrm{W}\left(\mathrm{u}_{\mathrm{1}} \:,\mathrm{u}_{\mathrm{2}} \right)\:=\begin{vmatrix}{\mathrm{cosx}\:\:\:\:\:\:\:\:\:\:\:\mathrm{sinx}}\\{−\mathrm{sinx}\:\:\:\:\:\:\:\mathrm{cosx}}\end{vmatrix}=\mathrm{1} \\ $$$$\mathrm{W}_{\mathrm{1}} =\begin{vmatrix}{\mathrm{0}\:\:\:\:\:\:\:\:\:\:\:\mathrm{sinx}}\\{\mathrm{sinx}\:\:\:\:\mathrm{cosx}}\end{vmatrix}=−\mathrm{sin}^{\mathrm{2}} \mathrm{x} \\ $$$$\mathrm{W}_{\mathrm{2}} =\begin{vmatrix}{\mathrm{cosx}\:\:\:\:\:\:\:\:\mathrm{0}}\\{−\mathrm{sinx}\:\:\:\:\mathrm{sinx}}\end{vmatrix}=\mathrm{cosx}\:\mathrm{sinx} \\ $$$$\mathrm{v}_{\mathrm{1}} =\int\:\frac{\mathrm{w}_{\mathrm{1}} }{\mathrm{w}}\mathrm{dx}\:=−\int\:\frac{\mathrm{sin}^{\mathrm{2}} \mathrm{x}}{\mathrm{1}}\mathrm{dx}\:=−\int\frac{\mathrm{1}−\mathrm{cos}\left(\mathrm{2x}\right)}{\mathrm{2}}\:=−\frac{\mathrm{x}}{\mathrm{2}}+\frac{\mathrm{1}}{\mathrm{4}}\mathrm{sin}\left(\mathrm{2x}\right) \\ $$$$\mathrm{v}_{\mathrm{2}} =\int\:\frac{\mathrm{w}_{\mathrm{2}} }{\mathrm{w}}\mathrm{dx}\:=\int\:\mathrm{cosx}\:\mathrm{sinx}\:\mathrm{dx}\:=\frac{\mathrm{1}}{\mathrm{2}}\int\:\mathrm{sin}\left(\mathrm{2x}\right)\mathrm{dx}\:=−\frac{\mathrm{1}}{\mathrm{4}}\mathrm{cos}\left(\mathrm{2x}\right)\:\Rightarrow \\ $$$$\mathrm{y}_{\mathrm{p}} =\mathrm{u}_{\mathrm{1}} \mathrm{v}_{\mathrm{1}} \:+\mathrm{u}_{\mathrm{2}} \mathrm{v}_{\mathrm{2}} =\mathrm{cosx}\left(−\frac{\mathrm{x}}{\mathrm{2}}+\frac{\mathrm{1}}{\mathrm{4}}\mathrm{sin}\left(\mathrm{2x}\right)\right)+\mathrm{sinx}\left(−\frac{\mathrm{1}}{\mathrm{4}}\mathrm{cos}\left(\mathrm{2x}\right)\right) \\ $$$$=−\frac{\mathrm{x}}{\mathrm{2}}\mathrm{cosx}\:+\frac{\mathrm{1}}{\mathrm{4}}\mathrm{cosx}\:\mathrm{sin}\left(\mathrm{2x}\right)−\frac{\mathrm{1}}{\mathrm{4}}\mathrm{sinx}\:\mathrm{cos}\left(\mathrm{2x}\right) \\ $$$$=−\frac{\mathrm{x}}{\mathrm{2}}\mathrm{cosx}\:+\frac{\mathrm{1}}{\mathrm{2}}\mathrm{cos}^{\mathrm{2}} \mathrm{x}\:\mathrm{sinx}\:−\frac{\mathrm{1}}{\mathrm{4}}\mathrm{sinx}\left(\mathrm{2cos}^{\mathrm{2}} \mathrm{x}−\mathrm{1}\right) \\ $$$$=−\frac{\mathrm{x}}{\mathrm{2}}\mathrm{cosx}\:+\frac{\mathrm{1}}{\mathrm{4}}\mathrm{sinx}\:\:\mathrm{the}\:\mathrm{general}\:\mathrm{solution}\:\mathrm{is} \\ $$$$\mathrm{y}\:=\mathrm{y}_{\mathrm{h}} \:+\mathrm{y}_{\mathrm{p}} =\alpha\mathrm{cosx}\:+\beta\:\mathrm{sinx}\:−\frac{\mathrm{x}}{\mathrm{2}}\mathrm{cosx}\:+\frac{\mathrm{1}}{\mathrm{4}}\mathrm{sinx} \\ $$$$ \\ $$

Terms of Service

Privacy Policy

Contact: info@tinkutara.com