MHB What is the general solution for a differential equation with a secant term?

alane1994
Messages
36
Reaction score
0
I was given the problem,

"Find the general solution of the given differential equation."
\(y^{\prime\prime}+9y=9\sec^2(3t)\)

My work as follows, please let me know if this is correct and where to go from here. I have hit a roadblock of sorts.

\(y^{\prime\prime}+9y=9\sec^2(3t)\)

\(y^{\prime\prime}+9y=0\\
m^2+9=0\\
m=3\\
y=\cos(3t)+\sin(3t)\)

So,
\(y=c_1\cos(3t)+c_2\sin(3t)\)

Where,
\(y_1=\cos(3t)\\
y_2=\sin(3t)\)

\(Y(t)=-y_1\int \dfrac{y_2g(t)}{W(y_1,y_2)}dt+y_2\int \dfrac{y_1g(t)}{W(y_1,y_2)}\)

\(y_1=\cos(3t)~~~y_1^{\prime}=-3\sin(3t)\)
\(y_2=\sin(3t)~~~y_2^{\prime}=3\cos(3t)\)

\(W=y_1y_2^{\prime}-y_1^{\prime}y_2\)Look ok so far? Any thoughts as to how I should proceed?
 
Last edited:
Physics news on Phys.org
I want to demonstrate the method I was taught, which avoids the use of Wronskians. Normally I would not provide a full solution, but in this case, I thought it might be instructive to do so since I am using an alternate method.

If I were to solve this problem using variation of parameters, I would proceed as follows:

We are given:

$$y''+9y=9\sec^2(3t)$$

(a) Find a fundamental solution set $$\{y_1(t),y_2(t)\}$$ for the corresponding homogeneous equation:

$$y''+9y=0$$

The characteristic roots are:

$$r=\pm3i$$

Hence:

$$\{y_1(t),y_2(t)\}=\{\cos(3t),\sin(3t)\}$$

(b) Take as the particular solution:

$$y_p(t)=v_1(t)\cos(3t)+v_2(t)\sin(3t)$$

(c) Determine $v_1(t)$ and $v_2(t)$ by solving the system:

$$\cos(3t)v_1'+\sin(3t)v_2'=0$$

$$-\sin(3t)v_1'+\cos(3t)v_2'=3\sec^2(3t)$$

We find from the first equation:

$$v_1'=-\tan(3t)v_2'$$

And so by substitution into the second equation, we obtain:

$$-\sin(3t)\left(-\tan(3t)v_2' \right)+\cos(3t)v_2'=3\sec^2(3t)$$

$$v_2'=3\sec(3t)$$

and so:

$$v_1'=-3\sec(3t)\tan(3t)$$

Integrating, we find:

$$v_1(t)=-\sec(3t)$$

$$v_2(t)=\ln\left|\sec(3t)+\tan(3t) \right|$$

And so the particular solution is:

$$y_p(t)=\sin(3t)\ln\left|\sec(3t)+\tan(3t) \right|-1$$

Thus, by the principle of superposition, we find the general solution to the ODE is:

$$y(t)=y_h(t)+y_p(t)=c_1\cos(3t)+c_2\sin(3t)+\sin(3t)\ln\left|\sec(3t)+\tan(3t) \right|-1$$
 
Wow, thank you so much! Your way does seem a little (read: a lot) easier than the way I was trying to go.
Makes more sense to me as well!
 
Thread 'Direction Fields and Isoclines'
I sketched the isoclines for $$ m=-1,0,1,2 $$. Since both $$ \frac{dy}{dx} $$ and $$ D_{y} \frac{dy}{dx} $$ are continuous on the square region R defined by $$ -4\leq x \leq 4, -4 \leq y \leq 4 $$ the existence and uniqueness theorem guarantees that if we pick a point in the interior that lies on an isocline there will be a unique differentiable function (solution) passing through that point. I understand that a solution exists but I unsure how to actually sketch it. For example, consider a...
Back
Top