Linear 1st order differential equations

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 7K views
ch2kb0x
Messages
31
Reaction score
0

Homework Statement


dy/dx + ytanx = secx, y(pi) = 1


Homework Equations



I(x) = e^integral P(x)dx
Integral Q(x)e^integral P(x)dx
y=e^-integral P(x)dx (integral Q(x)e^integral P(x)dx + C)

(sorry, it is a bit messy, I don tknow how to use the math symbols yet)

The Attempt at a Solution


dy/dx + ytanx = secx, where P(x) = tanx, Q(x) = secx

ytanx - secx + dy/dx = 0

I(x) = e^Integral tanx = e^-ln(cosx)

Integral Q(x)e^integral P(x)dx = Integral (1/cosx) e^-ln(cosx) dx.

^^this is where I am stuck, either I did something wrong in the beginning, and/or it has to be integrated by parts. I only know how to do the "tabular table" method for parts, so if my calculations were right to that point, could somebody help me through the rest of the problem. thanks :(
 
Physics news on Phys.org
It looks confusing because you aren't simplifying the integrating factor. exp(-ln(cos(x))) can be written in a much simpler form using rules of exponents and logs. What is it?
 
Nm, i know how to solve it now, thanks.

Although, I am stuck on this problem now:

dy/dx - y = 4e^x, with y(0) = 4.

How do I solve this when there isn't a P(x) function next to y...or is there...
 
For dy/dx - y = 4e^x, with y(0) = 4.

I got answer: y = (4x + C)e^x

The answer in back says 4e^x (x + 1)

What am I doing wrong?
My Procedure:
P(x) = -1 Q(x) = 4e^x

I = e^-x

Integral both sides = > e^-x(dy/dx -y) = e^(-x) (4e^x)dx

= e^-x y = 4x + c

= y = (4x + c )e^x
 
ch2kb0x said:
For dy/dx - y = 4e^x, with y(0) = 4.

I got answer: y = (4x + C)e^x

The answer in back says 4e^x (x + 1)

What am I doing wrong?
My Procedure:
P(x) = -1 Q(x) = 4e^x

I = e^-x

Integral both sides = > e^-x(dy/dx -y) = e^(-x) (4e^x)dx

= e^-x y = 4x + c

= y = (4x + c )e^x

You didn't use the boundary condition y(0)=4 to find C.