5 problems found
Note: You may assume that if the functions \(y_1(x)\) and \(y_2(x)\) both satisfy one of the differential equations in this question, then the curves \(y = y_1(x)\) and \(y = y_2(x)\) do not intersect.
Solution:
Show that if \[ {\mathrm{d}y \over \mathrm{d} x}=\f(x)y + {\g(x) \over y} \] then the substitution \(u = y^2\) gives a linear differential equation for \(u(x)\,\). Hence or otherwise solve the differential equation \[ {\mathrm{d}y \over \mathrm{d} x}={y \over x} - {1 \over y}\;. \] Determine the solution curves of this equation which pass through \((1 \,, 1)\,\), \((2\, , 2)\) and \((4 \, , 4)\) and sketch graphs of all three curves on the same axes.
Solution: \begin{align*} && \frac{\d y}{\d x} &= f(x) y + \frac{g(x)}{y} \\ && y \frac{\d y}{\d x} &= f(x) y^2 + g(x) \\ u = y^2: && \frac12 \frac{\d u}{\d x} &= f(x) u + g(x) \end{align*} Which is a linear differential equation for \(u\). \begin{align*} && \frac12 u' &= \frac1x u -1 \\ \Rightarrow && u' - \frac2xu &= -1 \\ \Rightarrow && \frac{1}{x^2} u' - \frac{2}{x^3} u &= -\frac{1}{x^2} \\ \Rightarrow && (\frac{u}{x^2})' &= - \frac{1}{x^2} \\ \Rightarrow && \frac{u}{x^2} &= \frac1x + C \\ \Rightarrow && u &= Cx^2 + x \\ \Rightarrow && y^2 &= Cx^2 + x \end{align*} If \((1,1)\) is on the curve then \(1 = C + 1 \Rightarrow C = 0 \Rightarrow y^2 = x\). If \((2,2)\) is on the curve then \(4 = 4C + 2 \Rightarrow C = \frac12 \Rightarrow y^2 = x + \frac12 x^2\). If \((3,3)\) is on the curve then \(9 = 9C + 3 \Rightarrow C = \frac23 \Rightarrow y^2 = x + \frac23 x^2\)
The value \(V_N\) of a bond after \(N\) days is determined by the equation $$ V_{N+1} = (1+c) V_{N} -d \qquad (c>0, \ d>0), $$ where \(c\) and \(d\) are given constants. By looking for solutions of the form \(V_T= A k^T + B\) for some constants \(A,B\) and \(k\), or otherwise, find \(V_N\) in terms of \(V_0\). What is the solution for \(c=0\)? Show that this is the limit (for fixed \(N\)) as \(c\rightarrow 0\) of your solution for \(c>0\).
Solution: Suppose \(V_T = Ak^T + B\), then \begin{align*} && Ak^{T+1}+B &= (1+c)(Ak^T+B) - d \\ \Rightarrow && (k-1-c)Ak^T &= cB -d \\ \Rightarrow && k &= 1+c \\ && B &= \frac{d}{c} \\ && A &= V_0 - B \\ \Rightarrow && V_N &= (V_0 - \frac{d}{c})(1+c)^{N} + \frac{d}{c} \end{align*} When \(c = 0\), \(V_{N+1} = V_N - d \Rightarrow V_N = V_0 - Nd\). \begin{align*} \lim_{c \to 0} \left ( (V_0 - \frac{d}{c})(1+c)^{N} + \frac{d}{c} \right) &= \lim_{c \to 0} \left ( \frac{(V_0 c-d)(1+c)^N + d}{c} \right ) \\ &= \lim_{c \to 0} \left ( \frac{V_0c - d-Ncd+NV_0c^2 + o(c^2) + d}{c} \right ) \\ &= \lim_{c \to 0} \left ( V_0 - Nd + o(c) \right ) \\ &= V_0 - Nd \end{align*}
Let \(P,Q\) and \(R\) be functions of \(x\). Prove that, for any function \(y\) of \(x\), the function \[ Py''+Qy'+Ry \] can be written in the form \(\dfrac{\mathrm{d}}{\mathrm{d}x}(py'+qy),\) where \(p\) and \(q\) are functions of \(x\), if and only if \(P''-Q'+R=0.\) Solve the differential equation \[ (x-x^{4})y''+(1-7x^{3})y'-9x^{2}y=(x^{3}+3x^2)\mathrm{e}^{x}, \] given that when \(x=2,y=2\mathrm{e}^{2}\) and \(y'=0.\)
Solution: Suppose \(Py'' + Qy' + Ry = \frac{\d}{\d x}(p y' + qy)\), then \begin{align*} Py'' + Qy' + Ry &= \frac{\d}{\d x}(p y' + qy) \\ &= py'' + p'y' + qy' + q' y \\ &= py'' + (p'+q)y' + q' y \end{align*} Therefore \(P = p, Q = p'+q, R = q'\), Therefore \(q = Q-P'\) and \(R = Q'-P''\) or \(P'' -Q'+R = 0\). \((\Rightarrow)\) Suppose it can be written in that form, then the logic we have applied shows that equation is true. \((\Leftarrow)\) Suppose \(P''-Q'+R = 0\), then letting \(p = P, q = Q-P'\) we find functions of the form which will be expressed correctly. Notice that if \(P = x-x^4, Q = (1-7x^3), R = -9x^2\) then: \begin{align*} P'' - Q' + R &= -12x^2+21x^2-9x^2 \\ &= 0 \end{align*} Therefore we can write our second order ODE as: \begin{align*} && (x^{3}+3x)\mathrm{e}^{x} &= \frac{\d}{\d x} \left ( (x-x^4) y' +(1-7x^3-(1-4x^3))y \right) \\ &&&= \frac{\d}{\d x} \left ( (x-x^4) y' -3x^3y \right) \end{align*} Suppose \(z = (x-x^4)y' - 3x^2y\), then \(z = (2-2^4) \cdot 0 - 3 \cdot 2^2 \cdot 2e^2 = -24e^2\) when \(x = 2\). and we have: \begin{align*} && \frac{\d z}{\d x} &= (x^3+3x^2)e^x \\ \Rightarrow && z &= \int (x^3+3x^2)e^x \d x \\ &&&= x^3 e^x+c \\ \Rightarrow && -48e^2 &= e^2(8) + c \\ \Rightarrow && c &= -56e^2 \\ \Rightarrow && z &= e^x(x^3)-56e^2 \\ \end{align*} So our differential equation is: \begin{align*} && (x-x^4)y'-3x^3 y &= x^3e^x -5 6e^2 \\ \Rightarrow && (1-x^3)y' -3x^2y &= x^2 e^x - \frac{6e^2}{x} \\ \Rightarrow && \frac{\d }{\d x} \left ( (1-x^3)y \right) &= x^2e^x - \frac{56e^2}{x} \\ \Rightarrow && (1-x^3)y &= (x^2-2x+2)e^x - 56e^2 \ln x + k \\ \underbrace{\Rightarrow}_{x=2} && (1-2^3)2e^2 &= (2^2-2\cdot2 + 2)e^2 -56e^2 \ln 2 + k \\ \Rightarrow && k &= -16e^2+56 \ln 2 \cdot e^2 \\ \Rightarrow && y &= \frac{(x^2-2x+2)e^x - 56e^2 \ln x -16e^2+56 \ln 2 \cdot e^2}{(1-x^3)} \end{align*}