Differential equations are equations that involve a function and its derivative. It is possible to solve a very specific type of differential equation (called "separable differential equations") using a method called "separation of variables".
Separable differential equations
A separabledifferential equation is an equation of the form:
dxdy=f(x)g(y)
where f(x) and g(y) are given functions.
Separation of variables
Separation of variables is the technique used to solve separable differential equations. The process is as follows.
procedure
1.
Make sure the equation is in the form dxdy=f(x)g(y).
2.
Bring all the functions of y and dy to one side and all the functions of x and dx to the other side. This will give g(y)1dy=f(x)dx.
3.
Integrate both sides with respect to their respective variables. Don't forget to include a constant on one side. Note: There is no need to include one on both sides, since if you do that and then subtract one constant from the other, the result is that one side has the addition of a constant while the other does not.
4.
Solve for the constant using extra given information (if applicable).
Note: Here you are treating dy and dx as if they are themselves variables. While this is not quite true, you can manipulate them as such.
Example 1
Solve the differential equation dxdy=xy.
"Separate the variables", so divide both sides by y and multiply both sides by dx:
Note: It is perfectly fine to replace a constant (in this case ec) with a simpler constant (such as A). The are both just constants.
General and particular solutions
The solution to the above example is a general solution to the differential equation. This is because there are an infinite number of unique functions for y, as any value of A can be chosen.
A particular solution is a solution that has no arbitrary constants - it is the only solution satisfying the differential equation and an added boundary condition (a,b). This means that when x=a, y=b and hence the constant of integration can be found.
Example 2
Find the particular solution of the differential equation dxdy=xtan(y) that passes through the point (1,2π).
Separate the variables by multiplying both sides by dx and dividing both sides by tan(y):