Integrating Factor Method: Finding the Solution to a Cosine Equation

Click For Summary

Homework Help Overview

The discussion revolves around finding the general solution to the differential equation cos(x)y' + ysin(x) = 1, which involves the integrating factor method. Participants are exploring the setup and integration of the equation within the context of differential equations.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss the assignment of p(x) and the necessary form of the equation to apply the integrating factor method. There is uncertainty about integrating e^cos(x) and the implications of dividing the equation by cos(x). Some participants question the integration of e^{sec^2(x)} * sec(x) and the correct interpretation of tan(x).

Discussion Status

Guidance has been offered regarding the form of the equation and the integrating factor. Participants are actively engaging with the problem, exploring different interpretations and clarifying steps. There is no explicit consensus on the final solution, but there is a productive exchange of ideas regarding the formulation of the answer.

Contextual Notes

Participants note the importance of considering the domain of the solutions, particularly regarding points where cos(x) = 0. There is also mention of potential issues with the definition of the final answer in relation to the original differential equation.

_N3WTON_
Messages
350
Reaction score
3

Homework Statement


Find the general solution to the indicated equation:
[itex]cos(x)y' + ysin(x) = 1[/itex]


Homework Equations


[itex]e^\int p(x)\,dx * y(x) = int\ f(x)\, dx e^\intp(x)\,dx + C[/itex]

The Attempt at a Solution


Ok, I am having trouble getting started with this problem because I am not really sure what value to assign to p(x). I attempted to assign p(x) = sin(x) therefore u(x) = e^cosx. However, I do not believe that e^cosx can be integrated without using some advanced techniques, so I am quite sure I am not doing the problem correctly.
Edit: when I say e^cosx cannot be integrated I mean not in terms of elementary functions
Edit: Sorry about the bad Latex equations, I am attempting to sort it out (I have never used it before)
 
Last edited:
Physics news on Phys.org
_N3WTON_ said:

Homework Statement


Find the general solution to the indicated equation:
[itex]cos(x)y' + ysin(x) = 1[/itex]


Homework Equations


[itex]e^\(int p(x))\,dx * y(x) = int\ f(x)\, dxe^\intp(x)\,dx + C[/itex]

The Attempt at a Solution


Ok, I am having trouble getting started with this problem because I am not really sure what value to assign to p(x). I attempted to assign p(x) = sin(x) therefore u(x) = e^cosx. However, I do not believe that e^cosx can be integrated without using some advanced techniques, so I am quite sure I am not doing the problem correctly.
Edit: when I say e^cosx cannot be integrated I mean not in terms of elementary functions
Edit: Sorry about the bad Latex equations, I am attempting to sort it out (I have never used it before)

To calculate the integrating factor your equation needs to be in the form$$y' + p(x)y = q(x)$$So you need to start by dividing your equation through by ##\cos x## before trying to evaluate the integrating factor.
 
LCKurtz said:
To calculate the integrating factor your equation needs to be in the form$$y' + p(x)y = q(x)$$So you need to start by dividing your equation through by ##\cos x## before trying to evaluate the integrating factor.
thank you, so then the equation would become:
[itex]y' + ytan(x) = sec(x)[/itex] and
[itex]p(x) = tan(x)[/itex]
right?
 
_N3WTON_ said:
thank you, so then the equation would become:
[itex]y' + ytan(x) = sec(x)[/itex] and
[itex]p(x) = tan(x)[/itex]
right?

Yes. The integrating factor of [itex]e^{\int \tan x \,dx}[/itex] should now work as advertised. :) Just be sure to note whether the points for which cos(x) = 0 are to be included in the domain of the solutions.
 
slider142 said:
Yes. The integrating factor of [itex]e^{\int \tan x \,dx}[/itex] should now work as advertised. :) Just be sure to note whether the points for which cos(x) = 0 are to be included in the domain of the solutions.

Edit: I mean can [itex]e^{sec^2x} * secx[/itex] be integrated? Because that is what I'll end up with no?
 
_N3WTON_ said:
Edit: I mean can [itex]e^{sec^2x} * secx[/itex] be integrated? Because that is what I'll end up with no?

sec2(x) is not an integral of tan(x). Remember we need to find a function that has tan(x) as its derivative. Try writing tan(x) as [itex]\frac{\sin x}{\cos x}[/itex].
 
  • Like
Likes   Reactions: 1 person
slider142 said:
sec2(x) is not an integral of tan(x). Remember we need to find a function that has tan(x) as its derivative. Try writing tan(x) as [itex]\frac{\sin x}{\cos x}[/itex].
ahh...thanks, sorry about the silly mistake
 
ok, for my final answer I am getting:
[itex]y(x) = sin(x) + \frac {C}{sec(x)}[/itex]
 
_N3WTON_ said:
ok, for my final answer I am getting:
[itex]y(x) = sin(x) + \frac {C}{sec(x)}[/itex]

That looks fine. However, it may be preferable to write the solution as [itex]y(x) = \sin x + C\cos x[/itex], since both this function and the original differential equation is defined for all x, while your function is not defined for some of the values of x for which the original differential equation is defined. :)
 
  • #10
slider142 said:
That looks fine. However, it may be preferable to write the solution as [itex]y(x) = \sin x + C\cos x[/itex], since both this function and the original differential equation is defined for all x, while your function is not defined for some of the values of x for which the original differential equation is defined. :)
thanks again, I'll do that
 

Similar threads

Replies
7
Views
2K
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 105 ·
4
Replies
105
Views
11K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 26 ·
Replies
26
Views
2K
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K