Example13.2.Finding the Equation of a Tangent Line.
In this example, we will find the equations of the tangent lines to the circle of radius \(4\text{,}\) centred at the point \((1,1)\text{,}\) where \(x=3\text{.}\) Once these equations are assigned, we will plot the circle and the two tangent together in one single implicitplot() command.
The derivative \(\tfrac{dy}{dx}\) can be found using implicitdiff(). Then, by substituting the two points, we can find the slopes of both tangent lines.
Recall that the equation of a line passing through \((x_0,y_0)\) with slope \(m\) can be written in the form
\begin{equation*}
y = m (x - x_0) + y_0\text{.}
\end{equation*}
If we wish to plot the circle and the two tangent lines together using a single implicitplot() command, they will need to be defined as equations involving an equals \(=\) sign. Each of these equations can then be expanded out to see the lines in their typical \(y=mx+b\) form.
We can now plot the circle and the two lines together. Using the scaling=constrained parameter will produce a proper circle and avoid it being stretched either vertically or horizontally.
In this example, we will show that the implicit curves \(x^2 - y^2 = 8\) and \(-xy =~3\) are always orthogonal (perpendicular) at their intersection points. Weβll start by assigning names to these two equations so that we can plot the two curves using implicitplot().
From the graphs of these two curves, it appears that their intersections are perpendicular. This can be proven by showing that the derivative of one curve is equal to the negative reciprocal of the other, or that they multiply to equal \(-1\text{.}\)
The intersection points are any points \((x,y)\) that satisfy both of the equations of these two implicit curves. They can be found using a single solve() (or fsolve()) command, so long as it is given both equations and the two variables, \(x\) and \(y\text{.}\)
Points involving \(I\) are imaginary points and should not be considered. Therefore, the only two intersection points are \((-3,1)\) and \((3,-1)\text{,}\) which agrees with what we see from the graph.
The derivatives of both curves can be found implicitly using the implicitdiff() command. They can be assigned two different names for easy comparison later.
To show that the slopes are negative reciprocals at a particular intersection point, the \(x\)- and \(y\)-values can be substituted into the two derivatives.