MHB 2.2.8 de xy'+2y=sin x,y(pi)=1/pi find solution

  • Thread starter Thread starter karush
  • Start date Start date
karush
Gold Member
MHB
Messages
3,240
Reaction score
5
$\textsf{ Find the solution of the given initial value problem. State the interval in which the solution is valid.}$
$$xy^\prime+2y=\sin x, \qquad y(\pi)=\frac{1}{\pi}$$
$$\begin{array}{lrll}
\textit{rewrite as}\\
&\displaystyle y' +P(x)y
&\displaystyle=g(x) &_{(2)}\\
\textit{Divide thru by x}\\
&\displaystyle y'+\frac{2}{x}y
&\displaystyle=\frac{\sin x}{x}\\
\textit {Find u(x) }\\
&\displaystyle u(x)
&\displaystyle =\exp\int \frac{2}{x} \, dx &_{(3)}\\
&\displaystyle&=e^{\ln x^2}\\
&\displaystyle&=x^2\\
\textit{multiply thru w/ $u(x)$} \\
&\displaystyle x^2y' +2xy
&\displaystyle =x^2\sin x &_{(4)}\\
\textsf{rewrite:}\\
&(x^2 y)'&=u(x)g(x)&_{(5)}\\
\textit{Integrate }\\
&\displaystyle x^2 y
&\displaystyle=\int x^2\sin x \, dx&_{(6)}\\
&\displaystyle &=2x \sin (x)-x^2\cos(x)-2\cos(x)+c_1 &_{(5)}\\
\textit{divide thru by $x^2$}\\
&\displaystyle y
&\displaystyle=\frac{2\sin (x)}{x}
-\cos(x)-\frac{2\cos(x)}{x^2}
+\frac{c_1}{x^2} &_{(6)}\\
\textit{W|A }\\
&y&=\color{red}{\displaystyle\frac{\sin x - \cos x}{x^2}}, \qquad x>0
\end{array}$$

ok I stopped here to see if so far is ok
but the interval is kinda ? to me
 
Last edited:
Physics news on Phys.org
You wound up with $x^2\sin(x)$ on the RHS before integrating, but it should be $x\sin(x)$. :)
 
$$\begin{array}{lrll}
\textit{multiply thru w/ $x$} \\
&\displaystyle x^2y' +2xy
&\displaystyle =x\sin x\\
\textit{Integrate }\\
&\displaystyle x^2 y
&\displaystyle=\int x\sin x \, dx\\
&\displaystyle &=\sin{x}-x\cos{x}+c_1 \\
\textit{divide thru by $x^2$}\\
&\displaystyle y
&\displaystyle=\frac{\sin{x}}{x^2}-\frac{\cos{x}}{x}+\frac{c_1}{x^2}
\end{array}$$
$\textit{eMahthHelp returned }$
$$y{\left(x \right)} = \frac{1}{x} \left(\frac{C_{1}}{x} - \cos{\left(x \right)} + \frac{1}{x} \sin{\left(x \right)}\right)$$
ok now dealing with
$$\displaystyle y(\pi)=\frac{\sin{\pi}}{\pi^2}-\frac{\cos{\pi}}{\pi}+\frac{c_1}{\pi^2}=\frac{1}{\pi}$$
$$\displaystyle y(\pi)=\frac{0}{\pi^2}+\frac{1}{\pi}+\frac{c_1}{\pi^2}=\frac{1}{\pi}$$
$\textit{so}$
$\displaystyle y(\pi)
=\frac{\sin{\pi}}{\pi^2}
-\frac{\cos{\pi}}{\pi}
+\frac{c_1}{\pi^2}=\frac{1}{\pi}\\$
$\textit{then $c_1=0$ so}$
$y=\color{red}{\displaystyle\frac{\sin x - x\cos x}{x^2}}, \qquad x>0 $
 
Last edited:
There is the following linear Volterra equation of the second kind $$ y(x)+\int_{0}^{x} K(x-s) y(s)\,{\rm d}s = 1 $$ with kernel $$ K(x-s) = 1 - 4 \sum_{n=1}^{\infty} \dfrac{1}{\lambda_n^2} e^{-\beta \lambda_n^2 (x-s)} $$ where $y(0)=1$, $\beta>0$ and $\lambda_n$ is the $n$-th positive root of the equation $J_0(x)=0$ (here $n$ is a natural number that numbers these positive roots in the order of increasing their values), $J_0(x)$ is the Bessel function of the first kind of zero order. I...
Are there any good visualization tutorials, written or video, that show graphically how separation of variables works? I particularly have the time-independent Schrodinger Equation in mind. There are hundreds of demonstrations out there which essentially distill to copies of one another. However I am trying to visualize in my mind how this process looks graphically - for example plotting t on one axis and x on the other for f(x,t). I have seen other good visual representations of...

Similar threads

Replies
2
Views
1K
Replies
1
Views
1K
Replies
4
Views
1K
Replies
4
Views
2K
Replies
1
Views
1K
Replies
3
Views
1K
Replies
7
Views
3K
Replies
1
Views
1K
Replies
6
Views
2K
Back
Top