Struggling with Solving a Non-Separable Differential Equation?

Click For Summary
SUMMARY

The discussion focuses on solving the non-separable differential equation (1-cos(x))dy + (2ysin(x) - tan(x)) dx = 0. The user attempted two methods: first, treating it as a separable differential equation, which led to complications in integration; second, as a first-order linear differential equation using an integrating factor. The consensus is that the first approach is incorrect, and the second method is valid but contains a sign error in the integral of p(x). Simplifying exp(2ln(1-cos(x))) is also recommended for clarity.

PREREQUISITES
  • Understanding of first-order linear differential equations
  • Familiarity with integrating factors in differential equations
  • Knowledge of logarithmic and exponential functions
  • Ability to perform integration of trigonometric functions
NEXT STEPS
  • Study the method of integrating factors for first-order linear differential equations
  • Practice integrating trigonometric functions, particularly involving tan(x) and sec(x)
  • Learn about simplifications of exponential expressions, such as exp(2ln(x))
  • Explore common pitfalls in solving differential equations, especially regarding sign errors
USEFUL FOR

Students and professionals in mathematics, particularly those studying differential equations, as well as educators looking for examples of common mistakes and their corrections in solving such equations.

robierob12
Messages
48
Reaction score
0
Solve the Differential Equation

(1-cos(x))dy + (2ysin(x) - tan(x)) dx = 0

I have tried this two ways so far and either way that I do it does not look correst.

First way: As a seperable DE.

(1-cos(x))dy/dx = 2ysin(x) - tan(x)

simplifying I eventually get...

dx - sec(x)dx = [cscx(cosx + 1)/2y]dy

and more simplifing

[1- sec(x)]dx/cscx(cosx + 1) = dy/2y


Then I integrated the right side and am having trouble integrating the left side.

int.[tan(x) * (cosx - 1)/(cosx + 1)] = (1/2) ln (y ) +c


is this a reasonable place to keep going from? if so, any tips on the integration?




The second way I did this is as a first order linear DE.

I got it in the form

(dy/dx) + p(x)y = q(x)

I used e and raised it to the integral of p(x)

and did some more work

y[e^[-2ln(1 - cosx)] = integrate.[ -tanx( 1 / (1-cosx))(e^[-2ln(1 - cosx))]



the right side does not look like other problems I do at the end when I do the final integration.


any thoughts on this...? Even make any sense?
 
Physics news on Phys.org
The equation isn't separable - so your first approach is just an error. Use the second approach with the integrating factor. But you have a sign error in your integral of p. And note that exp(2ln(1-cosx)) can be written a lot more simply.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
Replies
3
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K