Linear First order ODE problem

In summary, the solution to the given problem involves an integrating factor, which is found by taking the antiderivative of -tan(theta). The final solution is x=-1/2*sin(theta)+ theta*cos(theta). Care must be taken with negative signs and missing terms in order to obtain the correct solution.
  • #1
Vuldoraq
272
1

Homework Statement



x[tex](\theta)[/tex]= x tanθ−cosθ

Homework Equations



The integrating factor is (note it should be negative tan, but the latex won't display it);

[tex]I= \int -tan \theta\ d \theta[/tex]

The solution is given by;

[tex]x \ e^{I}=-\int \ e^{I}*cos\theta\ d \theta[/tex]

The Attempt at a Solution



[tex]I=\int \tan \theta\ d \theta[/tex]
[tex]=-(-\ln|cos \theta |)[/tex]

So, [tex]e^{I}=cos \theta[/tex]

Therefore,

[tex]x*cos \theta = \int \ cos^{2} \theta d \theta[/tex]

Using the half angle formulae gives,

[tex]x*cos \theta =\frac{1}{2} \int \cos(2 \theta) +1[/tex]

Which, after integration and simplification gives,

[tex]x=-\frac{1}{2}*(sin \theta + \theta\ sec\theta)[/tex]

When I check my answer I end up with zero,

[tex]\frac{dx}{d \theta}=-\frac{1}{2}*(cos \theta \ +\ sec\theta \ +\ \theta*sec \theta \tan \theta)[/tex]

[tex]x*tan \theta=-\frac{1}{2}*(sin \theta * tan \theta + \theta* sec \theta* tan \theta)[/tex]

[tex]\frac{dx}{d \theta}-x*tan \theta=\frac{1}{2}*[(\frac{cos^{2}\theta\ {-1}}{cos \theta}-\theta* sec \theta* tan \theta)-(-\frac{sin^{2} \theta}{cos \theta}-\theta* sec \theta* tan \theta)][/tex]

[tex]=\frac{sin^{2} \theta \ - \ (1-cos^{2} \theta)}{2* cos \theta}=0[/tex]

Please could someone go through my calculation and see where my mistake is?
 
Last edited:
Physics news on Phys.org
  • #2
Vuldoraq said:

Homework Statement



x[tex](\theta)[/tex]= x tanθ−cosθ


Homework Equations



The integrating factor is (note it should be negative tan, but the latex won't display it);
I have corrected that: you had a "\" before the "-".

[tex]I= \int -tan \theta\ d \theta[/tex]

The solution is given by;

[tex]x \ e^{I}=-\int \ e^{I}*cos\theta\ d \theta[/tex]

The Attempt at a Solution



[tex]I=-\int \tan \theta\ d \theta[/tex]
[tex]=-(-\ln|cos \theta |)[/tex]

So, [tex]e^{I}=cos \theta[/tex]

Therefore,

[tex]x*cos \theta = \int \ cos^{2} \theta d \theta[/tex]
Haven't you forgotten the "-" on the right side?

Using the half angle formulae gives,

[tex]x*cos \theta =\frac{1}{2} \int \cos(2 \theta) +1[/tex]
After integration, this is x cos(theta)= 1/2(theta)- (1/4) sin(2\theta)

Which, after integration and simplification gives,

[tex]x=-\frac{1}{2}*(sin \theta + sec\theta)[/tex]
You appear to have forgotten the "-" on the "- cos(theta)" to begin, with as well as the "2" in the 2 theta, and, finally, the theta from integrating "1".

When I check my answer I end up with zero,

[tex]\frac{dx}{d \theta}=-\frac{1}{2}*(cos \theta \ +\ sec\theta \ +\ \theta*sec \theta \tan \theta)[/tex]

[tex]x*tan \theta=-\frac{1}{2}*(sin \theta * tan \theta + \theta* sec \theta* tan \theta)[/tex]

[tex]\frac{dx}{d \theta}-x*tan \theta=\frac{1}{2}*[(\frac{cos^{2}\theta\ {-1}}{cos \theta}-\theta* sec \theta* tan \theta)-(-\frac{sin^{2} \theta}{cos \theta}-\theta* sec \theta* tan \theta)][/tex]

[tex]=\frac{sin^{2} \theta \ - \ (1-cos^{2} \theta)}{2* cos \theta}=0[/tex]

Please could someone go through my calculation and see where my mistake is?
 
  • #3
Hi HallsofIvy,

I've always struggled with minus signs, I find them really confusing! :redface:

When I simplified I used [tex]\frac{1}{2}sin 2\theta=sin\theta*cos\theta[/tex].

Popping in that minus and the missing theta gave me the correct solution, I think.

[tex]x=-\frac{1}{2}sin\theta + \theta*cos\theta[/tex]

To check;

[tex]\frac{dx}{d\theta}=-\frac{1}{2}*(cos\theta + sec\theta + \theta*sec\theta*tan\theta)[/tex]

[tex]x*tan\theta=-\frac{1}{2}*(\frac{sin^{2}\theta}{cos\theta} + \frac{\theta*sin\theta}{cos^{2}\theta})[/tex]

[tex]\frac{dx}{d\theta}-x*tan\theta=-\frac{1}{2}*(cos\theta + sec\theta + \theta*sec\theta*tan\theta - \frac{sin^{2}\theta}{cos\theta} -\frac{\theta*sin\theta}{cos^{2}\theta})[/tex]

[tex]=-\frac{1}{2}*[\frac{cos^{2}\theta + 1 -sin^{2}\theta}{cos\theta}][/tex]

[tex]=-\frac{1}{2}*[\frac{2*cos^{2}\theta -1 + 1}{cos\theta}]=-cos\theta[/tex]

Does this look reasonable to you?

Thanks for your help, I was going round in circles with that problem!
 

1. What is a linear first order ODE problem?

A linear first order ODE problem is a type of differential equation that involves only the first derivative of the unknown function and can be written in the form y' + p(x)y = g(x), where p(x) and g(x) are functions of x.

2. How do you solve a linear first order ODE problem?

To solve a linear first order ODE problem, you can use the method of separation of variables, which involves rearranging the equation to have the form dy/dx = f(x)g(y), and then integrating both sides.

3. What is the role of the initial condition in solving a linear first order ODE problem?

The initial condition, also known as the boundary condition, is a given value of the unknown function at a specific point. It helps to determine the particular solution of the differential equation, as it satisfies both the differential equation and the initial condition.

4. Can a linear first order ODE problem have multiple solutions?

Yes, a linear first order ODE problem can have multiple solutions. However, these solutions may differ by a constant value due to the arbitrary constant that is introduced during the integration process. The particular solution is determined by the initial condition.

5. What are some real-life applications of linear first order ODE problems?

Linear first order ODE problems can be used to model various physical processes, such as population growth, radioactive decay, and electrical circuits. They are also commonly used in economics, engineering, and other fields to analyze and predict various phenomena.

Similar threads

  • Calculus and Beyond Homework Help
Replies
28
Views
1K
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
869
  • Calculus and Beyond Homework Help
Replies
5
Views
680
  • Calculus and Beyond Homework Help
Replies
3
Views
555
  • Calculus and Beyond Homework Help
Replies
3
Views
793
  • Calculus and Beyond Homework Help
Replies
1
Views
824
  • Calculus and Beyond Homework Help
Replies
6
Views
381
  • Calculus and Beyond Homework Help
Replies
3
Views
875
  • Calculus and Beyond Homework Help
Replies
2
Views
646
Back
Top