Struggling with Solving a Non-Separable Differential Equation?

In summary, the conversation discusses two different approaches to solving the differential equation (1-cos(x))dy + (2ysin(x) - tan(x)) dx = 0. The first approach involves trying to solve it as a separable DE, but it is determined that this is not possible. The second approach is to solve it as a first order linear DE, using an integrating factor. However, there is a sign error in the integral of p and a simpler form for exp(2ln(1-cosx)).
  • #1
robierob12
48
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
  • #2
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.
 

FAQ: Struggling with Solving a Non-Separable Differential Equation?

What is a differential equation?

A differential equation is an equation that relates a function to its derivatives. It involves one or more independent variables, an unknown function, and its derivatives.

What is the purpose of solving a differential equation?

The purpose of solving a differential equation is to find the unknown function that satisfies the given equation. This allows us to make predictions and understand the behavior of systems in various fields such as physics, engineering, and economics.

What are the different types of differential equations?

The three main types of differential equations are ordinary differential equations (ODEs), partial differential equations (PDEs), and stochastic differential equations (SDEs). ODEs involve one independent variable, PDEs involve multiple independent variables, and SDEs involve random processes.

How do you solve a differential equation?

There are various methods for solving differential equations, including separation of variables, integrating factors, substitution, and series solutions. The method used depends on the type of differential equation and its complexity.

Why are differential equations important in science?

Differential equations are important in science because they can accurately model real-world phenomena and predict how systems will behave over time. They are used in a wide range of fields, including physics, engineering, biology, and economics to understand and analyze complex systems.

Back
Top