Internal
problem
ID
[8386] Book
:
Own
collection
of
miscellaneous
problems Section
:
section
4.0 Problem
number
:
68 Date
solved
:
Sunday, November 10, 2024 at 03:39:55 AM CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
This is second order non-homogeneous ODE. In standard form the ODE is
\[ A y''(x) + B y'(x) + C y(x) = f(x) \]
Where \(A=1, B=20, C=500, f(x)=100000 \cos \left (100 x \right )\).
Let the solution be
\[ y = y_h + y_p \]
Where \(y_h\) is the solution to the homogeneous ODE \( A y''(x) + B y'(x) + C y(x) = 0\), and \(y_p\) is a
particular solution to the non-homogeneous ODE \(A y''(x) + B y'(x) + C y(x) = f(x)\). \(y_h\) is the solution to
\[ y^{\prime \prime }+20 y^{\prime }+500 y = 0 \]
This is second
order with constant coefficients homogeneous ODE. In standard form the ODE is
\[ A y''(x) + B y'(x) + C y(x) = 0 \]
Where in the above \(A=1, B=20, C=500\). Let the solution be \(y=e^{\lambda x}\). Substituting this into the ODE gives
The
particular solution is now found using the method of undetermined coefficients.
Looking at the RHS of the ode, which is
\[ 100000 \cos \left (100 x \right ) \]
Shows that the corresponding undetermined
set of the basis functions (UC_set) for the trial solution is
\[ [\{\cos \left (100 x \right ), \sin \left (100 x \right )\}] \]
While the set of the
basis functions for the homogeneous solution found earlier is
\[ \{{\mathrm e}^{-10 x} \cos \left (20 x \right ), {\mathrm e}^{-10 x} \sin \left (20 x \right )\} \]
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.
\[
y_p = A_{1} \cos \left (100 x \right )+A_{2} \sin \left (100 x \right )
\]
The unknowns \(\{A_{1}, A_{2}\}\) are found by substituting the above trial solution \(y_p\) into the
ODE and comparing coefficients. Substituting the trial solution into the ODE
and simplifying gives
\[
-9500 A_{1} \cos \left (100 x \right )-9500 A_{2} \sin \left (100 x \right )-2000 A_{1} \sin \left (100 x \right )+2000 A_{2} \cos \left (100 x \right ) = 100000 \cos \left (100 x \right )
\]
Solving for the unknowns by comparing coefficients results
in
Equation (7) is now solved. After finding \(z(x)\) then \(y\) is found using the inverse transformation
\begin{align*} y &= z \left (x \right ) e^{-\int \frac {B}{2 A} \,dx} \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.
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 \} \)
Table 2.110: Necessary conditions for each Kovacic case
The order of \(r\) at \(\infty \) is the degree of \(t\) minus the degree of \(s\). Therefore
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 \(0\) then the necessary conditions for case one are met.
Therefore
\begin{align*} L &= [1] \end{align*}
Since \(r = -400\) is not a function of \(x\), then there is no need run Kovacic algorithm to obtain a solution
for transformed ode \(z''=r z\) as one solution is
\[ z_1(x) = \cos \left (20 x \right ) \]
Using the above, the solution for the original ode can
now be found. The first solution to the original ode in \(y\) is found from
This is second order nonhomogeneous ODE. Let the solution be
\[
y = y_h + y_p
\]
Where \(y_h\) is the solution to
the homogeneous ODE \( A y''(x) + B y'(x) + C y(x) = 0\), and \(y_p\) is a particular solution to the nonhomogeneous ODE \(A y''(x) + B y'(x) + C y(x) = f(x)\). \(y_h\) is the
solution to
\[
y^{\prime \prime }+20 y^{\prime }+500 y = 0
\]
The homogeneous solution is found using the Kovacic algorithm which results in
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.
\[
y_p = A_{1} \cos \left (100 x \right )+A_{2} \sin \left (100 x \right )
\]
The unknowns \(\{A_{1}, A_{2}\}\) are found by substituting the above trial solution \(y_p\) into the
ODE and comparing coefficients. Substituting the trial solution into the ODE
and simplifying gives
\[
-9500 A_{1} \cos \left (100 x \right )-9500 A_{2} \sin \left (100 x \right )-2000 A_{1} \sin \left (100 x \right )+2000 A_{2} \cos \left (100 x \right ) = 100000 \cos \left (100 x \right )
\]
Solving for the unknowns by comparing coefficients results
in
\begin{align*}
\frac {\mathop {\mathrm {d}}}{ \mathop {\mathrm {d}x}}\left ( \mu y\right ) &= \mu p \\
\frac {\mathop {\mathrm {d}}}{ \mathop {\mathrm {d}x}}\left ( \mu y\right ) &= \left (\mu \right ) \left (\text {Expression too large to display}\right ) \\
\frac {\mathop {\mathrm {d}}}{ \mathop {\mathrm {d}x}} \left (y \,{\mathrm e}^{-\ln \left (c_1 +c_2 \tan \left (20 x \right )\right )+\frac {\ln \left (\tan \left (20 x \right )^{2}+1\right )}{2}+10 x}\right ) &= \left ({\mathrm e}^{-\ln \left (c_1 +c_2 \tan \left (20 x \right )\right )+\frac {\ln \left (\tan \left (20 x \right )^{2}+1\right )}{2}+10 x}\right ) \left (\text {Expression too large to display}\right ) \\
\mathrm {d} \left (y \,{\mathrm e}^{-\ln \left (c_1 +c_2 \tan \left (20 x \right )\right )+\frac {\ln \left (\tan \left (20 x \right )^{2}+1\right )}{2}+10 x}\right ) &= \left (\text {Expression too large to display}\right )\, \mathrm {d} x \\
\end{align*}
Integrating gives
\begin{align*} y \,{\mathrm e}^{-\ln \left (c_1 +c_2 \tan \left (20 x \right )\right )+\frac {\ln \left (\tan \left (20 x \right )^{2}+1\right )}{2}+10 x}&= \int {\text {Expression too large to display} \,dx} \\ &=\text {Expression too large to display} + c_3 \end{align*}
Dividing throughout by the integrating factor \({\mathrm e}^{-\ln \left (c_1 +c_2 \tan \left (20 x \right )\right )+\frac {\ln \left (\tan \left (20 x \right )^{2}+1\right )}{2}+10 x}\) gives the final solution
\[ \text {Expression too large to display} \]
Hence, the solution
found using Lagrange adjoint equation method is
\begin{align*}
\text {Expression too large to display} \\
\end{align*}
The constants can be merged to give
\[
\text {Expression too large to display}
\]
Will
add steps showing solving for IC soon.
Summary of solutions found
\begin{align*}
\text {Expression too large to display} \\
\end{align*}
Maple step by step solution
\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \frac {d^{2}}{d x^{2}}y \left (x \right )+20 \frac {d}{d x}y \left (x \right )+500 y \left (x \right )=100000 \cos \left (100 x \right ) \\ \bullet & {} & \textrm {Highest derivative means the order of the ODE is}\hspace {3pt} 2 \\ {} & {} & \frac {d^{2}}{d x^{2}}y \left (x \right ) \\ \bullet & {} & \textrm {Characteristic polynomial of homogeneous ODE}\hspace {3pt} \\ {} & {} & r^{2}+20 r +500=0 \\ \bullet & {} & \textrm {Use quadratic formula to solve for}\hspace {3pt} r \\ {} & {} & r =\frac {\left (-20\right )\pm \left (\sqrt {-1600}\right )}{2} \\ \bullet & {} & \textrm {Roots of the characteristic polynomial}\hspace {3pt} \\ {} & {} & r =\left (-10-20 \,\mathrm {I}, -10+20 \,\mathrm {I}\right ) \\ \bullet & {} & \textrm {1st solution of the homogeneous ODE}\hspace {3pt} \\ {} & {} & y_{1}\left (x \right )={\mathrm e}^{-10 x} \cos \left (20 x \right ) \\ \bullet & {} & \textrm {2nd solution of the homogeneous ODE}\hspace {3pt} \\ {} & {} & y_{2}\left (x \right )={\mathrm e}^{-10 x} \sin \left (20 x \right ) \\ \bullet & {} & \textrm {General solution of the ODE}\hspace {3pt} \\ {} & {} & y \left (x \right )=\mathit {C1} y_{1}\left (x \right )+\mathit {C2} y_{2}\left (x \right )+y_{p}\left (x \right ) \\ \bullet & {} & \textrm {Substitute in solutions of the homogeneous ODE}\hspace {3pt} \\ {} & {} & y \left (x \right )=\mathit {C1} \,{\mathrm e}^{-10 x} \cos \left (20 x \right )+\mathit {C2} \,{\mathrm e}^{-10 x} \sin \left (20 x \right )+y_{p}\left (x \right ) \\ \square & {} & \textrm {Find a particular solution}\hspace {3pt} y_{p}\left (x \right )\hspace {3pt}\textrm {of the ODE}\hspace {3pt} \\ {} & \circ & \textrm {Use variation of parameters to find}\hspace {3pt} y_{p}\hspace {3pt}\textrm {here}\hspace {3pt} f \left (x \right )\hspace {3pt}\textrm {is the forcing function}\hspace {3pt} \\ {} & {} & \left [y_{p}\left (x \right )=-y_{1}\left (x \right ) \left (\int \frac {y_{2}\left (x \right ) f \left (x \right )}{W \left (y_{1}\left (x \right ), y_{2}\left (x \right )\right )}d x \right )+y_{2}\left (x \right ) \left (\int \frac {y_{1}\left (x \right ) f \left (x \right )}{W \left (y_{1}\left (x \right ), y_{2}\left (x \right )\right )}d x \right ), f \left (x \right )=100000 \cos \left (100 x \right )\right ] \\ {} & \circ & \textrm {Wronskian of solutions of the homogeneous equation}\hspace {3pt} \\ {} & {} & W \left (y_{1}\left (x \right ), y_{2}\left (x \right )\right )=\left [\begin {array}{cc} {\mathrm e}^{-10 x} \cos \left (20 x \right ) & {\mathrm e}^{-10 x} \sin \left (20 x \right ) \\ -10 \,{\mathrm e}^{-10 x} \cos \left (20 x \right )-20 \,{\mathrm e}^{-10 x} \sin \left (20 x \right ) & -10 \,{\mathrm e}^{-10 x} \sin \left (20 x \right )+20 \,{\mathrm e}^{-10 x} \cos \left (20 x \right ) \end {array}\right ] \\ {} & \circ & \textrm {Compute Wronskian}\hspace {3pt} \\ {} & {} & W \left (y_{1}\left (x \right ), y_{2}\left (x \right )\right )=20 \,{\mathrm e}^{-20 x} \\ {} & \circ & \textrm {Substitute functions into equation for}\hspace {3pt} y_{p}\left (x \right ) \\ {} & {} & y_{p}\left (x \right )=-5000 \,{\mathrm e}^{-10 x} \left (\cos \left (20 x \right ) \left (\int \sin \left (20 x \right ) \cos \left (100 x \right ) {\mathrm e}^{10 x}d x \right )-\sin \left (20 x \right ) \left (\int \cos \left (20 x \right ) \cos \left (100 x \right ) {\mathrm e}^{10 x}d x \right )\right ) \\ {} & \circ & \textrm {Compute integrals}\hspace {3pt} \\ {} & {} & y_{p}\left (x \right )=-\frac {3800 \cos \left (100 x \right )}{377}+\frac {800 \sin \left (100 x \right )}{377} \\ \bullet & {} & \textrm {Substitute particular solution into general solution to ODE}\hspace {3pt} \\ {} & {} & y \left (x \right )=\mathit {C1} \,{\mathrm e}^{-10 x} \cos \left (20 x \right )+\mathit {C2} \,{\mathrm e}^{-10 x} \sin \left (20 x \right )-\frac {3800 \cos \left (100 x \right )}{377}+\frac {800 \sin \left (100 x \right )}{377} \end {array} \]
Maple trace
`Methodsfor second order ODEs:---Trying classification methods ---tryinga quadraturetryinghigh order exact linear fully integrabletryingdifferential order: 2; linear nonhomogeneous with symmetry [0,1]tryinga double symmetry of the form [xi=0, eta=F(x)]->Try solving first the homogeneous part of the ODEchecking if the LODE has constant coefficients<- constant coefficients successful<-solving first the homogeneous part of the ODE successful`