**Linear Algebra**

*chevron_left*

**Differentiation**

# Guide on Implicit Differentiation

*schedule*Aug 12, 2023

*toc*Table of Contents

*expand_more*

**mathematics behind data science**with 100+ top-tier guides

Start your free 7-days trial now!

# Motivating example

In Calculus, we are often given a function $f(x)$ and asked to take the derivative with respect to $x$. For instance, given $f(x)=x^2$, we can easily obtain the derivative $f'(x)=2x$. However, what if the given equation is not a function of such forms? For instance, consider the equation of the circle:

This is clearly not of form $f(x)$, but we can rearrange the equation to make $y$ the subject:

Even though \eqref{eq:kRqwKaeXzuUpPstSdgE} is of form $f(x)$, the problem here is that we have a $\pm$, which means we actually have two equations instead of just one. This is confusing and begs the question of which equation we should take the derivative of. This is where implicit differentiation comes into play. Instead of making $y$ the subject, we keep the equation \eqref{eq:Fslf5tE3Tagbblgeb9s} as is.

We know from \eqref{eq:kRqwKaeXzuUpPstSdgE} that $y$ is a function of $x$. Therefore, we can replace $y$ with $y(x)$ to emphasize this fact. Keep in mind that $y(x)$ does not mean $y$ multiplied by $x$, but rather $y$ as a function of $x$. Let's now rewrite \eqref{eq:Fslf5tE3Tagbblgeb9s} as follows:

Taking the derivative of both sides gives:

The right-hand side is easy - the derivative of a constant is $0$ like so:

Let's now tackle the left-hand side:

We must use the chain rule when taking the derivative of $[y(x)]^2$ with respect to $x$ because $y(x)$ is a function of $x$ like so:

Substituting \eqref{eq:o2VbzIulAuTBKLY79o4} into \eqref{eq:M7T97SIY3o8KSyK7fLW} gives:

We now substitute \eqref{eq:AhETI3i0iVFLLxA00HN} back into our equation \eqref{eq:EcLD65bmk58YD91kH3g}:

Now that we are done with taking the derivative, we can drop the $(x)$ part:

Finally, let's make $y'$ the subject:

Unlike the standard case, the derivative of $y$ with respect to $x$ is dependent on both on $x$ and $y$, rather than just $x$.

# Computing slope of tangent line of a circle using implicit differentiation

Consider a circle with radius $5$:

Compute the slope of the tangent line at $(3,4)$.

Solution. Let's first confirm that the point $(3,4)$ is indeed on the circle:

Great, so the point $(3,4)$ lies on the circle! From the previous section, we know that the derivative of $y$ with respect to $x$ for a circle is computed by:

Let's substitute $x=3$ and $y=4$ into \eqref{eq:A1sPwr15aeUpKbhW5mL} to get:

This is the slope of the tangent line at $(3,4)$!

Finally, let's illustrate our findings:

Great, we're done!

# Performing implicit differentiation

Consider the following function:

Compute the slope of the tangent line at point $(1,3)$.

Solution. We will tackle this problem in two ways:

standard way of differentiation

implicit differentiation

Unlike the circle example, we can easily make $y$ the subject to get the $f(x)$ form:

Taking the derivative of $f$ with respect to $x$ gives:

Therefore, at point $(1,3)$, the slope of the tangent line is:

Let's now tackle this problem using implicit differentiation. We take the derivative of both sides with respect to $x$ like so:

Therefore, at point $(1,3)$, the slope of the tangent line is:

This is the same as the slope computed using the standard way of differentiation!

Finally, let's visualize the tangent line:

Great, we're done!