1
Term Test 1 / Re: Problem 2 (morning)
« on: October 23, 2019, 10:05:07 AM »
Question 2:
$
xy''-(2x+1)y'+(x+1)y=0
$
Find wronskian form and $y_2$, given $y_1(x)=e^x$.
$y(1)=0,y'(1)=e$
Solution:
$y''-\frac{2x+1}{x}y'+\frac{x+1}{x}y=0$
$w=ce^{-\int p(x)\mathrm{d}x}=ce^{\int \frac{2x+1}{x}\mathrm{d}x}=ce^{2x}e^{\ln x}$
Let $c=1$, $w=xe^{2x}$
$
\begin{bmatrix}
y_1&y_2\\
y_1'&y_2'\\
\end{bmatrix}
=
\begin{bmatrix}
e^x&y_2\\
e^x&y_2'\\
\end{bmatrix}
=
e^xy_2'-e^xy_2=xe^{2x}
$
$
y_2'-y_2=xe^x
$
$
M=e^{\int-1\mathrm{d}x }=e^{-x}
$
Multiple $e^{-x}$ on both sides.
$
e^{-x}y_2'-e^{-x}y_2=x
$
$(e^{-x}y_2)'=x$
$
y_2=\frac12x^2e^x+e^x
$
$
y=c_1y_1+c_2y_2=c_1e^x+c_2\left(\frac12x^2e^x+e^x\right)
$
plug in $y(1)=0,y'(1)=e$.
we have $y=-\frac12e^x+\frac12x^2e^x$.
$
xy''-(2x+1)y'+(x+1)y=0
$
Find wronskian form and $y_2$, given $y_1(x)=e^x$.
$y(1)=0,y'(1)=e$
Solution:
$y''-\frac{2x+1}{x}y'+\frac{x+1}{x}y=0$
$w=ce^{-\int p(x)\mathrm{d}x}=ce^{\int \frac{2x+1}{x}\mathrm{d}x}=ce^{2x}e^{\ln x}$
Let $c=1$, $w=xe^{2x}$
$
\begin{bmatrix}
y_1&y_2\\
y_1'&y_2'\\
\end{bmatrix}
=
\begin{bmatrix}
e^x&y_2\\
e^x&y_2'\\
\end{bmatrix}
=
e^xy_2'-e^xy_2=xe^{2x}
$
$
y_2'-y_2=xe^x
$
$
M=e^{\int-1\mathrm{d}x }=e^{-x}
$
Multiple $e^{-x}$ on both sides.
$
e^{-x}y_2'-e^{-x}y_2=x
$
$(e^{-x}y_2)'=x$
$
y_2=\frac12x^2e^x+e^x
$
$
y=c_1y_1+c_2y_2=c_1e^x+c_2\left(\frac12x^2e^x+e^x\right)
$
plug in $y(1)=0,y'(1)=e$.
we have $y=-\frac12e^x+\frac12x^2e^x$.