MHB Solving a first order differential equation

Logan Land
Messages
83
Reaction score
0
cosx(dy/dx) + ysinx = sinx cosx

(dy/dx) + y/cosx = 1

e^integral (1/cosx) ?

I feel like this has to do with ln again but not sure
 
Physics news on Phys.org
In your attempt to write the equation in standard linear form, you have made a few errors when dividing through by $\cos(x)$. Try it again and see what you get. :D
 
MarkFL said:
In your attempt to write the equation in standard linear form, you have made a few errors when dividing through by $\cos(x)$. Try it again and see what you get. :D
dy/dx + ysinx/cosx = (sinx cosx)/cosx

dy/dx + ytanx = tanx ?

Or would I divide sinx first and move it over the other side before I divide cosx
 
You have the left side correct as $$\frac{\sin(x)}{\cos(x)}=\tan(x)$$, but the right side would simply have $$\cos(x)$$ cancelling, leaving $$\sin(x)$$.

Your goal in arranging the equation in standard linear form is to get it in the form:

$$\frac{dy}{dx}+P(x)y=Q(x)$$

and since this equation was given in the form:

$$f(x)\frac{dy}{dx}+g(x)y=h(x)$$

you simply need to divide through by $f(x)$ to get in the the standard form.
 
MarkFL said:
You have the left side correct as $$\frac{\sin(x)}{\cos(x)}=\tan(x)$$, but the right side would simply have $$\cos(x)$$ cancelling, leaving $$\sin(x)$$.

Your goal in arranging the equation in standard linear form is to get it in the form:

$$\frac{dy}{dx}+P(x)y=Q(x)$$

and since this equation was given in the form:

$$f(x)\frac{dy}{dx}+g(x)y=h(x)$$

you simply need to divide through by $f(x)$ to get in the the standard form.

So is my integrating factor 1/cosx ?

So it becomes (dy/dx)(1/cosx) + (ytanx)(1/cosx) = tanx

Integral (ytanx)(1/cosx) = integral tanx

y(1/cosx) = ln|secx| + C
y= cosx ln|secx| + Ccosx ?
 
Yes, I would write:

$$\mu(x)=e^{\int\tan(x)\,dx}=\sec(x)$$ and so we have:

$$\sec(x)\frac{dy}{dx}+\sec(x)\tan(x)y=\tan(x)$$

$$\frac{d}{dx}\left(\sec(x)y \right)=\tan(x)$$

$$\int\,d\left(\sec(x)y \right)=\int\tan(x)\,dx$$

$$\sec(x)y=\ln|\sec(x)|+C$$

$$y(x)=\cos(x)\left(\ln|\sec(x)|+C \right)$$
 
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