Internal problem ID [11974]
Internal file name [OUTPUT/10627_Saturday_September_02_2023_02_48_38_PM_97933282/index.tex
]
Book: AN INTRODUCTION TO ORDINARY DIFFERENTIAL EQUATIONS by JAMES C.
ROBINSON. Cambridge University Press 2004
Section: Chapter 5, Trivial differential equations. Exercises page 33
Problem number: 5.4 (iii).
ODE order: 1.
ODE degree: 1.
The type(s) of ODE detected by this program : "quadrature"
Maple gives the following as the ode type
[_quadrature]
\[ \boxed {x^{\prime }=2 \sin \left (t \right )^{2}} \] With initial conditions \begin {align*} \left [x \left (\frac {\pi }{4}\right ) = \frac {\pi }{4}\right ] \end {align*}
This is a linear ODE. In canonical form it is written as \begin {align*} x^{\prime } + p(t)x &= q(t) \end {align*}
Where here \begin {align*} p(t) &=0\\ q(t) &=2 \sin \left (t \right )^{2} \end {align*}
Hence the ode is \begin {align*} x^{\prime } = 2 \sin \left (t \right )^{2} \end {align*}
The domain of \(p(t)=0\) is \[
\{-\infty
Integrating both sides gives \begin {align*} x &= \int { 2 \sin \left (t \right )^{2}\,\mathop {\mathrm {d}t}}\\ &= t -\frac {\sin \left (2 t \right )}{2}+c_{1} \end {align*}
Initial conditions are used to solve for \(c_{1}\). Substituting \(t=\frac {\pi }{4}\) and \(x=\frac {\pi }{4}\) in the above solution gives an
equation to solve for the constant of integration. \begin {align*} \frac {\pi }{4} = \frac {\pi }{4}-\frac {1}{2}+c_{1} \end {align*}
The solutions are \begin {align*} c_{1} = {\frac {1}{2}} \end {align*}
Trying the constant \begin {align*} c_{1} = {\frac {1}{2}} \end {align*}
Substituting this in the general solution gives \begin {align*} x&=t -\frac {\sin \left (2 t \right )}{2}+\frac {1}{2} \end {align*}
The constant \(c_{1} = {\frac {1}{2}}\) gives valid solution.
Summary
The solution(s) found are the following \begin{align*}
\tag{1} x &= t -\frac {\sin \left (2 t \right )}{2}+\frac {1}{2} \\
\end{align*} Verification of solutions
\[
x = t -\frac {\sin \left (2 t \right )}{2}+\frac {1}{2}
\] Verified OK. \[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \left [x^{\prime }=2 \sin \left (t \right )^{2}, x \left (\frac {\pi }{4}\right )=\frac {\pi }{4}\right ] \\ \bullet & {} & \textrm {Highest derivative means the order of the ODE is}\hspace {3pt} 1 \\ {} & {} & x^{\prime } \\ \bullet & {} & \textrm {Integrate both sides with respect to}\hspace {3pt} t \\ {} & {} & \int x^{\prime }d t =\int 2 \sin \left (t \right )^{2}d t +c_{1} \\ \bullet & {} & \textrm {Evaluate integral}\hspace {3pt} \\ {} & {} & x=-\sin \left (t \right ) \cos \left (t \right )+t +c_{1} \\ \bullet & {} & \textrm {Solve for}\hspace {3pt} x \\ {} & {} & x=-\sin \left (t \right ) \cos \left (t \right )+t +c_{1} \\ \bullet & {} & \textrm {Use initial condition}\hspace {3pt} x \left (\frac {\pi }{4}\right )=\frac {\pi }{4} \\ {} & {} & \frac {\pi }{4}=\frac {\pi }{4}-\frac {1}{2}+c_{1} \\ \bullet & {} & \textrm {Solve for}\hspace {3pt} c_{1} \\ {} & {} & c_{1} =\frac {1}{2} \\ \bullet & {} & \textrm {Substitute}\hspace {3pt} c_{1} =\frac {1}{2}\hspace {3pt}\textrm {into general solution and simplify}\hspace {3pt} \\ {} & {} & x=t -\frac {\sin \left (2 t \right )}{2}+\frac {1}{2} \\ \bullet & {} & \textrm {Solution to the IVP}\hspace {3pt} \\ {} & {} & x=t -\frac {\sin \left (2 t \right )}{2}+\frac {1}{2} \end {array} \]
Maple trace
✓ Solution by Maple
Time used: 0.016 (sec). Leaf size: 13
\[
x \left (t \right ) = t +\frac {1}{2}-\frac {\sin \left (2 t \right )}{2}
\]
✓ Solution by Mathematica
Time used: 0.01 (sec). Leaf size: 16
\[
x(t)\to t-\sin (t) \cos (t)+\frac {1}{2}
\]
1.8.2 Solving as quadrature ode
1.8.3 Maple step by step solution
`Methods for first order ODEs:
--- Trying classification methods ---
trying a quadrature
<- quadrature successful`
dsolve([diff(x(t),t)=2*sin(t)^2,x(1/4*Pi) = 1/4*Pi],x(t), singsol=all)
DSolve[{x'[t]==2*Sin[t]^2,{x[Pi/4]==Pi/4}},x[t],t,IncludeSingularSolutions -> True]