10.8 problem 8

Internal problem ID [1761]

Book: Differential equations and their applications, 3rd ed., M. Braun
Section: Section 2.4, The method of variation of parameters. Page 154
Problem number: 8.
ODE order: 2.
ODE degree: 1.

CAS Maple gives this as type [[_2nd_order, _linear, _nonhomogeneous]]

Solve \begin {gather*} \boxed {y^{\prime \prime }-y-f \relax (t )=0} \end {gather*} With initial conditions \begin {align*} [y \relax (0) = 0, y^{\prime }\relax (0) = 0] \end {align*}

Solution by Maple

Time used: 0.063 (sec). Leaf size: 39

dsolve([diff(y(t),t$2)-y(t)=f(t),y(0) = 0, D(y)(0) = 0],y(t), singsol=all)
 

\[ y \relax (t ) = \frac {\left (\int _{0}^{t}{\mathrm e}^{-\textit {\_z1}} f \left (\textit {\_z1} \right )d \textit {\_z1} \right ) {\mathrm e}^{t}}{2}-\frac {\left (\int _{0}^{t}{\mathrm e}^{\textit {\_z1}} f \left (\textit {\_z1} \right )d \textit {\_z1} \right ) {\mathrm e}^{-t}}{2} \]

Solution by Mathematica

Time used: 0.033 (sec). Leaf size: 99

DSolve[{y''[t]-y[t]==f[t],{y[0]==0,y'[0]==0}},y[t],t,IncludeSingularSolutions -> True]
 

\begin{align*} y(t)\to e^{-t} \left (e^{2 t} \left (\int _1^t\frac {1}{2} e^{-K[1]} f(K[1])dK[1]-\int _1^0\frac {1}{2} e^{-K[1]} f(K[1])dK[1]\right )+\int _1^t-\frac {1}{2} e^{K[2]} f(K[2])dK[2]-\int _1^0-\frac {1}{2} e^{K[2]} f(K[2])dK[2]\right ) \\ \end{align*}