Linear 1st order differential equations

Click For Summary
SUMMARY

This discussion focuses on solving linear first-order differential equations, specifically the equations dy/dx + ytan(x) = sec(x) and dy/dx - y = 4e^x. The user correctly identifies the integrating factor I(x) = e^(-ln(cos(x))) for the first equation but struggles with integration. For the second equation, the user fails to apply the initial condition y(0) = 4 to determine the constant C, leading to an incorrect solution. The correct solution for the second equation is y = 4e^x(x + 1).

PREREQUISITES
  • Understanding of linear first-order differential equations
  • Familiarity with integrating factors and their application
  • Knowledge of boundary conditions in differential equations
  • Proficiency in integration techniques, including integration by parts
NEXT STEPS
  • Study the method of integrating factors for linear differential equations
  • Learn about applying initial conditions to solve for constants in differential equations
  • Explore integration techniques, particularly integration by parts
  • Practice solving various linear first-order differential equations
USEFUL FOR

Students studying differential equations, educators teaching calculus, and anyone looking to improve their problem-solving skills in mathematical analysis.

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...
 
There is. P(x)=(-1).
 
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.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
4
Views
2K
  • · Replies 26 ·
Replies
26
Views
1K
Replies
5
Views
2K
Replies
7
Views
2K
Replies
4
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
5
Views
2K