# How to simplify this fraction?

1. May 1, 2012

### kulimer

1. The problem statement, all variables and given/known data

I want the simplify the following equation

2. Relevant equations

$\frac{x}{{p}^{2}}+\frac{n-x}{{(1-p)}^{2}}$, where p=$\frac{x}{n}$

3. The attempt at a solution

I got this $\frac{{n}^{2}}{x}-\frac{{n}^{2}}{n-x}$, I don't think this is the right answer.

Last edited: May 1, 2012
2. May 1, 2012

### HallsofIvy

No, that is not the right answer. How did you get that?

3. May 1, 2012

### kulimer

$=\frac{x{(1-p)}^{2}+{p}^{2}(n-x)}{{p}^{2}{(1-p)}^{2}}$
$=\frac{x}{{(\frac{x}{n})}^{2}}+\frac{n-x}{{(1-\frac{x}{n})}^{2}}$
$=x \frac{{n}^{2}}{{x}^{2}}+\frac{n-x}{({\frac{n-x}{n}})^{2}}$
$=\frac{{n}^{2}}{x}-(n-x)({\frac{n}{n-x}})^{2}$
$=\frac{{n}^{2}}{x}-\frac{{n}^{2}}{n-x}$

Did I make a mistake somewhere?

Last edited: May 1, 2012
4. May 1, 2012

### HallsofIvy

Why did you combine the fractions and then separate them again? In any case, the problem you posted had $1- p^2$, not $(1- p)^2$ which you now have.

5. May 1, 2012

### kulimer

I forgot to put parenthesis around 1-p in LaTex. It is fixed now.

6. May 2, 2012

### kulimer

@HallsofIvy (PF Mentor) Are you still here? What do you think?

7. May 2, 2012

### SammyS

Staff Emeritus
You changed a "+" sign above to a "−" sign below.