# Check Differential Equation Solution

## Homework Statement

Verify Differential Equation Solution
dX/dt=(2-x)(1-x)

## Homework Equations

The solution is ln ((2-x)/(1-x))=t

## The Attempt at a Solution

The derivative of the solution is -1/(2-x) dX/dt - (-1)/(1-x) dX/dt=1
But I plug this derivative in and I get stuck. How am I supposed to plug the solution and the derivative of the solution into the original differential equation? Can you help me set this up? I'm going to need a little help along the way...

## The Attempt at a Solution

Related Calculus and Beyond Homework Help News on Phys.org
rock.freak667
Homework Helper
-1/(2-x) dX/dt - (-1)/(1-x) dX/dt=1

rewrite it as

$$\left( \frac{-1}{2-x}+ \frac{1}{1-x} \right) \frac{dX}{dt}=1$$

and bring the two terms in the bracket to the same common denominator.

Thanks for the reply. I did that and my common denominator is (2-x).

With that, I solve for dX/dt and I get dX/dt=1/(2-x).

I plug the dX/dt into the original equation which looks like 1/(2-x)=(2-x)(1-x)

the (2-x) cancels from both sides and I am left with 1=1-x and then x=0.

I went wrong somewhere...

I apologize...I found my mistake. The common denominator is
Code:
X[SUP]2[/SUP]-3x+2
which of course factors to (2-x)(1-x). I then multiply the numerator and denominator by the common denominator and put everything together. I then multiply both sides by (2-x)(1-x) to solve for dX/dt which leaves me with dX/dt=(2-x)(1-x). Plugging this into the original DE leaves me with (2-x)(1-x)=(2-x)(1-x) which proves that the solution is a true solution for this DE. Thanks for all of your help...