10 problems found
Show that the second-order differential equation \[ x^2y''+(1-2p) x\, y' + (p^2-q^2) \, y= \f(x) \,, \] where \(p\) and \(q\) are constants, can be written in the form \[ x^a \big(x^b (x^cy)'\big)' = \f(x) \,, \tag{\(*\)} \] where \(a\), \(b\) and \(c\) are constants.
Solution: Consider $x^a \big(x^b (x^cy)'\big)'$ then \begin{align*} x^a \big(x^b (x^cy)'\big)' &= x^a \big (bx^{b-1}(x^c y)'+x^b(x^cy)'' \big ) \\ &= x^a \big (bx^{b-1} (cx^{c-1}y + x^c y') + x^b(c(c-1)x^{c-2}y + 2cx^{c-1}y' + x^cy'') \\ &= x^{a+b+c}y'' + (2cx^{c-1+b+a}+bx^{c+b-1+a})y'+(c(b+c-1))x^{a+b+c-2} y \end{align*} So we need: \begin{align*} &&& \begin{cases} a+b+c &= 2 \\ 2c+b &= 1-2p \\ c(b+c-1) &= p^2-q^2 \end{cases} \\ \Rightarrow && c((1-2p)-2c+c-1) &=p^2-q^2 \\ \Rightarrow && c^2+2pc &= q^2-p^2 \end{align*}
Solution:
Suppose that \[{\rm f}''(x)+{\rm f}(-x)=x+3\cos 2x\] and \({\rm f}(0)=1\), \({\rm f}'(0)=-1\). If \({\rm g}(x)={\rm f}(x)+{\rm f}(-x)\), find \({\rm g}(0)\) and show that \({\rm g}'(0)=0\). Show that \[{\rm g}''(x)+{\rm g}(x)=6\cos 2x,\] and hence find \({\rm g}(x)\). Similarly, if \({\rm h}(x)={\rm f}(x)-{\rm f}(-x)\), find \({\rm h}(x)\) and show that \[{\rm f}(x)=2\cos x -\cos2x-x.\]
Solution: \begin{align*} && g(0) &= f(0)+f(-0) = 2f(0) = 2 \\ && g'(x) &= f'(x) - f'(-x) \\ && g'(0) &= f'(0) - f'(-0) = 0 \\ && g''(x) &= f''(x) +f''(-x) \\ \Rightarrow && g''(x) + g(x) &= f''(x) +f''(-x) + f(x) + f(-x) \\ &&&= f''(x)+ f(-x) +f''(-x) + f(x) \\ &&&= x + 3 \cos 2x + (-x + 3 \cos (-2x) ) \\ &&&= 6 \cos 2x \\ \end{align*} Considering the homogeneous part, we should expected a solution of the form \(g(x) = A \sin x + B \cos x\). Seeking an integrating factor of the form \(g(x) = C \cos 2x\) we see that \(-4C \cos 2x + C \cos 2x = 6 \cos 2x \Rightarrow -3C = 6 \Rightarrow C = -2\). Therefore the general solution is \begin{align*} && g(x) &= A\sin x + B \cos x - 2\cos 2x \\ && g(0) &= B - 2 = 2\\ && g'(0) &= A = 0 \\ \Rightarrow && g(x) &= 4\cos x - 2\cos 2x \\ \end{align*} \begin{align*} && h(0) &= f(0) - f(-0) = 0 \\ && h'(x) &= f'(x) + f'(-x) \\ && h'(0) &= f'(0) + f'(-0) = -2 \\ && h''(x) &= f''(x) - f''(-x) \\ \Rightarrow && h''(x) - h(x) &= f''(x) - f''(-x) -( f(x) - f(-x)) \\ &&&= f''(x) +f(-x)- (f''(-x) + f(x)) \\ &&&= x + 3\cos 2x - (-x + 3 \cos(-2x)) \\ &&&= 2x \end{align*} Considering the homogeneous part, we should expect a solution of the form \(Ae^x + Be^{-x}\). For a specific integral, we can take \(-2x\), ie \begin{align*} && h(x) &= Ae^x + Be^{-x} - 2x \\ && h(0) &= A+B =0 \\ && h'(0) &= A-B-2 =-2 \\ \Rightarrow && A &=B = 0 \\ \Rightarrow && h(x) &= -2x \end{align*} Therefore \(f(x) = \frac12(f(x) + f(-x)) + \frac12(f(x) -f(-x)) = 2\cos x - \cos 2x -x\)
Find functions \(\mathrm{f,g}\) and \(\mathrm{h}\) such that \[ \frac{\mathrm{d}^{2}y}{\mathrm{d}x^{2}}+\mathrm{f}(x)\frac{\mathrm{d}y}{\mathrm{d}x}+\mathrm{g}(x)y=\mathrm{h}(x)\tag{\ensuremath{*}} \] is satisfied by all three of the solutions \(y=x,y=1\) and \(y=x^{-1}\) for \(0 < x < 1.\) If \(\mathrm{f,g}\) and \(\mathrm{h}\) are the functions you have found in the first paragraph, what condition must the real numbers \(a,b\) and \(c\) satisfy in order that \[ y=ax+b+\frac{c}{x} \] should be a solution of \((*)\)?
In the manufacture of Grandma's Home Made Ice-cream, chemicals \(A\) and \(B\) pour at constant rates \(a\) and \(b-a\) litres per second (\(0 < a < b\)) into a mixing vat which mixes the chemicals rapidly and empties at a rate \(b\) litres per second into a second mixing vat. At time \(t=0\) the first vat contains \(K\) litres of chemical \(B\) only. Show that the volume \(V(t)\) (in litres) of the chemical \(A\) in the first vat is governed by the differential equation \[ \dot{V}(t)=-\frac{bV(t)}{K}+a, \] and that \[ V(t)=\frac{aK}{b}(1-\mathrm{e}^{-bt/K}) \] for \(t\geqslant0.\) The second vat also mixes chemicals rapidly and empties at the rate of \(b\) litres per second. If at time \(t=0\) it contains \(L\) litres of chemical \(C\) only (where \(L\neq K\)), how many litres of chemical \(A\) will it contain at a later time \(t\)?
Solution: The total volume in the first vat at time \(t\) is always \(K\), since \(b\) litres per second are coming in and \(b\) litres per second are going out. \begin{align*} &&\frac{\d V}{\d t} &= \underbrace{a}_{\text{incoming chemical }A} - \underbrace{b}_{\text{outgoing volume}} \cdot \underbrace{\frac{V(t)}{K}}_{\text{fraction of outgoing which is }A} \\ &&&= a - b \frac{V}{K} \\ \Rightarrow && \int \frac{1}{a-b\frac{V}{K}}\d V &= \int \d t \\ && - \frac{K}{b} \ln |a - b \frac{V}{K}| &= t +C\\ (t,V) = (0,0): && -\frac{K}{b} \ln a &= C \\ \Rightarrow && 1-\frac{b}{a} \frac{V}{K} &= e^{-bt/K} \\ \Rightarrow && V &= \frac{aK}{b} (1 - e^{-bt/K}) \end{align*} \begin{align*} &&\frac{\d W}{\d t} &= \underbrace{b}_{\text{incoming volume}} \cdot \underbrace{\frac{a}{b} (1 - e^{-bt/K})}_{\text{incoming fraction }A} - \underbrace{b}_{\text{outgoing volume}} \cdot \underbrace{ \frac{W(t)}{L}}_{\text{fraction of outgoing which is }A} \\ &&&= a (1 - e^{-bt/K}) - b \frac{W}{L} \\ \Rightarrow && \frac{\d W}{\d t} + \frac{b}{L} W &= a (1-e^{-bt/K}) \\ && \frac{\d}{\d t} \left ( e^{b/L t} W\right) &= ae^{b/L t}(1-e^{-bt/K}) \\ \Rightarrow && W &= e^{-bt/L} \left ( \frac{aL}{b}e^{b/Lt} - \frac{a}{\frac{b}{L} - \frac{b}{K}}e^{b/L t - b/K} \right) + Ce^{-bt/L} \\ &&&= \frac{aL}{b} \left (1 - \frac{K}{K-L}e^{-b/Kt} \right)+ Ce^{-bt/L} \\ (t,W) = (0,0): && 0 &= \frac{aL}{b} \frac{-L}{K-L} + C \\ \Rightarrow && C &= \frac{aL^2}{b(K-L)} \\ \Rightarrow && W &= \frac{aL}{b} \left (1 - \frac{K}{K-L} e^{-bt/K} + \frac{L}{K-L} e^{-bt/L} \right) \end{align*}
A particle is attached to one end \(B\) of a light elastic string of unstretched length \(a\). Initially the other end \(A\) is at rest and the particle hangs at rest at a distance \(a+c\) vertically below \(A\). At time \(t=0\), the end \(A\) is forced to oscillate vertically, its downwards displacement at time \(t\) being \(b\sin pt\). Let \(x(t)\) be the downwards displacement of the particle at time \(t\) from its initial equilibrium position. Show that, while the string remains taut, \(x(t)\) satisfies \[ \frac{\mathrm{d}^{2}x}{\mathrm{d}t^{2}}=-n^{2}(x-b\sin pt), \] where \(n^{2}=g/c\), and that if \(0 < p < n\), \(x(t)\) is given by \[ x(t)=\frac{bn}{n^{2}-p^{2}}(n\sin pt-p\sin nt). \] Write down a necessary and sufficient condition that the string remains taut throughout the subsequent motion, and show that it is satisfied if \(pb < (n-p)c.\)
The curve \(C\) has the differential equation in polar coordinates \[ \frac{\mathrm{d}^{2}r}{\mathrm{d}\theta^{2}}+4r=5\sin3\theta,\qquad\text{for }\quad\frac{\pi}{5}\leqslant\theta\leqslant\frac{3\pi}{5}, \] and, when \(\theta=\dfrac{\pi}{2},\) \(r=1\) and \(\dfrac{\mathrm{d}r}{\mathrm{d}\theta}=-2.\) Show that \(C\) forms a closed loop and that the area of the region enclosed by \(C\) is \[ \frac{\pi}{5}+\frac{25}{48}\left[\sin\left(\frac{\pi}{5}\right)-\sin\left(\frac{2\pi}{5}\right)\right]. \]
Solution: First we seek the complementary function. \begin{align*} && \frac{\mathrm{d}^{2}r}{\mathrm{d}\theta^{2}}+4r &= 0 \\ \Rightarrow && r &= A \sin 2\theta + B \cos 2 \theta \end{align*} Next we seek a particular integral, of the form \(r = C \sin 3 \theta\). \begin{align*} && \frac{\mathrm{d}^{2}r}{\mathrm{d}\theta^{2}}+4r &= 5 \sin 3 \theta \\ \Rightarrow && -9C \sin 3 \theta + 4C \sin 3 \theta &= 5 \sin 3 \theta \\ \Rightarrow && C &= -1 \\ \end{align*} So our general solution is \(A \sin 2\theta + B \cos 2 \theta -\sin 3 \theta\). Plugging in boundary conditions we obtain: \begin{align*} \theta = \frac{\pi}{2}, r = 1: &&1 &= -B +1 \\ \Rightarrow && B &= 0 \\ \theta = \frac{\pi}{2}, \frac{\d r}{\d \theta} = -2: && -2 &= -2A \\ \Rightarrow && A &= 1 \end{align*} So the general solution is \(r = \sin 2 \theta - \sin 3 \theta = 2 \sin \left ( \frac{-\theta}{2} \right) \cos \left (\frac{5 \theta}{2} \right)\) First notice that for \(\theta \in \left [\frac{\pi}{5}, \frac{3 \pi}{5} \right]\) this is positive, and it is zero on the end points, therefore we are tracing out a a loop. The area of the loop will be: \begin{align*} A &= \int_{\pi/5}^{3\pi/5} \frac12 \left ( \sin 2 \theta - \sin 3 \theta \right)^2 \d \theta \\ &= \frac12\int_{\pi/5}^{3\pi/5} \sin^2 2\theta + \sin^2 3 \theta - 2 \sin 2 \theta \cos 3 \theta \d \theta \\ &= \frac12\int_{\pi/5}^{3\pi/5} \frac{1-2 \cos 4 \theta}{2} + \frac{1-2 \cos6 \theta}{2} - \sin5 \theta-\cos\theta \d \theta \\ &= \frac12 \left [\theta - \frac14 \sin 4 \theta-\frac16 \sin 6 \theta + \frac15 \cos 5 \theta - \sin \theta \right]_{\pi/5}^{3\pi/5} \\ &= \frac{\pi}{5} +\frac{25}{48}\left [ \sin\left(\frac{\pi}{5}\right)-\sin\left(\frac{2\pi}{5}\right) \right] \end{align*}
Given that \[ \frac{\mathrm{d}x}{\mathrm{d}t}=4(x-y)\qquad\mbox{ and }\qquad\frac{\mathrm{d}y}{\mathrm{d}t}=x-12(\mathrm{e}^{2t}+\mathrm{e}^{-2t}), \] obtain a differential equation for \(x\) which does not contain \(y\). Hence, or otherwise, find \(x\) and \(y\) in terms of \(t\) given that \(x=y=0\) when \(t=0\).
Solution: \begin{align*} && \frac{\d x}{\d t} &= 4(x-y) \\ && \frac{\d y}{\d t} &= x - 12(e^{2t}+e^{-2t}) \\ \Rightarrow && \frac{\d^2 x}{\d t^2} &= 4 \frac{\d x}{\d t}-4\frac{\d y}{\d t} \\ &&&= 4 \frac{\d x}{\d t}-4 \left ( x - 12(e^{2t}+e^{-2t}) \right) \\ \Rightarrow && \frac{\d^2 x}{\d t^2} - 4 \frac{\d x}{\d t}+4x &= 48 (e^{2t}+e^{-2t}) \end{align*} This differential equation has characteristic polynomial \(\lambda^2 - 4\lambda + 4 = (\lambda-2)^2\). Therefore we should expect a general solution of \((At+B)e^{2t}\). For particular integrals we should try \(ke^{-2t}\) and \(Ct^2 e^{2t}\). For the former, we have: \begin{align*} && 48 &= 4k+8k+k \\ \Rightarrow && k &= \frac{48}{13} \end{align*} For the latter we have: \begin{align*} &&4Ct^2e^{2t} -4C(2te^{2t}+2t^2e^{2t})+2C((1+2t)e^{2t}+2t^2e^{2t}) &= 48e^{2t} \\ \Rightarrow && 2C &= 48 \\ \Rightarrow && C &= 24 \end{align*} Therefore the solution should be: \begin{align*} x = (At+B)e^{2t} + \frac{48}{13}e^{-2t} + 24t^2 e^{2t} \\ x(0) = B + \frac{48}{13} \\ x'(0) = 2B+A-\frac{96}{13} \\ x =\frac{48}{13}((4t-1)e^{2t}+e^{-2t})+24t^2e^{2t} \\ y = x - \frac{1}{4} \frac{\d x}{\d t} \end{align*}
Each day, books returned to a library are placed on a shelf in order of arrival, and left there. When a book arrives for which there is no room on the shelf, that book and all books subsequently returned are put on a trolley. At the end of each day, the shelf and trolley are cleared. There are just two-sizes of book: thick, requiring two units of shelf space; and thin, requiring one unit. The probability that a returned book is thick is \(p\), and the probability that it is thin is \(q=1-p.\) Let \(M(n)\) be the expected number of books that will be put on the shelf, when the length of the shelf is \(n\) units and \(n\) is an integer, on the assumption that more books will be returned each day than can be placed on the shelf. Show, giving reasoning, that
Solution:
The functions \(x(t)\) and \(y(t)\) satisfy the simultaneous differential equations \begin{alignat*}{1} \dfrac{\mathrm{d}x}{\mathrm{d}t}+2x-5y & =0\\ \frac{\mathrm{d}y}{\mathrm{d}t}+ax-2y & =2\cos t, \end{alignat*} subject to \(x=0,\) \(\dfrac{\mathrm{d}y}{\mathrm{d}t}=0\) at \(t=0.\) Solve these equations for \(x\) and \(y\) in the case when \(a=1\). Without solving the equations explicitly, state briefly how the form of the solutions for \(x\) and \(y\) if \(a>1\) would differ from the form when \(a=1.\)
Solution: Letting \(\mathbf{x} =\begin{pmatrix} x(t) \\ y(t) \end{pmatrix}\) and \(\mathbf{A} = \begin{pmatrix} -2 & 5 \\ -a & 2 \end{pmatrix}\) then our differential equation is \(\mathbf{x}' = \mathbf{Ax} + \begin{pmatrix} 0 \\2 \cos t \end{pmatrix}\). Looking at the eigenvalues of \(\mathbf{A}\), we find: \begin{align*} && \det \begin{pmatrix} -2-\lambda & 5 \\ -a & 2 -\lambda \end{pmatrix} &= (\lambda^2-4)+5a\\ &&&= \lambda^2 +5a-4 \end{align*} Therefore if \(a = 1\), \(\lambda = \pm i\). In which case we should expect the complementary solutions to be of the form \(\mathbf{x} = \begin{pmatrix} A \sin t + B \cos t \\ C \sin t + D \cos t \end{pmatrix}\). The first equation tells us that \((A-5D+B)\cos t + (-B+5C)\sin t=0\) so the complementary solution is:\(\mathbf{x} = \begin{pmatrix} 5(D-C) \sin t + 5C \cos t \\ C \sin t + D \cos t \end{pmatrix}\). Looking for a particular integral, we should expect to try something like \(\mathbf{x} = \begin{pmatrix} Et\cos t+Ft\sin t\\ Gt\cos t+Ht \sin t\end{pmatrix}\) and we find