I need to find the implicit derivative of $y'$ with respect to x. Note that y is a function of x. I'm given: $$x^2+xy-y^2=4$$
The final result should be: $$y'=\frac{2x+y}{2y-x}$$
Here are my steps:
- Derivative of first term $$\frac{d}{dx}x^2 = 2x$$
- Derivate of second term is the product rule $$\frac{d}{dx}(xy)=x(1)y'+(1)(y)=xy'+y$$
- Derivative of third term $$\frac{d}{dx}-y^2=-2yy'$$
- Derivative of right hand side, 4, is 0.
- Our expression is: $$2x+xy'+y-2yy'=0$$
- Rewrite in terms of y'. $$xy'+y-2yy'=-2x$$ $$xy'-2yy'=-2x-y$$ $$xy'y'=\frac{-2x-y}{-2y}$$ $$y'y'=\frac{-2x-y}{-2yx}$$ $$y'^2=\frac{-2x-y}{-2yx}$$ $$y'^2=\frac{x-y}{xy}$$ $$y'=\sqrt{\frac{x-y}{xy}}$$
Have I made a mistake? I'm not sure where to go from here. I need to achieve this expression as stated at the top my question: $$y'=\frac{2x+y}{2y-x}$$
You've made an error in step two. Notice that
$$x(1)y'+(1)y=xy'+y$$
In step $6$ you've made another error. Notice that
$$xy'-2yy'=-2x-y\require{cancel}\cancel{\color{red}\implies}xy'y'=\frac{-2x-y}{-2y}$$
It appears you've "divided" both sides by $-2y$, but you didn't do this properly on the left side.
If we try again:
$$xy'-2yy'=-2x-y\\(x-2y)y'=-(2x+y)\\y'=\frac{-(2x+y)}{x-2y}=\frac{2x+y}{-x+2y}\\y'=\frac{2x+y}{2y-x}$$
As was desired.