# Another calculus problem (not homework)

**URL:** <https://boards.straightdope.com/t/another-calculus-problem-not-homework/324844>\
**Category:** Factual Questions\
**Created:** [October 5, 2005, 4:29am UTC](https://boards.straightdope.com/t/another-calculus-problem-not-homework/324844 "2005-10-05T04:29:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TJdude825](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@TJdude825](https://boards.straightdope.com/u/TJdude825)\
**Post date:** [October 5, 2005, 4:29am UTC](https://boards.straightdope.com/t/another-calculus-problem-not-homework/324844/1 "2005-10-05T04:29:22Z")

</div>

**Given y = x/(x+y), find dy/dx.**

If you differentiate both sides wrt\* x, using the quotient rule on the right, you get:

dy/dx = [(x+y)(1) - (1 + dy/dx)(x)]/(x+y)[sup]2[/sup]

which ends up simplifying to

dy/dx = y/[(x+y)[sup]2[/sup]+x]

However, if you multiply both sides by (x+y)…

y(x+y) = x

and THEN differentiate (using the product rule on the left) and simplify, you get

dy/dx = (1-y)/(2y+x)

As far as everyone in my class (including the teacher) can tell, these two answers are not equal, so one of them must be wrong. Which one, and why?

\*with respect to. I learned that in another calculus thread a few days ago.

---

<div class="post-metadata">

**Author:** ![Balduran](https://avatars.discourse-cdn.com/v4/letter/b/cc9497/32.png) [@Balduran](https://boards.straightdope.com/u/Balduran)\
**Post date:** [October 5, 2005, 4:57am UTC](https://boards.straightdope.com/t/another-calculus-problem-not-homework/324844/2 "2005-10-05T04:57:37Z")

</div>

> [@TJdude825](#):
>
> **Given y = x/(x+y), find dy/dx.**
> 
> If you differentiate both sides wrt\* x, using the quotient rule on the right, you get:
> 
> dy/dx = [(x+y)(1) - (1 + dy/dx)(x)]/(x+y)[sup]2[/sup]
> 
> which ends up simplifying to
> 
> dy/dx = y/[(x+y)[sup]2[/sup]+x]
> 
> However, if you multiply both sides by (x+y)…
> 
> y(x+y) = x
> 
> and THEN differentiate (using the product rule on the left) and simplify, you get
> 
> dy/dx = (1-y)/(2y+x)
> 
> As far as everyone in my class (including the teacher) can tell, these two answers are not equal, so one of them must be wrong. Which one, and why?
> 
> \*with respect to. I learned that in another calculus thread a few days ago.

Actually, they are the same.

(2) y’=(1-y)/(2y+x) substitute y = x/(x+y) into the numerator to get  
y’ =y/((x+y)(2y+x))=y/(x^2+y^2+2xy+[y^2+xy]) (3)

I separated out the term in square brakets, because, using y = x/(x+y) can be rearranged to y^2+xy=x . Sub this into (3) and you have the same answer as your first method.

---

<div class="post-metadata">

**Author:** ![David\_Simmons](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@David\_Simmons](https://boards.straightdope.com/u/David_Simmons)\
**Post date:** [October 5, 2005, 4:59am UTC](https://boards.straightdope.com/t/another-calculus-problem-not-homework/324844/3 "2005-10-05T04:59:17Z")

</div>

> [@TJdude825](#):
>
> **Given y = x/(x+y), find dy/dx.**
> 
> If you differentiate both sides wrt\* x, using the quotient rule on the right, you get:
> 
> dy/dx = [(x+y)(1) - (1 + dy/dx)(x)]/(x+y)[sup]2[/sup]
> 
> which ends up simplifying to
> 
> dy/dx = y/[(x+y)[sup]2[/sup]+x]
> 
> However, if you multiply both sides by (x+y)…
> 
> y(x+y) = x
> 
> and THEN differentiate (using the product rule on the left) and simplify, you get
> 
> dy/dx = (1-y)/(2y+x)
> 
> As far as everyone in my class (including the teacher) can tell, these two answers are not equal, so one of them must be wrong. Which one, and why?
> 
> \*with respect to. I learned that in another calculus thread a few days ago.

My Mathcad gives:

y/(x + y)[sup]2[/sup]

---

<div class="post-metadata">

**Author:** ![Mathochist](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mathochist](https://boards.straightdope.com/u/Mathochist)\
**Post date:** [October 5, 2005, 7:59am UTC](https://boards.straightdope.com/t/another-calculus-problem-not-homework/324844/4 "2005-10-05T07:59:58Z")

</div>

> [@Balduran](#):
>
> Actually, they are the same.
> 
> (2) y’=(1-y)/(2y+x) substitute y = x/(x+y) into the numerator to get  
> y’ =y/((x+y)(2y+x))=y/(x^2+y^2+2xy+[y^2+xy]) (3)
> 
> I separated out the term in square brakets, because, using y = x/(x+y) can be rearranged to y^2+xy=x . Sub this into (3) and you have the same answer as your first method.

That’s it. More succinctly (in case anyone balked at the formulas), the OP’s class forgot that when doing algebraic manipulations to compare the two answers they’re allowed (in fact, required) to use the original relation between x and y.
