How Can I Solve This Differential Equation Involving Trigonometric Functions?

Click For Summary
SUMMARY

The discussion focuses on solving the differential equation y'=(1-y)cosx using integrating factors and separation of variables. The user initially struggles with the application of the integrating factor p(x)=e^(-sinx) and the manipulation of terms. Ultimately, they derive the correct solution through separation of variables, leading to the integral equation ∫1/(1-y)dy=∫cosxdx, resulting in the final expression y=-Ae^(-sinx)+1. The conversation highlights the importance of recognizing integrating factors in solving first-order linear differential equations.

PREREQUISITES
  • Understanding of first-order linear differential equations
  • Familiarity with integrating factors and their application
  • Knowledge of separation of variables technique
  • Basic calculus, specifically integration of trigonometric functions
NEXT STEPS
  • Study the method of integrating factors in detail
  • Practice solving first-order linear differential equations
  • Explore advanced techniques in solving differential equations, such as Laplace transforms
  • Learn about initial value problems (IVPs) and their solutions
USEFUL FOR

Students studying differential equations, mathematics educators, and anyone looking to enhance their problem-solving skills in calculus and differential equations.

jasonbot
Messages
16
Reaction score
0

Homework Statement



Hi, I'm struggling with a differential equations:


y'=(1-y)cosx

Homework Equations





The Attempt at a Solution




y'=cosx-ycosx

p(x)=e^(∫-cosxdx)
=e^-sinx

y'e^-sinx=e^(-sinx)cosx-e^(-sinx)ycosx

then I get confused because of the derivative.

I thought it could be
y'e^(-sinx)=d/dx(e^(-sinx)y) but that clearly doesn't work...
 
Physics news on Phys.org
Separation of variables might be a good approach here... you can show that the solution is given by

\int \frac{1}{1 - y} \, dy = \int \cos(x) \, dx

and both of the integrals are well calculable.
 
If you want to use an integrating factor, you need to move the y's to the same side.

y'+(\cos x)y = \cos x

When you multiply through by the integrating factor p(x), the LHS becomes the derivative of p(x)y(x).

\mbox{LHS} = p(x)y'(x)+p'(x)y(x) = [p(x)y(x)]'

That's where the y' term goes.
 
Gah! My bad :( I feel quite stupid now... The exercise is on integrating factors and I didn't see that O_o
Thanks vela for clearing up integrating factors for me :D

so to continue...

∫1/(1-y)dy=∫cosxdx

-ln(1-y)=sinx+c

1-y=Ae^(-sinx), A=e^c

-y=Ae^(-sinx)-1
y=-Ae^(-sinx)+1

which according to the solution is correct. Thanks guys! It's actually an IVP but I'll just leave that out since it's easy.
 
Note that what you are doing now is separation of variables.
To use integrating factors, you should proceed along vela's lines.
 
I did note that, it's just easier this way. Thanks CompuChip
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
Replies
9
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
6K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K