Internal problem ID [2516]
Internal file name [OUTPUT/2008_Sunday_June_05_2022_02_44_05_AM_15357516/index.tex
]
Book: Mathematical methods for physics and engineering, Riley, Hobson, Bence, second edition,
2002
Section: Chapter 15, Higher order ordinary differential equations. 15.4 Exercises, page
523
Problem number: Problem 15.4.
ODE order: 2.
ODE degree: 1.
The type(s) of ODE detected by this program : "kovacic", "second_order_linear_constant_coeff", "linear_second_order_ode_solved_by_an_integrating_factor"
Maple gives the following as the ode type
[[_2nd_order, _with_linear_symmetries]]
\[ \boxed {f^{\prime \prime }+6 f^{\prime }+9 f={\mathrm e}^{-t}} \] With initial conditions \begin {align*} [f \left (0\right ) = 0, f^{\prime }\left (0\right ) = \lambda ] \end {align*}
This is a linear ODE. In canonical form it is written as \begin {align*} f^{\prime \prime } + p(t)f^{\prime } + q(t) f &= F \end {align*}
Where here \begin {align*} p(t) &=6\\ q(t) &=9\\ F &={\mathrm e}^{-t} \end {align*}
Hence the ode is \begin {align*} f^{\prime \prime }+6 f^{\prime }+9 f = {\mathrm e}^{-t} \end {align*}
The domain of \(p(t)=6\) is \[
\{-\infty
This is second order non-homogeneous ODE. In standard form the ODE is \[ A f''(t) + B f'(t) + C f(t) = f(t) \] Where \(A=1, B=6, C=9, f(t)={\mathrm e}^{-t}\).
Let the solution be \[ f = f_h + f_p \] Where \(f_h\) is the solution to the homogeneous ODE \( A f''(t) + B f'(t) + C f(t) = 0\), and \(f_p\) is a
particular solution to the non-homogeneous ODE \(A f''(t) + B f'(t) + C f(t) = f(t)\). \(f_h\) is the solution to \[ f^{\prime \prime }+6 f^{\prime }+9 f = 0 \] This is second
order with constant coefficients homogeneous ODE. In standard form the ODE is \[ A f''(t) + B f'(t) + C f(t) = 0 \]
Where in the above \(A=1, B=6, C=9\). Let the solution be \(f=e^{\lambda t}\). Substituting this into the ODE gives \[ \lambda ^{2} {\mathrm e}^{\lambda t}+6 \lambda \,{\mathrm e}^{\lambda t}+9 \,{\mathrm e}^{\lambda t} = 0 \tag {1} \]
Since exponential function is never zero, then dividing Eq(2) throughout by \(e^{\lambda t}\) gives \[ \lambda ^{2}+6 \lambda +9 = 0 \tag {2} \]
Equation (2) is the characteristic equation of the ODE. Its roots determine the
general solution form.Using the quadratic formula \[ \lambda _{1,2} = \frac {-B}{2 A} \pm \frac {1}{2 A} \sqrt {B^2 - 4 A C} \] Substituting \(A=1, B=6, C=9\) into the above gives
\begin {align*} \lambda _{1,2} &= \frac {-6}{(2) \left (1\right )} \pm \frac {1}{(2) \left (1\right )} \sqrt {\left (6\right )^2 - (4) \left (1\right )\left (9\right )}\\ &= -3 \end {align*}
Hence this is the case of a double root \(\lambda _{1,2} = 3\). Therefore the solution is \[ f= c_{1} {\mathrm e}^{-3 t} + c_{2} t \,{\mathrm e}^{-3 t} \tag {1} \] Therefore the
homogeneous solution \(f_h\) is \[
f_h = c_{1} {\mathrm e}^{-3 t}+c_{2} t \,{\mathrm e}^{-3 t}
\] The particular solution is now found using the method of
undetermined coefficients. Looking at the RHS of the ode, which is \[ {\mathrm e}^{-t} \] Shows that the
corresponding undetermined set of the basis functions (UC_set) for the trial solution is \[ [\{{\mathrm e}^{-t}\}] \]
While the set of the basis functions for the homogeneous solution found earlier is \[ \{t \,{\mathrm e}^{-3 t}, {\mathrm e}^{-3 t}\} \] Since there
is no duplication between the basis function in the UC_set and the basis functions of the
homogeneous solution, the trial solution is a linear combination of all the basis in the
UC_set. \[
f_p = A_{1} {\mathrm e}^{-t}
\] The unknowns \(\{A_{1}\}\) are found by substituting the above trial solution \(f_p\) into the ODE
and comparing coefficients. Substituting the trial solution into the ODE and simplifying
gives \[
4 A_{1} {\mathrm e}^{-t} = {\mathrm e}^{-t}
\] Solving for the unknowns by comparing coefficients results in \[ \left [A_{1} = {\frac {1}{4}}\right ] \] Substituting the above
back in the above trial solution \(f_p\), gives the particular solution \[
f_p = \frac {{\mathrm e}^{-t}}{4}
\] Therefore the general solution
is \begin{align*}
f &= f_h + f_p \\
&= \left (c_{1} {\mathrm e}^{-3 t}+c_{2} t \,{\mathrm e}^{-3 t}\right ) + \left (\frac {{\mathrm e}^{-t}}{4}\right ) \\
\end{align*} Which simplifies to \[
f = {\mathrm e}^{-3 t} \left (c_{2} t +c_{1} \right )+\frac {{\mathrm e}^{-t}}{4}
\] Initial conditions are used to solve for the constants of
integration.
Looking at the above solution \begin {align*} f = {\mathrm e}^{-3 t} \left (c_{2} t +c_{1} \right )+\frac {{\mathrm e}^{-t}}{4} \tag {1} \end {align*}
Initial conditions are now substituted in the above solution. This will generate the required
equations to solve for the integration constants. substituting \(f = 0\) and \(t = 0\) in the above gives
\begin {align*} 0 = \frac {1}{4}+c_{1}\tag {1A} \end {align*}
Taking derivative of the solution gives \begin {align*} f^{\prime } = -3 \,{\mathrm e}^{-3 t} \left (c_{2} t +c_{1} \right )+{\mathrm e}^{-3 t} c_{2} -\frac {{\mathrm e}^{-t}}{4} \end {align*}
substituting \(f^{\prime } = \lambda \) and \(t = 0\) in the above gives \begin {align*} \lambda = -\frac {1}{4}-3 c_{1} +c_{2}\tag {2A} \end {align*}
Equations {1A,2A} are now solved for \(\{c_{1}, c_{2}\}\). Solving for the constants gives \begin {align*} c_{1}&=-{\frac {1}{4}}\\ c_{2}&=\lambda -\frac {1}{2} \end {align*}
Substituting these values back in above solution results in \begin {align*} f = \left (\lambda -\frac {1}{2}\right ) t \,{\mathrm e}^{-3 t}-\frac {{\mathrm e}^{-3 t}}{4}+\frac {{\mathrm e}^{-t}}{4} \end {align*}
Summary
The solution(s) found are the following \begin{align*}
\tag{1} f &= \left (\lambda -\frac {1}{2}\right ) t \,{\mathrm e}^{-3 t}-\frac {{\mathrm e}^{-3 t}}{4}+\frac {{\mathrm e}^{-t}}{4} \\
\end{align*} Verification of solutions
\[
f = \left (\lambda -\frac {1}{2}\right ) t \,{\mathrm e}^{-3 t}-\frac {{\mathrm e}^{-3 t}}{4}+\frac {{\mathrm e}^{-t}}{4}
\] Verified OK.
The ode satisfies this form \[ f^{\prime \prime }+p \left (t \right ) f^{\prime }+\frac {\left (p \left (t \right )^{2}+p^{\prime }\left (t \right )\right ) f}{2} = f \left (t \right ) \] Where \( p(t) = 6\). Therefore, there is an integrating factor given by
\begin {align*} M(x) &= e^{\frac {1}{2} \int p \, dx} \\ &= e^{ \int 6 \, dx} \\ &= {\mathrm e}^{3 t} \end {align*}
Multiplying both sides of the ODE by the integrating factor \(M(x)\) makes the left side of
the ODE a complete differential \begin{align*}
\left ( M(x) f \right )'' &= {\mathrm e}^{3 t} {\mathrm e}^{-t} \\
\left ( {\mathrm e}^{3 t} f \right )'' &= {\mathrm e}^{3 t} {\mathrm e}^{-t} \\
\end{align*} Integrating once gives \[ \left ( {\mathrm e}^{3 t} f \right )' = \frac {{\mathrm e}^{2 t}}{2}+c_{1} \] Integrating again gives \[ \left ( {\mathrm e}^{3 t} f \right ) = t c_{1} +\frac {{\mathrm e}^{2 t}}{4}+c_{2} \]
Hence the solution is \begin{align*}
f &= \frac {t c_{1} +\frac {{\mathrm e}^{2 t}}{4}+c_{2}}{{\mathrm e}^{3 t}} \\
\end{align*} Or \[
f = c_{1} t \,{\mathrm e}^{-3 t}+\frac {{\mathrm e}^{-t}}{4}+{\mathrm e}^{-3 t} c_{2}
\] Initial conditions are used to solve for the constants of
integration.
Looking at the above solution \begin {align*} f = c_{1} t \,{\mathrm e}^{-3 t}+\frac {{\mathrm e}^{-t}}{4}+{\mathrm e}^{-3 t} c_{2} \tag {1} \end {align*}
Initial conditions are now substituted in the above solution. This will generate the required
equations to solve for the integration constants. substituting \(f = 0\) and \(t = 0\) in the above gives
\begin {align*} 0 = \frac {1}{4}+c_{2}\tag {1A} \end {align*}
Taking derivative of the solution gives \begin {align*} f^{\prime } = c_{1} {\mathrm e}^{-3 t}-3 c_{1} t \,{\mathrm e}^{-3 t}-\frac {{\mathrm e}^{-t}}{4}-3 \,{\mathrm e}^{-3 t} c_{2} \end {align*}
substituting \(f^{\prime } = \lambda \) and \(t = 0\) in the above gives \begin {align*} \lambda = c_{1} -\frac {1}{4}-3 c_{2}\tag {2A} \end {align*}
Equations {1A,2A} are now solved for \(\{c_{1}, c_{2}\}\). Solving for the constants gives \begin {align*} c_{1}&=\lambda -\frac {1}{2}\\ c_{2}&=-{\frac {1}{4}} \end {align*}
Substituting these values back in above solution results in \begin {align*} f = t \,{\mathrm e}^{-3 t} \lambda -\frac {t \,{\mathrm e}^{-3 t}}{2}-\frac {{\mathrm e}^{-3 t}}{4}+\frac {{\mathrm e}^{-t}}{4} \end {align*}
Which simplifies to \[
f = \frac {\left (-1+\left (4 \lambda -2\right ) t \right ) {\mathrm e}^{-3 t}}{4}+\frac {{\mathrm e}^{-t}}{4}
\] The solution(s) found are the following \begin{align*}
\tag{1} f &= \frac {\left (-1+\left (4 \lambda -2\right ) t \right ) {\mathrm e}^{-3 t}}{4}+\frac {{\mathrm e}^{-t}}{4} \\
\end{align*} Verification of solutions
\[
f = \frac {\left (-1+\left (4 \lambda -2\right ) t \right ) {\mathrm e}^{-3 t}}{4}+\frac {{\mathrm e}^{-t}}{4}
\] Verified OK.
Writing the ode as \begin {align*} f^{\prime \prime }+6 f^{\prime }+9 f &= 0 \tag {1} \\ A f^{\prime \prime } + B f^{\prime } + C f &= 0 \tag {2} \end {align*}
Comparing (1) and (2) shows that \begin {align*} A &= 1 \\ B &= 6\tag {3} \\ C &= 9 \end {align*}
Applying the Liouville transformation on the dependent variable gives \begin {align*} z(t) &= f e^{\int \frac {B}{2 A} \,dt} \end {align*}
Then (2) becomes \begin {align*} z''(t) = r z(t)\tag {4} \end {align*}
Where \(r\) is given by \begin {align*} r &= \frac {s}{t}\tag {5} \\ &= \frac {2 A B' - 2 B A' + B^2 - 4 A C}{4 A^2} \end {align*}
Substituting the values of \(A,B,C\) from (3) in the above and simplifying gives \begin {align*} r &= \frac {0}{1}\tag {6} \end {align*}
Comparing the above to (5) shows that \begin {align*} s &= 0\\ t &= 1 \end {align*}
Therefore eq. (4) becomes \begin {align*} z''(t) &= 0 \tag {7} \end {align*}
Equation (7) is now solved. After finding \(z(t)\) then \(f\) is found using the inverse transformation
\begin {align*} f &= z \left (t \right ) e^{-\int \frac {B}{2 A} \,dt} \end {align*}
The first step is to determine the case of Kovacic algorithm this ode belongs to. There are 3
cases depending on the order of poles of \(r\) and the order of \(r\) at \(\infty \). The following table
summarizes these cases. Case Allowed pole order for \(r\) Allowed value for \(\mathcal {O}(\infty )\) 1 \(\left \{ 0,1,2,4,6,8,\cdots \right \} \) \(\left \{ \cdots ,-6,-4,-2,0,2,3,4,5,6,\cdots \right \} \) 2
Need to have at least one pole
that is either order \(2\) or odd order
greater than \(2\). Any other pole order
is allowed as long as the above
condition is satisfied. Hence the
following set of pole orders are all
allowed. \(\{1,2\}\),\(\{1,3\}\),\(\{2\}\),\(\{3\}\),\(\{3,4\}\),\(\{1,2,5\}\). no condition 3 \(\left \{ 1,2\right \} \) \(\left \{ 2,3,4,5,6,7,\cdots \right \} \) The order of \(r\) at \(\infty \) is the degree of \(t\) minus the degree of \(s\). Therefore \begin {align*} O\left (\infty \right ) &= \text {deg}(t) - \text {deg}(s) \\ &= 0 - -\infty \\ &= \infty \end {align*}
There are no poles in \(r\). Therefore the set of poles \(\Gamma \) is empty. Since there is no odd order pole
larger than \(2\) and the order at \(\infty \) is \(infinity\) then the necessary conditions for case one are met.
Therefore \begin {align*} L &= [1] \end {align*}
Since \(r = 0\) is not a function of \(t\), then there is no need run Kovacic algorithm to obtain a solution
for transformed ode \(z''=r z\) as one solution is \[ z_1(t) = 1 \] Using the above, the solution for the original ode can
now be found. The first solution to the original ode in \(f\) is found from \begin{align*}
f_1 &= z_1 e^{ \int -\frac {1}{2} \frac {B}{A} \,dt} \\
&= z_1 e^{ -\int \frac {1}{2} \frac {6}{1} \,dt} \\
&= z_1 e^{-3 t} \\
&= z_1 \left ({\mathrm e}^{-3 t}\right ) \\
\end{align*} Which simplifies to \[
f_1 = {\mathrm e}^{-3 t}
\]
The second solution \(f_2\) to the original ode is found using reduction of order \[ f_2 = f_1 \int \frac { e^{\int -\frac {B}{A} \,dt}}{f_1^2} \,dt \] Substituting gives \begin{align*}
f_2 &= f_1 \int \frac { e^{\int -\frac {6}{1} \,dt}}{\left (f_1\right )^2} \,dt \\
&= f_1 \int \frac { e^{-6 t}}{\left (f_1\right )^2} \,dt \\
&= f_1 \left (t\right ) \\
\end{align*}
Therefore the solution is
\begin{align*}
f &= c_{1} f_1 + c_{2} f_2 \\
&= c_{1} \left ({\mathrm e}^{-3 t}\right ) + c_{2} \left ({\mathrm e}^{-3 t}\left (t\right )\right ) \\
\end{align*} This is second order nonhomogeneous ODE. Let the solution be \[
f = f_h + f_p
\] Where \(f_h\) is the solution to
the homogeneous ODE \( A f''(t) + B f'(t) + C f(t) = 0\), and \(f_p\) is a particular solution to the nonhomogeneous ODE \(A f''(t) + B f'(t) + C f(t) = f(t)\). \(f_h\) is the
solution to \[
f^{\prime \prime }+6 f^{\prime }+9 f = 0
\] The homogeneous solution is found using the Kovacic algorithm which results in \[
f_h = c_{1} {\mathrm e}^{-3 t}+c_{2} t \,{\mathrm e}^{-3 t}
\]
The particular solution is now found using the method of undetermined coefficients. Looking
at the RHS of the ode, which is \[ {\mathrm e}^{-t} \] Shows that the corresponding undetermined set of the basis
functions (UC_set) for the trial solution is \[ [\{{\mathrm e}^{-t}\}] \] While the set of the basis functions for the
homogeneous solution found earlier is \[ \{t \,{\mathrm e}^{-3 t}, {\mathrm e}^{-3 t}\} \] Since there is no duplication between the basis
function in the UC_set and the basis functions of the homogeneous solution, the trial
solution is a linear combination of all the basis in the UC_set. \[
f_p = A_{1} {\mathrm e}^{-t}
\] The unknowns \(\{A_{1}\}\) are found by
substituting the above trial solution \(f_p\) into the ODE and comparing coefficients.
Substituting the trial solution into the ODE and simplifying gives \[
4 A_{1} {\mathrm e}^{-t} = {\mathrm e}^{-t}
\] Solving for the
unknowns by comparing coefficients results in \[ \left [A_{1} = {\frac {1}{4}}\right ] \] Substituting the above back in the
above trial solution \(f_p\), gives the particular solution \[
f_p = \frac {{\mathrm e}^{-t}}{4}
\] Therefore the general solution
is \begin{align*}
f &= f_h + f_p \\
&= \left (c_{1} {\mathrm e}^{-3 t}+c_{2} t \,{\mathrm e}^{-3 t}\right ) + \left (\frac {{\mathrm e}^{-t}}{4}\right ) \\
\end{align*} Which simplifies to \[
f = {\mathrm e}^{-3 t} \left (c_{2} t +c_{1} \right )+\frac {{\mathrm e}^{-t}}{4}
\] Initial conditions are used to solve for the constants of
integration.
Looking at the above solution \begin {align*} f = {\mathrm e}^{-3 t} \left (c_{2} t +c_{1} \right )+\frac {{\mathrm e}^{-t}}{4} \tag {1} \end {align*}
Initial conditions are now substituted in the above solution. This will generate the required
equations to solve for the integration constants. substituting \(f = 0\) and \(t = 0\) in the above gives
\begin {align*} 0 = \frac {1}{4}+c_{1}\tag {1A} \end {align*}
Taking derivative of the solution gives \begin {align*} f^{\prime } = -3 \,{\mathrm e}^{-3 t} \left (c_{2} t +c_{1} \right )+{\mathrm e}^{-3 t} c_{2} -\frac {{\mathrm e}^{-t}}{4} \end {align*}
substituting \(f^{\prime } = \lambda \) and \(t = 0\) in the above gives \begin {align*} \lambda = -\frac {1}{4}-3 c_{1} +c_{2}\tag {2A} \end {align*}
Equations {1A,2A} are now solved for \(\{c_{1}, c_{2}\}\). Solving for the constants gives \begin {align*} c_{1}&=-{\frac {1}{4}}\\ c_{2}&=\lambda -\frac {1}{2} \end {align*}
Substituting these values back in above solution results in \begin {align*} f = \left (\lambda -\frac {1}{2}\right ) t \,{\mathrm e}^{-3 t}-\frac {{\mathrm e}^{-3 t}}{4}+\frac {{\mathrm e}^{-t}}{4} \end {align*}
Summary
The solution(s) found are the following \begin{align*}
\tag{1} f &= \left (\lambda -\frac {1}{2}\right ) t \,{\mathrm e}^{-3 t}-\frac {{\mathrm e}^{-3 t}}{4}+\frac {{\mathrm e}^{-t}}{4} \\
\end{align*} Verification of solutions
\[
f = \left (\lambda -\frac {1}{2}\right ) t \,{\mathrm e}^{-3 t}-\frac {{\mathrm e}^{-3 t}}{4}+\frac {{\mathrm e}^{-t}}{4}
\] Verified OK. \[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \left [f^{\prime \prime }+6 f^{\prime }+9 f={\mathrm e}^{-t}, f \left (0\right )=0, f^{\prime }{\raise{-0.36em}{\Big |}}{\mstack {}{_{\left \{t \hiderel {=}0\right \}}}}=\lambda \right ] \\ \bullet & {} & \textrm {Highest derivative means the order of the ODE is}\hspace {3pt} 2 \\ {} & {} & f^{\prime \prime } \\ \bullet & {} & \textrm {Characteristic polynomial of homogeneous ODE}\hspace {3pt} \\ {} & {} & r^{2}+6 r +9=0 \\ \bullet & {} & \textrm {Factor the characteristic polynomial}\hspace {3pt} \\ {} & {} & \left (r +3\right )^{2}=0 \\ \bullet & {} & \textrm {Root of the characteristic polynomial}\hspace {3pt} \\ {} & {} & r =-3 \\ \bullet & {} & \textrm {1st solution of the homogeneous ODE}\hspace {3pt} \\ {} & {} & f_{1}\left (t \right )={\mathrm e}^{-3 t} \\ \bullet & {} & \textrm {Repeated root, multiply}\hspace {3pt} f_{1}\left (t \right )\hspace {3pt}\textrm {by}\hspace {3pt} t \hspace {3pt}\textrm {to ensure linear independence}\hspace {3pt} \\ {} & {} & f_{2}\left (t \right )=t \,{\mathrm e}^{-3 t} \\ \bullet & {} & \textrm {General solution of the ODE}\hspace {3pt} \\ {} & {} & f=c_{1} f_{1}\left (t \right )+c_{2} f_{2}\left (t \right )+f_{p}\left (t \right ) \\ \bullet & {} & \textrm {Substitute in solutions of the homogeneous ODE}\hspace {3pt} \\ {} & {} & f=c_{1} {\mathrm e}^{-3 t}+c_{2} t \,{\mathrm e}^{-3 t}+f_{p}\left (t \right ) \\ \square & {} & \textrm {Find a particular solution}\hspace {3pt} f_{p}\left (t \right )\hspace {3pt}\textrm {of the ODE}\hspace {3pt} \\ {} & \circ & \textrm {Use variation of parameters to find}\hspace {3pt} f_{p}\hspace {3pt}\textrm {here}\hspace {3pt} g \left (t \right )\hspace {3pt}\textrm {is the forcing function}\hspace {3pt} \\ {} & {} & \left [f_{p}\left (t \right )=-f_{1}\left (t \right ) \left (\int \frac {f_{2}\left (t \right ) g \left (t \right )}{W \left (f_{1}\left (t \right ), f_{2}\left (t \right )\right )}d t \right )+f_{2}\left (t \right ) \left (\int \frac {f_{1}\left (t \right ) g \left (t \right )}{W \left (f_{1}\left (t \right ), f_{2}\left (t \right )\right )}d t \right ), g \left (t \right )={\mathrm e}^{-t}\right ] \\ {} & \circ & \textrm {Wronskian of solutions of the homogeneous equation}\hspace {3pt} \\ {} & {} & W \left (f_{1}\left (t \right ), f_{2}\left (t \right )\right )=\left [\begin {array}{cc} {\mathrm e}^{-3 t} & t \,{\mathrm e}^{-3 t} \\ -3 \,{\mathrm e}^{-3 t} & {\mathrm e}^{-3 t}-3 t \,{\mathrm e}^{-3 t} \end {array}\right ] \\ {} & \circ & \textrm {Compute Wronskian}\hspace {3pt} \\ {} & {} & W \left (f_{1}\left (t \right ), f_{2}\left (t \right )\right )={\mathrm e}^{-6 t} \\ {} & \circ & \textrm {Substitute functions into equation for}\hspace {3pt} f_{p}\left (t \right ) \\ {} & {} & f_{p}\left (t \right )={\mathrm e}^{-3 t} \left (-\left (\int t \,{\mathrm e}^{2 t}d t \right )+\left (\int {\mathrm e}^{2 t}d t \right ) t \right ) \\ {} & \circ & \textrm {Compute integrals}\hspace {3pt} \\ {} & {} & f_{p}\left (t \right )=\frac {{\mathrm e}^{-t}}{4} \\ \bullet & {} & \textrm {Substitute particular solution into general solution to ODE}\hspace {3pt} \\ {} & {} & f=c_{1} {\mathrm e}^{-3 t}+c_{2} t \,{\mathrm e}^{-3 t}+\frac {{\mathrm e}^{-t}}{4} \\ \square & {} & \textrm {Check validity of solution}\hspace {3pt} f=c_{1} {\mathrm e}^{-3 t}+c_{2} t {\mathrm e}^{-3 t}+\frac {{\mathrm e}^{-t}}{4} \\ {} & \circ & \textrm {Use initial condition}\hspace {3pt} f \left (0\right )=0 \\ {} & {} & 0=\frac {1}{4}+c_{1} \\ {} & \circ & \textrm {Compute derivative of the solution}\hspace {3pt} \\ {} & {} & f^{\prime }=-3 c_{1} {\mathrm e}^{-3 t}+{\mathrm e}^{-3 t} c_{2} -3 c_{2} t \,{\mathrm e}^{-3 t}-\frac {{\mathrm e}^{-t}}{4} \\ {} & \circ & \textrm {Use the initial condition}\hspace {3pt} f^{\prime }{\raise{-0.36em}{\Big |}}{\mstack {}{_{\left \{t \hiderel {=}0\right \}}}}=\lambda \\ {} & {} & \lambda =-\frac {1}{4}-3 c_{1} +c_{2} \\ {} & \circ & \textrm {Solve for}\hspace {3pt} c_{1} \hspace {3pt}\textrm {and}\hspace {3pt} c_{2} \\ {} & {} & \left \{c_{1} =-\frac {1}{4}, c_{2} =\lambda -\frac {1}{2}\right \} \\ {} & \circ & \textrm {Substitute constant values into general solution and simplify}\hspace {3pt} \\ {} & {} & f=\frac {\left (-1+\left (4 \lambda -2\right ) t \right ) {\mathrm e}^{-3 t}}{4}+\frac {{\mathrm e}^{-t}}{4} \\ \bullet & {} & \textrm {Solution to the IVP}\hspace {3pt} \\ {} & {} & f=\frac {\left (-1+\left (4 \lambda -2\right ) t \right ) {\mathrm e}^{-3 t}}{4}+\frac {{\mathrm e}^{-t}}{4} \end {array} \]
Maple trace
✓ Solution by Maple
Time used: 0.031 (sec). Leaf size: 26
\[
f \left (t \right ) = \frac {\left (-1+\left (4 \lambda -2\right ) t \right ) {\mathrm e}^{-3 t}}{4}+\frac {{\mathrm e}^{-t}}{4}
\]
✓ Solution by Mathematica
Time used: 0.034 (sec). Leaf size: 28
\[
f(t)\to \frac {1}{4} e^{-3 t} \left ((4 \lambda -2) t+e^{2 t}-1\right )
\]
2.4.2 Solving as second order linear constant coeff ode
2.4.3 Solving as linear second order ode solved by an integrating factor ode
2.4.4 Solving using Kovacic algorithm
2.4.5 Maple step by step solution
`Methods for second order ODEs:
--- Trying classification methods ---
trying a quadrature
trying high order exact linear fully integrable
trying differential order: 2; linear nonhomogeneous with symmetry [0,1]
trying a double symmetry of the form [xi=0, eta=F(x)]
-> Try solving first the homogeneous part of the ODE
checking if the LODE has constant coefficients
<- constant coefficients successful
<- solving first the homogeneous part of the ODE successful`
dsolve([diff(f(t),t$2)+6*diff(f(t),t)+9*f(t)=exp(-t),f(0) = 0, D(f)(0) = lambda],f(t), singsol=all)
DSolve[{f''[t]+6*f'[t]+9*f[t]==Exp[-t],{f[0]==0,f'[0]==\[Lambda]}},f[t],t,IncludeSingularSolutions -> True]