21.1 problem 15

21.1.1 Existence and uniqueness analysis
21.1.2 Solving as second order linear constant coeff ode
21.1.3 Solving using Kovacic algorithm
21.1.4 Maple step by step solution

Internal problem ID [14908]
Internal file name [OUTPUT/14606_Tuesday_April_09_2024_02_05_46_AM_68264857/index.tex]

Book: INTRODUCTORY DIFFERENTIAL EQUATIONS. Martha L. Abell, James P. Braselton. Fourth edition 2014. ElScAe. 2014
Section: Chapter 5. Applications of Higher Order Equations. Exercises 5.3, page 249
Problem number: 15.
ODE order: 2.
ODE degree: 1.

The type(s) of ODE detected by this program : "kovacic", "second_order_linear_constant_coeff"

Maple gives the following as the ode type

[[_2nd_order, _linear, _nonhomogeneous]]

\[ \boxed {x^{\prime \prime }+x=\left \{\begin {array}{cc} 1 & 0\le t <\pi \\ 0 & \pi \le t \end {array}\right .} \] With initial conditions \begin {align*} [x \left (0\right ) = 0, x^{\prime }\left (0\right ) = 0] \end {align*}

21.1.1 Existence and uniqueness analysis

This is a linear ODE. In canonical form it is written as \begin {align*} x^{\prime \prime } + p(t)x^{\prime } + q(t) x &= F \end {align*}

Where here \begin {align*} p(t) &=0\\ q(t) &=1\\ F &=\left \{\begin {array}{cc} 0 & t <0 \\ 1 & t <\pi \\ 0 & \pi \le t \end {array}\right . \end {align*}

Hence the ode is \begin {align*} x^{\prime \prime }+x = \left \{\begin {array}{cc} 0 & t <0 \\ 1 & t <\pi \\ 0 & \pi \le t \end {array}\right . \end {align*}

The domain of \(p(t)=0\) is \[ \{-\infty

21.1.2 Solving as second order linear constant coeff ode

This is second order non-homogeneous ODE. In standard form the ODE is \[ A x''(t) + B x'(t) + C x(t) = f(t) \] Where \(A=1, B=0, C=1, f(t)=\left \{\begin {array}{cc} 0 & t <0 \\ 1 & t <\pi \\ 0 & \pi \le t \end {array}\right .\). Let the solution be \[ x = x_h + x_p \] Where \(x_h\) is the solution to the homogeneous ODE \( A x''(t) + B x'(t) + C x(t) = 0\), and \(x_p\) is a particular solution to the non-homogeneous ODE \(A x''(t) + B x'(t) + C x(t) = f(t)\). \(x_h\) is the solution to \[ x^{\prime \prime }+x = 0 \] This is second order with constant coefficients homogeneous ODE. In standard form the ODE is \[ A x''(t) + B x'(t) + C x(t) = 0 \] Where in the above \(A=1, B=0, C=1\). Let the solution be \(x=e^{\lambda t}\). Substituting this into the ODE gives \[ \lambda ^{2} {\mathrm e}^{\lambda t}+{\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}+1 = 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=0, C=1\) into the above gives \begin {align*} \lambda _{1,2} &= \frac {0}{(2) \left (1\right )} \pm \frac {1}{(2) \left (1\right )} \sqrt {0^2 - (4) \left (1\right )\left (1\right )}\\ &= \pm i \end {align*}

Hence \begin {align*} \lambda _1 &= + i\\ \lambda _2 &= - i \end {align*}

Which simplifies to \begin{align*} \lambda _1 &= i \\ \lambda _2 &= -i \\ \end{align*} Since roots are complex conjugate of each others, then let the roots be \[ \lambda _{1,2} = \alpha \pm i \beta \] Where \(\alpha =0\) and \(\beta =1\). Therefore the final solution, when using Euler relation, can be written as \[ x = e^{\alpha t} \left ( c_{1} \cos (\beta t) + c_{2} \sin (\beta t) \right ) \] Which becomes \[ x = e^{0}\left (c_{1} \cos \left (t \right )+c_{2} \sin \left (t \right )\right ) \] Or \[ x = c_{1} \cos \left (t \right )+c_{2} \sin \left (t \right ) \] Therefore the homogeneous solution \(x_h\) is \[ x_h = c_{1} \cos \left (t \right )+c_{2} \sin \left (t \right ) \] The particular solution \(x_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 \(t\) as well. Let \begin{equation} \tag{1} x_p(t) = u_1 x_1 + u_2 x_2 \end{equation} Where \(u_1,u_2\) to be determined, and \(x_1,x_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*} x_1 &= \cos \left (t \right ) \\ x_2 &= \sin \left (t \right ) \\ \end{align*} In the Variation of parameters \(u_1,u_2\) are found using \begin{align*} \tag{2} u_1 &= -\int \frac {x_2 f(t)}{a W(t)} \\ \tag{3} u_2 &= \int \frac {x_1 f(t)}{a W(t)} \\ \end{align*} Where \(W(t)\) is the Wronskian and \(a\) is the coefficient in front of \(x''\) in the given ODE. The Wronskian is given by \(W= \begin {vmatrix} x_1 & x_{2} \\ x_{1}^{\prime } & x_{2}^{\prime } \end {vmatrix} \). Hence \[ W = \begin {vmatrix} \cos \left (t \right ) & \sin \left (t \right ) \\ \frac {d}{dt}\left (\cos \left (t \right )\right ) & \frac {d}{dt}\left (\sin \left (t \right )\right ) \end {vmatrix} \] Which gives \[ W = \begin {vmatrix} \cos \left (t \right ) & \sin \left (t \right ) \\ -\sin \left (t \right ) & \cos \left (t \right ) \end {vmatrix} \] Therefore \[ W = \left (\cos \left (t \right )\right )\left (\cos \left (t \right )\right ) - \left (\sin \left (t \right )\right )\left (-\sin \left (t \right )\right ) \] Which simplifies to \[ W = \cos \left (t \right )^{2}+\sin \left (t \right )^{2} \] Which simplifies to \[ W = 1 \] Therefore Eq. (2) becomes \[ u_1 = -\int \frac {\sin \left (t \right ) \left (\left \{\begin {array}{cc} 0 & t <0 \\ 1 & t <\pi \\ 0 & \pi \le t \end {array}\right .\right )}{1}\,dt \] Which simplifies to \[ u_1 = - \int \left (\left \{\begin {array}{cc} 0 & t <0 \\ \sin \left (t \right ) & t <\pi \\ 0 & \pi \le t \end {array}\right .\right )d t \] Hence \[ u_1 = -\left (\left \{\begin {array}{cc} 0 & t \le 0 \\ -\cos \left (t \right )+1 & t \le \pi \\ 2 & \pi

Looking at the above solution \begin {align*} x = c_{1} \cos \left (t \right )+c_{2} \sin \left (t \right )+\left (\left \{\begin {array}{cc} 0 & t \le 0 \\ -\cos \left (t \right )+1 & t \le \pi \\ -2 \cos \left (t \right ) & \pi

Initial conditions are now substituted in the above solution. This will generate the required equations to solve for the integration constants. substituting \(x = 0\) and \(t = 0\) in the above gives \begin {align*} 0 = c_{1}\tag {1A} \end {align*}

Taking derivative of the solution gives \begin {align*} x^{\prime } = -c_{1} \sin \left (t \right )+c_{2} \cos \left (t \right )+\left (\left \{\begin {array}{cc} 0 & t \le 0 \\ \sin \left (t \right ) & t \le \pi \\ 2 \sin \left (t \right ) & \pi

substituting \(x^{\prime } = 0\) and \(t = 0\) in the above gives \begin {align*} 0 = 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}&=0\\ c_{2}&=0 \end {align*}

Substituting these values back in above solution results in \begin {align*} x = \left \{\begin {array}{cc} 0 & t \le 0 \\ -\cos \left (t \right )+1 & t \le \pi \\ -2 \cos \left (t \right ) & \pi

Which simplifies to \[ x = \left \{\begin {array}{cc} 0 & t \le 0 \\ -\cos \left (t \right )+1 & t \le \pi \\ -2 \cos \left (t \right ) & \pi

Summary

The solution(s) found are the following \begin{align*} \tag{1} x &= \left \{\begin {array}{cc} 0 & t \le 0 \\ -\cos \left (t \right )+1 & t \le \pi \\ -2 \cos \left (t \right ) & \pi

Verification of solutions

\[ x = \left \{\begin {array}{cc} 0 & t \le 0 \\ -\cos \left (t \right )+1 & t \le \pi \\ -2 \cos \left (t \right ) & \pi

21.1.3 Solving using Kovacic algorithm

Writing the ode as \begin {align*} x^{\prime \prime }+x &= 0 \tag {1} \\ A x^{\prime \prime } + B x^{\prime } + C x &= 0 \tag {2} \end {align*}

Comparing (1) and (2) shows that \begin {align*} A &= 1 \\ B &= 0\tag {3} \\ C &= 1 \end {align*}

Applying the Liouville transformation on the dependent variable gives \begin {align*} z(t) &= x 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 {-1}{1}\tag {6} \end {align*}

Comparing the above to (5) shows that \begin {align*} s &= -1\\ t &= 1 \end {align*}

Therefore eq. (4) becomes \begin {align*} z''(t) &= -z \left (t \right ) \tag {7} \end {align*}

Equation (7) is now solved. After finding \(z(t)\) then \(x\) is found using the inverse transformation \begin {align*} x &= 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 \} \)




Table 716: Necessary conditions for each Kovacic case

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 - 0 \\ &= 0 \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 \(0\) then the necessary conditions for case one are met. Therefore \begin {align*} L &= [1] \end {align*}

Since \(r = -1\) 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) = \cos \left (t \right ) \] Using the above, the solution for the original ode can now be found. The first solution to the original ode in \(x\) is found from \[ x_1 = z_1 e^{ \int -\frac {1}{2} \frac {B}{A} \,dt} \]

Since \(B=0\) then the above reduces to \begin{align*} x_1 &= z_1 \\ &= \cos \left (t \right ) \\ \end{align*} Which simplifies to \[ x_1 = \cos \left (t \right ) \] The second solution \(x_2\) to the original ode is found using reduction of order \[ x_2 = x_1 \int \frac { e^{\int -\frac {B}{A} \,dt}}{x_1^2} \,dt \] Since \(B=0\) then the above becomes \begin{align*} x_2 &= x_1 \int \frac {1}{x_1^2} \,dt \\ &= \cos \left (t \right )\int \frac {1}{\cos \left (t \right )^{2}} \,dt \\ &= \cos \left (t \right )\left (\tan \left (t \right )\right ) \\ \end{align*} Therefore the solution is

\begin{align*} x &= c_{1} x_1 + c_{2} x_2 \\ &= c_{1} \left (\cos \left (t \right )\right ) + c_{2} \left (\cos \left (t \right )\left (\tan \left (t \right )\right )\right ) \\ \end{align*} This is second order nonhomogeneous ODE. Let the solution be \[ x = x_h + x_p \] Where \(x_h\) is the solution to the homogeneous ODE \( A x''(t) + B x'(t) + C x(t) = 0\), and \(x_p\) is a particular solution to the nonhomogeneous ODE \(A x''(t) + B x'(t) + C x(t) = f(t)\). \(x_h\) is the solution to \[ x^{\prime \prime }+x = 0 \] The homogeneous solution is found using the Kovacic algorithm which results in \[ x_h = c_{1} \cos \left (t \right )+c_{2} \sin \left (t \right ) \] The particular solution \(x_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 \(t\) as well. Let \begin{equation} \tag{1} x_p(t) = u_1 x_1 + u_2 x_2 \end{equation} Where \(u_1,u_2\) to be determined, and \(x_1,x_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*} x_1 &= \cos \left (t \right ) \\ x_2 &= \sin \left (t \right ) \\ \end{align*} In the Variation of parameters \(u_1,u_2\) are found using \begin{align*} \tag{2} u_1 &= -\int \frac {x_2 f(t)}{a W(t)} \\ \tag{3} u_2 &= \int \frac {x_1 f(t)}{a W(t)} \\ \end{align*} Where \(W(t)\) is the Wronskian and \(a\) is the coefficient in front of \(x''\) in the given ODE. The Wronskian is given by \(W= \begin {vmatrix} x_1 & x_{2} \\ x_{1}^{\prime } & x_{2}^{\prime } \end {vmatrix} \). Hence \[ W = \begin {vmatrix} \cos \left (t \right ) & \sin \left (t \right ) \\ \frac {d}{dt}\left (\cos \left (t \right )\right ) & \frac {d}{dt}\left (\sin \left (t \right )\right ) \end {vmatrix} \] Which gives \[ W = \begin {vmatrix} \cos \left (t \right ) & \sin \left (t \right ) \\ -\sin \left (t \right ) & \cos \left (t \right ) \end {vmatrix} \] Therefore \[ W = \left (\cos \left (t \right )\right )\left (\cos \left (t \right )\right ) - \left (\sin \left (t \right )\right )\left (-\sin \left (t \right )\right ) \] Which simplifies to \[ W = \cos \left (t \right )^{2}+\sin \left (t \right )^{2} \] Which simplifies to \[ W = 1 \] Therefore Eq. (2) becomes \[ u_1 = -\int \frac {\sin \left (t \right ) \left (\left \{\begin {array}{cc} 0 & t <0 \\ 1 & t <\pi \\ 0 & \pi \le t \end {array}\right .\right )}{1}\,dt \] Which simplifies to \[ u_1 = - \int \left (\left \{\begin {array}{cc} 0 & t <0 \\ \sin \left (t \right ) & t <\pi \\ 0 & \pi \le t \end {array}\right .\right )d t \] Hence \[ u_1 = -\left (\left \{\begin {array}{cc} 0 & t \le 0 \\ -\cos \left (t \right )+1 & t \le \pi \\ 2 & \pi

Looking at the above solution \begin {align*} x = c_{1} \cos \left (t \right )+c_{2} \sin \left (t \right )+\left (\left \{\begin {array}{cc} 0 & t \le 0 \\ -\cos \left (t \right )+1 & t \le \pi \\ -2 \cos \left (t \right ) & \pi

Initial conditions are now substituted in the above solution. This will generate the required equations to solve for the integration constants. substituting \(x = 0\) and \(t = 0\) in the above gives \begin {align*} 0 = c_{1}\tag {1A} \end {align*}

Taking derivative of the solution gives \begin {align*} x^{\prime } = -c_{1} \sin \left (t \right )+c_{2} \cos \left (t \right )+\left (\left \{\begin {array}{cc} 0 & t \le 0 \\ \sin \left (t \right ) & t \le \pi \\ 2 \sin \left (t \right ) & \pi

substituting \(x^{\prime } = 0\) and \(t = 0\) in the above gives \begin {align*} 0 = 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}&=0\\ c_{2}&=0 \end {align*}

Substituting these values back in above solution results in \begin {align*} x = \left \{\begin {array}{cc} 0 & t \le 0 \\ -\cos \left (t \right )+1 & t \le \pi \\ -2 \cos \left (t \right ) & \pi

Which simplifies to \[ x = \left \{\begin {array}{cc} 0 & t \le 0 \\ -\cos \left (t \right )+1 & t \le \pi \\ -2 \cos \left (t \right ) & \pi

Summary

The solution(s) found are the following \begin{align*} \tag{1} x &= \left \{\begin {array}{cc} 0 & t \le 0 \\ -\cos \left (t \right )+1 & t \le \pi \\ -2 \cos \left (t \right ) & \pi

Verification of solutions

\[ x = \left \{\begin {array}{cc} 0 & t \le 0 \\ -\cos \left (t \right )+1 & t \le \pi \\ -2 \cos \left (t \right ) & \pi

21.1.4 Maple step by step solution

\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \left [\frac {d}{d t}x^{\prime }+x=\left \{\begin {array}{cc} 0 & t <0 \\ 1 & t <\pi \\ 0 & \pi \le t \end {array}\right ., x \left (0\right )=0, x^{\prime }{\raise{-0.36em}{\Big |}}{\mstack {}{_{\left \{t \hiderel {=}0\right \}}}}=0\right ] \\ \bullet & {} & \textrm {Highest derivative means the order of the ODE is}\hspace {3pt} 2 \\ {} & {} & \frac {d}{d t}x^{\prime } \\ \bullet & {} & \textrm {Characteristic polynomial of homogeneous ODE}\hspace {3pt} \\ {} & {} & r^{2}+1=0 \\ \bullet & {} & \textrm {Use quadratic formula to solve for}\hspace {3pt} r \\ {} & {} & r =\frac {0\pm \left (\sqrt {-4}\right )}{2} \\ \bullet & {} & \textrm {Roots of the characteristic polynomial}\hspace {3pt} \\ {} & {} & r =\left (\mathrm {-I}, \mathrm {I}\right ) \\ \bullet & {} & \textrm {1st solution of the homogeneous ODE}\hspace {3pt} \\ {} & {} & x_{1}\left (t \right )=\cos \left (t \right ) \\ \bullet & {} & \textrm {2nd solution of the homogeneous ODE}\hspace {3pt} \\ {} & {} & x_{2}\left (t \right )=\sin \left (t \right ) \\ \bullet & {} & \textrm {General solution of the ODE}\hspace {3pt} \\ {} & {} & x=c_{1} x_{1}\left (t \right )+c_{2} x_{2}\left (t \right )+x_{p}\left (t \right ) \\ \bullet & {} & \textrm {Substitute in solutions of the homogeneous ODE}\hspace {3pt} \\ {} & {} & x=c_{1} \cos \left (t \right )+c_{2} \sin \left (t \right )+x_{p}\left (t \right ) \\ \square & {} & \textrm {Find a particular solution}\hspace {3pt} x_{p}\left (t \right )\hspace {3pt}\textrm {of the ODE}\hspace {3pt} \\ {} & \circ & \textrm {Use variation of parameters to find}\hspace {3pt} x_{p}\hspace {3pt}\textrm {here}\hspace {3pt} f \left (t \right )\hspace {3pt}\textrm {is the forcing function}\hspace {3pt} \\ {} & {} & \left [x_{p}\left (t \right )=-x_{1}\left (t \right ) \left (\int \frac {x_{2}\left (t \right ) f \left (t \right )}{W \left (x_{1}\left (t \right ), x_{2}\left (t \right )\right )}d t \right )+x_{2}\left (t \right ) \left (\int \frac {x_{1}\left (t \right ) f \left (t \right )}{W \left (x_{1}\left (t \right ), x_{2}\left (t \right )\right )}d t \right ), f \left (t \right )=\left \{\begin {array}{cc} 0 & t <0 \\ 1 & t <\pi \\ 0 & \pi \le t \end {array}\right .\right ] \\ {} & \circ & \textrm {Wronskian of solutions of the homogeneous equation}\hspace {3pt} \\ {} & {} & W \left (x_{1}\left (t \right ), x_{2}\left (t \right )\right )=\left [\begin {array}{cc} \cos \left (t \right ) & \sin \left (t \right ) \\ -\sin \left (t \right ) & \cos \left (t \right ) \end {array}\right ] \\ {} & \circ & \textrm {Compute Wronskian}\hspace {3pt} \\ {} & {} & W \left (x_{1}\left (t \right ), x_{2}\left (t \right )\right )=1 \\ {} & \circ & \textrm {Substitute functions into equation for}\hspace {3pt} x_{p}\left (t \right ) \\ {} & {} & x_{p}\left (t \right )=-\cos \left (t \right ) \left (\int \left (\left \{\begin {array}{cc} 0 & t <0 \\ \sin \left (t \right ) & t <\pi \\ 0 & \pi \le t \end {array}\right .\right )d t \right )+\sin \left (t \right ) \left (\int \left (\left \{\begin {array}{cc} 0 & t <0 \\ \cos \left (t \right ) & t <\pi \\ 0 & \pi \le t \end {array}\right .\right )d t \right ) \\ {} & \circ & \textrm {Compute integrals}\hspace {3pt} \\ {} & {} & x_{p}\left (t \right )=\left \{\begin {array}{cc} 0 & t \le 0 \\ -\cos \left (t \right )+1 & t \le \pi \\ -2 \cos \left (t \right ) & \pi

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 
   <- constant coefficients successful 
<- solving first the homogeneous part of the ODE successful`
 

Solution by Maple

Time used: 0.578 (sec). Leaf size: 25

dsolve([diff(x(t),t$2)+x(t)=piecewise(0<=t and t<Pi,1,t>=Pi,0),x(0) = 0, D(x)(0) = 0],x(t), singsol=all)
 

\[ x \left (t \right ) = \left \{\begin {array}{cc} 0 & t <0 \\ -\cos \left (t \right )+1 & t <\pi \\ -2 \cos \left (t \right ) & \pi \le t \end {array}\right . \]

Solution by Mathematica

Time used: 0.03 (sec). Leaf size: 29

DSolve[{x''[t]+x[t]==Piecewise[{{1,0<=t<Pi},{0,t>=Pi}}],{x[0]==0,x'[0]==0}},x[t],t,IncludeSingularSolutions -> True]
 

\[ x(t)\to \begin {array}{cc} \{ & \begin {array}{cc} 0 & t\leq 0 \\ 1-\cos (t) & 0