9.13 problem 13

Internal problem ID [1119]
Internal file name [OUTPUT/1120_Sunday_June_05_2022_02_03_02_AM_15823335/index.tex]

Book: Elementary differential equations with boundary value problems. William F. Trench. Brooks/Cole 2001
Section: Chapter 5 linear second order equations. Section 5.6 Reduction or order. Page 253
Problem number: 13.
ODE order: 2.
ODE degree: 1.

The type(s) of ODE detected by this program : "reduction_of_order", "second_order_euler_ode", "second_order_change_of_variable_on_x_method_1", "second_order_change_of_variable_on_x_method_2", "second_order_change_of_variable_on_y_method_2"

Maple gives the following as the ode type

[[_2nd_order, _with_linear_symmetries]]

\[ \boxed {x^{2} y^{\prime \prime }-3 y^{\prime } x +4 y=4 x^{4}} \] Given that one solution of the ode is \begin {align*} y_1 &= x^{2} \end {align*}

This is second order nonhomogeneous ODE. In standard form the ODE is \[ A y''(x) + B y'(x) + C y(x) = f(x) \] Where \(A=x^{2}, B=-3 x, C=4, f(x)=4 x^{4}\). 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 inhomogeneous ODE \(A y''(x) + B y'(x) + C y(x) = f(x)\). \(y_h\) is the solution to \[ x^{2} y^{\prime \prime }-3 y^{\prime } x +4 y = 0 \] Given one basis solution \(y_{1}\left (x \right )\), then the second basis solution is given by \[ y_{2}\left (x \right ) = y_{1} \left (\int \frac {{\mathrm e}^{-\left (\int p d x \right )}}{y_{1}^{2}}d x \right ) \] Where \(p(x)\) is the coefficient of \(y^{\prime }\) when the ode is written in the normal form \[ y^{\prime \prime }+p \left (x \right ) y^{\prime }+q \left (x \right ) y = f \left (x \right ) \] Looking at the ode to solve shows that \[ p \left (x \right ) = -\frac {3}{x} \] Therefore \begin{align*} y_{2}\left (x \right ) &= x^{2} \left (\int \frac {{\mathrm e}^{-\left (\int -\frac {3}{x}d x \right )}}{x^{4}}d x \right ) \\ y_{2}\left (x \right ) &= x^{2} \int \frac {x^{3}}{x^{4}} , dx \\ y_{2}\left (x \right ) &= x^{2} \left (\int \frac {1}{x}d x \right ) \\ y_{2}\left (x \right ) &= \ln \left (x \right ) x^{2} \\ \end{align*} Hence the solution is \begin{align*} y &= c_{1} y_{1}\left (x \right )+c_{2} y_{2}\left (x \right ) \\ &= c_{1} x^{2}+c_{2} \ln \left (x \right ) x^{2} \\ \end{align*} Therefore the homogeneous solution \(y_h\) is \[ y_h = c_{1} x^{2}+c_{2} \ln \left (x \right ) x^{2} \] The particular solution \(y_p\) can be found using either the method of undetermined coefficients, or the method of variation of parameters. The method of variation of parameters will be used as it is more general and can be used when the coefficients of the ODE depend on \(x\) as well. Let \begin{equation} \tag{1} y_p(x) = u_1 y_1 + u_2 y_2 \end{equation} Where \(u_1,u_2\) to be determined, and \(y_1,y_2\) are the two basis solutions (the two linearly independent solutions of the homogeneous ODE) found earlier when solving the homogeneous ODE as \begin{align*} y_1 &= x^{2} \\ y_2 &= \ln \left (x \right ) x^{2} \\ \end{align*} In the Variation of parameters \(u_1,u_2\) are found using \begin{align*} \tag{2} u_1 &= -\int \frac {y_2 f(x)}{a W(x)} \\ \tag{3} u_2 &= \int \frac {y_1 f(x)}{a W(x)} \\ \end{align*} Where \(W(x)\) is the Wronskian and \(a\) is the coefficient in front of \(y''\) in the given ODE. The Wronskian is given by \(W= \begin {vmatrix} y_1 & y_{2} \\ y_{1}^{\prime } & y_{2}^{\prime } \end {vmatrix} \). Hence \[ W = \begin {vmatrix} x^{2} & \ln \left (x \right ) x^{2} \\ \frac {d}{dx}\left (x^{2}\right ) & \frac {d}{dx}\left (\ln \left (x \right ) x^{2}\right ) \end {vmatrix} \] Which gives \[ W = \begin {vmatrix} x^{2} & \ln \left (x \right ) x^{2} \\ 2 x & x +2 x \ln \left (x \right ) \end {vmatrix} \] Therefore \[ W = \left (x^{2}\right )\left (x +2 x \ln \left (x \right )\right ) - \left (\ln \left (x \right ) x^{2}\right )\left (2 x\right ) \] Which simplifies to \[ W = x^{3} \] Which simplifies to \[ W = x^{3} \] Therefore Eq. (2) becomes \[ u_1 = -\int \frac {4 \ln \left (x \right ) x^{6}}{x^{5}}\,dx \] Which simplifies to \[ u_1 = - \int 4 x \ln \left (x \right )d x \] Hence \[ u_1 = -2 \ln \left (x \right ) x^{2}+x^{2} \] And Eq. (3) becomes \[ u_2 = \int \frac {4 x^{6}}{x^{5}}\,dx \] Which simplifies to \[ u_2 = \int 4 x d x \] Hence \[ u_2 = 2 x^{2} \] Which simplifies to \begin{align*} u_1 &= x^{2} \left (1-2 \ln \left (x \right )\right ) \\ u_2 &= 2 x^{2} \\ \end{align*} Therefore the particular solution, from equation (1) is \[ y_p(x) = x^{4} \left (1-2 \ln \left (x \right )\right )+2 x^{4} \ln \left (x \right ) \] Which simplifies to \[ y_p(x) = x^{4} \] Therefore the general solution is \begin {align*} y &= y_h + y_p \\ &= \left (c_{1} x^{2}+c_{2} \ln \left (x \right ) x^{2}\right ) + \left (x^{4}\right ) \end {align*}

Which simplifies to \[ y = x^{2} \left (c_{1} +c_{2} \ln \left (x \right )\right )+x^{4} \]

Summary

The solution(s) found are the following \begin{align*} \tag{1} y &= x^{2} \left (c_{1} +c_{2} \ln \left (x \right )\right )+x^{4} \\ \end{align*}

Verification of solutions

\[ y = x^{2} \left (c_{1} +c_{2} \ln \left (x \right )\right )+x^{4} \] Verified OK.

Maple trace

`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 
   checking if the LODE is of Euler type 
   <- LODE of Euler type successful 
<- solving first the homogeneous part of the ODE successful`
 

Solution by Maple

Time used: 0.0 (sec). Leaf size: 17

dsolve([x^2*diff(y(x),x$2)-3*x*diff(y(x),x)+4*y(x)=4*x^4,x^2],singsol=all)
 

\[ y \left (x \right ) = x^{2} \left (\ln \left (x \right ) c_{1} +x^{2}+c_{2} \right ) \]

Solution by Mathematica

Time used: 0.021 (sec). Leaf size: 21

DSolve[x^2*y''[x]-3*x*y'[x]+4*y[x]==4*x^4,y[x],x,IncludeSingularSolutions -> True]
                                                                                    
                                                                                    
 

\[ y(x)\to x^2 \left (x^2+2 c_2 \log (x)+c_1\right ) \]