{"id":4047,"date":"2026-07-07T12:48:35","date_gmt":"2026-07-07T12:48:35","guid":{"rendered":"https:\/\/www.mathros.net.ua\/en\/?p=4047"},"modified":"2026-07-07T14:48:31","modified_gmt":"2026-07-07T14:48:31","slug":"equation-of-a-tangent-line-and-equation-of-a-normal-line-to-a-curve","status":"publish","type":"post","link":"https:\/\/www.mathros.net.ua\/en\/equation-of-a-tangent-line-and-equation-of-a-normal-line-to-a-curve.html","title":{"rendered":"Equation of a Tangent Line and Equation of a Normal Line to a Curve: Formulas and Examples"},"content":{"rendered":"<p>The equation of a tangent line and the equation of a normal line to a curve help us understand how a graph behaves near a given point. The tangent line shows the direction of the curve and the rate of change of the function, while the normal line gives the direction perpendicular to it. Next, we will look at how to write these equations, which special cases should be considered, and how tangent lines can help find the angle between two curves.<\/p>\n<h2>Equation of a Tangent Line: A Line That Shows the Direction of a Curve<\/h2>\n<p>Let\u2019s start with the tangent line. Suppose the curve is given by the equation \\( y=f(x) \\), and the point of tangency is \\( M_0(x_0,f(x_0)) \\). If the function has a derivative at the point \\( x_0 \\), then this derivative describes the slope of the graph at that point.<\/p>\n<p>From coordinate geometry, we know that the equation of a line passing through the point \\( M_0(x_0,f(x_0)) \\) and having slope \\( k \\) is written as:<\/p>\n<p>\\[<br \/>\ny-f(x_0)=k\\cdot(x-x_0).<br \/>\n\\]<\/p>\n<p>For a tangent line, the slope is equal to the value of the derivative at the point of tangency:<\/p>\n<p>\\[<br \/>\nk=f'(x_0).<br \/>\n\\]<\/p>\n<p>Therefore, if the derivative \\( f'(x_0) \\) exists and is a finite number, the equation of a tangent line to the curve \\( y=f(x) \\) at the point \\( M_0(x_0,f(x_0)) \\) has the form:<\/p>\n<p>\\[<br \/>\ny-f(x_0)=f'(x_0)\\cdot(x-x_0).<br \/>\n\\]<\/p>\n<p>What does this formula show? It shows the local direction of the curve at the point. In other words, the tangent line can be thought of as a straight-line approximation of the curve near the point \\( M_0(x_0,f(x_0)) \\). And the derivative \\( f'(x_0) \\) shows the rate of change of the function at that point.<\/p>\n<p>To write the equation of a tangent line, we need to find \\( f(x_0) \\), calculate \\( f'(x_0) \\), and then substitute these values into the formula.<\/p>\n<p>If<\/p>\n<p>\\[<br \/>\nf'(x_0)=0,<br \/>\n\\]<\/p>\n<p>then the tangent line is horizontal. It is parallel to the x-axis, so its equation has the form:<\/p>\n<p>\\[<br \/>\ny=f(x_0).<br \/>\n\\]<\/p>\n<p>Let\u2019s also note one more thing: if the tangent line is vertical, then it is not described by a formula with a slope. In this case, the equation of the tangent line is written separately:<\/p>\n<p>\\[<br \/>\nx=x_0.<br \/>\n\\]<\/p>\n<p>So, the tangent line answers the question: in which direction does the curve pass through the given point? But in many problems, one more direction is also important \u2014 the direction perpendicular to this one. This is exactly how we move on to the normal line.<\/p>\n<h2>Equation of a Normal Line: A Line Perpendicular to the Tangent Line<\/h2>\n<p>The normal line to a curve is a line that passes through the point \\( M_0(x_0,f(x_0)) \\) and is perpendicular to the tangent line at that point.<\/p>\n<p>If the tangent line shows how the curve changes at the point, then the normal line shows the direction perpendicular to this local direction. Simply put, the tangent line goes <em>\u201calong\u201d<\/em> the curve, while the normal line goes <em>\u201cacross\u201d<\/em> it at the given point.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-4051 aligncenter\" src=\"https:\/\/www.mathros.net.ua\/en\/wp-content\/uploads\/2026\/07\/equation-of-a-tangent-line-and-equation-of-a-normal-line-to-a-curve1.jpg\" alt=\"Graph of the function \\( y=f(x) \\), with the tangent line and the normal line drawn to the curve at the point \\( M_0 \\)\" width=\"600\" height=\"350\" srcset=\"https:\/\/www.mathros.net.ua\/en\/wp-content\/uploads\/2026\/07\/equation-of-a-tangent-line-and-equation-of-a-normal-line-to-a-curve1.jpg 600w, https:\/\/www.mathros.net.ua\/en\/wp-content\/uploads\/2026\/07\/equation-of-a-tangent-line-and-equation-of-a-normal-line-to-a-curve1-300x175.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Why do we need this? The normal line is used in problems where it is important to construct a perpendicular to a curve, find a perpendicular direction related to the shortest distance, describe the direction of a force, or study the geometric position of lines near a graph. So, the normal line does not repeat the tangent line. It complements it.<\/p>\n<p>Suppose the slope of the tangent line is<\/p>\n<p>\\[<br \/>\nk_t=f'(x_0).<br \/>\n\\]<\/p>\n<p>Since the normal line is perpendicular to the tangent line, the slopes of these two lines are related by the formula:<\/p>\n<p>\\[<br \/>\nk_t\\cdot k_n=-1,<br \/>\n\\]<\/p>\n<p>where \\( k_n \\) is the slope of the normal line. From this, if \\( f'(x_0)\\neq 0 \\), we get:<\/p>\n<p>\\[<br \/>\nk_n=-\\frac{1}{f'(x_0)}.<br \/>\n\\]<\/p>\n<p>Therefore, the equation of a normal line to the curve \\( y=f(x) \\) at the point \\( M_0(x_0,f(x_0)) \\) has the form:<\/p>\n<p>\\[<br \/>\ny-f(x_0)=-\\frac{1}{f'(x_0)}\\cdot(x-x_0).<br \/>\n\\]<\/p>\n<p>This formula works under the condition that \\( f'(x_0)\\neq 0 \\). The reason is simple: the formula contains division by \\( f'(x_0) \\), and division by zero is not allowed.<\/p>\n<p>If \\( f'(x_0)=0 \\), then, as we saw in the previous section, the tangent line is horizontal. So the normal line at this point will be a vertical line:<\/p>\n<p>\\[<br \/>\nx=x_0.<br \/>\n\\]<\/p>\n<p>If the tangent line at the point \\( M_0(x_0,f(x_0)) \\) is vertical and has the equation \\( x=x_0 \\), then the normal line will be horizontal:<\/p>\n<p>\\[<br \/>\ny=f(x_0).<br \/>\n\\]<\/p>\n<p>So, the normal line complements the tangent line: it gives the second important direction at the same point of the curve.<\/p>\n<h2>Angle Between Curves: Comparing Directions Through Tangent Lines<\/h2>\n<p>Now let\u2019s take the next step. If a tangent line describes the direction of one curve at a point, then two tangent lines help us compare the directions of two curves at their common point.<\/p>\n<p>Suppose we are given two curves \\( y=f_1(x) \\) and \\( y=f_2(x) \\). Let them intersect at the point \\( M_0(x_0,f_1(x_0)) \\). Since this point belongs to both curves, the following equality holds:<\/p>\n<p>\\[<br \/>\nf_1(x_0)=f_2(x_0).<br \/>\n\\]<\/p>\n<p>The angle between two curves at their point of intersection is the angle between the tangent lines to these curves drawn at that point. Usually, the angle between curves means the smaller angle between their tangent lines.<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-4053 aligncenter\" src=\"https:\/\/www.mathros.net.ua\/en\/wp-content\/uploads\/2026\/07\/equation-of-a-tangent-line-and-equation-of-a-normal-line-to-a-curve2.jpg\" alt=\"Graphs of the functions \\( y=f_1(x) \\) and \\( y=f_2(x) \\), with tangent lines drawn at their point of intersection \\( M_0 \\)\" width=\"600\" height=\"350\" srcset=\"https:\/\/www.mathros.net.ua\/en\/wp-content\/uploads\/2026\/07\/equation-of-a-tangent-line-and-equation-of-a-normal-line-to-a-curve2.jpg 600w, https:\/\/www.mathros.net.ua\/en\/wp-content\/uploads\/2026\/07\/equation-of-a-tangent-line-and-equation-of-a-normal-line-to-a-curve2-300x175.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>So, the problem of finding the angle between curves is reduced to the problem of finding the angle between two straight lines \u2014 their tangent lines.<\/p>\n<p>If both tangent lines are not vertical, then their slopes are:<\/p>\n<p>\\[<br \/>\nk_1=f&#8217;_1(x_0), \\qquad k_2=f&#8217;_2(x_0).<br \/>\n\\]<\/p>\n<p>Then the tangent of the angle between the tangent lines, and therefore between the curves, is calculated by the formula:<\/p>\n<p>\\[<br \/>\n\\tan(\\varphi)=\\left|\\frac{k_2-k_1}{1+k_1\\cdot k_2}\\right|.<br \/>\n\\]<\/p>\n<p>After substituting the derivatives, we get:<\/p>\n<p>\\[<br \/>\n\\tan(\\varphi)=\\left|\\frac{f&#8217;_2(x_0)-f&#8217;_1(x_0)}{1+f&#8217;_1(x_0)\\cdot f&#8217;_2(x_0)}\\right|.<br \/>\n\\]<\/p>\n<p>This formula shows that the angle between curves depends on the slopes of their tangent lines at the point of intersection. In other words, the main role is played not by the function values themselves, but by the derivative values \\( f&#8217;_1(x_0) \\) and \\( f&#8217;_2(x_0) \\).<\/p>\n<p>If<\/p>\n<p>\\[<br \/>\n1+f&#8217;_1(x_0)\\cdot f&#8217;_2(x_0)=0,<br \/>\n\\]<\/p>\n<p>then the tangent lines are perpendicular to each other. In this case, the angle between the curves is \\( 90^\\circ \\).<\/p>\n<p>So, the tangent line, the normal line, and the angle between curves give us a convenient way to describe the local geometry of graphs through the derivative.<\/p>\n<h2>Practical Part: Equation of a Tangent Line, Normal Line, and Angle Between Curves<\/h2>\n<p>Now let\u2019s move on to practice. Here it is important not just to memorize the formulas, but to see how they work in actual problems. First, we will find the tangent line and the normal line at a given point, then we will look at tangent lines that pass through an external point, and after that we will calculate the angle between two curves.<\/p>\n<h3 class=\"example\">Example 1. Write the equation of a tangent line and the equation of a normal line to the curve \\( y=5\\cdot x^3+3\\cdot x \\) at the point \\( M_0(1,8) \\)<\/h3>\n<p>According to the condition of the problem, \\( x_0=1 \\). First, let\u2019s check the value of the function at this point:<\/p>\n<p>\\[<br \/>\nf(x_0)=f(1)=5\\cdot 1^3+3\\cdot 1=8.<br \/>\n\\]<\/p>\n<p>So, the point \\( M_0(1,8) \\) really belongs to the given curve.<\/p>\n<p>Now let\u2019s find the derivative at the point \\( x_0=1 \\). For clarity, we will do this using the <a title=\"Derivative of a function\" href=\"https:\/\/www.mathros.net.ua\/en\/derivative-of-a-function.html\">definition of the derivative<\/a>:<\/p>\n<p>\\[<br \/>\nf'(1)=\\lim_{h\\to 0}\\frac{f(1+h)-f(1)}{h}.<br \/>\n\\]<\/p>\n<p>Substitute the given function:<\/p>\n<p>\\[<br \/>\nf'(1)=\\lim_{h\\to 0}<br \/>\n\\frac{5\\cdot(1+h)^3+3\\cdot(1+h)-8}{h}.<br \/>\n\\]<\/p>\n<p>Expand the brackets and simplify the expression:<\/p>\n<p>\\[<br \/>\nf'(1)=\\lim_{h\\to 0}<br \/>\n\\frac{18\\cdot h+15\\cdot h^2+5\\cdot h^3}{h}.<br \/>\n\\]<\/p>\n<p>Cancel \\( h \\):<\/p>\n<p>\\[<br \/>\nf'(1)=\\lim_{h\\to 0}(18+15\\cdot h+5\\cdot h^2)=18.<br \/>\n\\]<\/p>\n<p>So, the slope of the tangent line is \\( k=f'(1)=18 \\).<\/p>\n<p>Now write the equation of a tangent line:<\/p>\n<p>\\[<br \/>\ny-f(x_0)=f'(x_0)\\cdot(x-x_0).<br \/>\n\\]<\/p>\n<p>After substituting \\( x_0=1 \\), \\( f(x_0)=8 \\), \\( f'(x_0)=18 \\), we get:<\/p>\n<p>\\[<br \/>\ny-8=18\\cdot(x-1).<br \/>\n\\]<\/p>\n<p>Or, after simplification:<\/p>\n<p>\\[<br \/>\ny=18\\cdot x-10.<br \/>\n\\]<\/p>\n<p>Now let\u2019s write the equation of the normal line. Since \\( f'(1)=18\\neq 0 \\), we can use the formula:<\/p>\n<p>\\[<br \/>\ny-f(x_0)=-\\frac{1}{f'(x_0)}\\cdot(x-x_0).<br \/>\n\\]<\/p>\n<p>Substitute the values we found:<\/p>\n<p>\\[<br \/>\ny-8=-\\frac{1}{18}\\cdot(x-1).<br \/>\n\\]<\/p>\n<p>Or, after simplification:<\/p>\n<p>\\[<br \/>\ny=-\\frac{1}{18}\\cdot x+\\frac{145}{18}.<br \/>\n\\]<\/p>\n<p>So, the tangent line has the equation \\( y-8=18\\cdot(x-1) \\), and the normal line has the equation \\( y-8=-\\frac{1}{18}\\cdot(x-1) \\).<\/p>\n<h3 class=\"example\">Example 2. Write the equations of all tangent lines to the graph of the function \\( y=-3\\cdot x^2+5 \\) that pass through the point \\( M(-1,5) \\)<\/h3>\n<p>Here the point \\( M(-1,5) \\) is not given as the point of tangency. It only has to lie on the tangent line we are looking for. So, we will denote the point of tangency separately.<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-4057 aligncenter\" src=\"https:\/\/www.mathros.net.ua\/en\/wp-content\/uploads\/2026\/07\/equation-of-a-tangent-line-and-equation-of-a-normal-line-to-a-curve3.jpg\" alt=\"Graph of the function \\( y=-3\\cdot x^2+5 \\) and the tangent lines that pass through the point \\( M(-1,5) \\)\" width=\"600\" height=\"350\" srcset=\"https:\/\/www.mathros.net.ua\/en\/wp-content\/uploads\/2026\/07\/equation-of-a-tangent-line-and-equation-of-a-normal-line-to-a-curve3.jpg 600w, https:\/\/www.mathros.net.ua\/en\/wp-content\/uploads\/2026\/07\/equation-of-a-tangent-line-and-equation-of-a-normal-line-to-a-curve3-300x175.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Let \\( x_0 \\) be the x-coordinate of the point of tangency to the graph of the function<\/p>\n<p>\\[<br \/>\ny=-3\\cdot x^2+5.<br \/>\n\\]<\/p>\n<p>Then the value of the function at the point of tangency is:<\/p>\n<p>\\[<br \/>\nf(x_0)=-3\\cdot x_0^2+5.<br \/>\n\\]<\/p>\n<p>Find the derivative of the given function:<\/p>\n<p>\\[<br \/>\nf'(x)=-6\\cdot x.<br \/>\n\\]<\/p>\n<p>Therefore, at the point of tangency, we have:<\/p>\n<p>\\[<br \/>\nf'(x_0)=-6\\cdot x_0.<br \/>\n\\]<\/p>\n<p>Write the equation of a tangent line to the graph of the function at the point with x-coordinate \\( x_0 \\):<\/p>\n<p>\\[<br \/>\ny-f(x_0)=f'(x_0)\\cdot(x-x_0).<br \/>\n\\]<\/p>\n<p>Substitute the expressions we found:<\/p>\n<p>\\[<br \/>\ny-(-3\\cdot x_0^2+5)=-6\\cdot x_0\\cdot(x-x_0).<br \/>\n\\]<\/p>\n<p>From this:<\/p>\n<p>\\[<br \/>\ny+3\\cdot x_0^2-5=-6\\cdot x_0\\cdot(x-x_0).<br \/>\n\\]<\/p>\n<p>Expand the brackets:<\/p>\n<p>\\[<br \/>\ny+3\\cdot x_0^2-5=-6\\cdot x\\cdot x_0+6\\cdot x_0^2.<br \/>\n\\]<\/p>\n<p>Now express \\( y \\):<\/p>\n<p>\\[<br \/>\ny=3\\cdot x_0^2-6\\cdot x\\cdot x_0+5.<br \/>\n\\]<\/p>\n<p>This is the equation of the tangent line, but it still contains the unknown parameter \\( x_0 \\). How do we find it? We use the condition that the tangent line passes through the point \\( M(-1,5) \\). So, the coordinates of this point must satisfy the equation of the tangent line.<\/p>\n<p>Substitute \\( x=-1 \\), \\( y=5 \\):<\/p>\n<p>\\[<br \/>\n5=3\\cdot x_0^2-6\\cdot(-1)\\cdot x_0+5.<br \/>\n\\]<\/p>\n<p>So,<\/p>\n<p>\\[<br \/>\n5=3\\cdot x_0^2+6\\cdot x_0+5.<br \/>\n\\]<\/p>\n<p>Move everything to one side:<\/p>\n<p>\\[<br \/>\n3\\cdot x_0^2+6\\cdot x_0=0.<br \/>\n\\]<\/p>\n<p>Factor out the common factor:<\/p>\n<p>\\[<br \/>\n3\\cdot x_0\\cdot(x_0+2)=0.<br \/>\n\\]<\/p>\n<p>From this, we get two values: \\( x_0=0 \\) or \\( x_0=-2 \\). So, there are two tangent lines.<\/p>\n<p>If \\( x_0=0 \\), then<\/p>\n<p>\\[<br \/>\ny=3\\cdot 0^2-6\\cdot x\\cdot 0+5=5.<br \/>\n\\]<\/p>\n<p>Therefore, the first tangent line has the equation:<\/p>\n<p>\\[<br \/>\ny=5.<br \/>\n\\]<\/p>\n<p>If \\( x_0=-2 \\), then<\/p>\n<p>\\[<br \/>\ny=3\\cdot(-2)^2-6\\cdot x\\cdot(-2)+5.<br \/>\n\\]<\/p>\n<p>From this:<\/p>\n<p>\\[<br \/>\ny=12+12\\cdot x+5.<br \/>\n\\]<\/p>\n<p>So,<\/p>\n<p>\\[<br \/>\ny=12\\cdot x+17.<br \/>\n\\]<\/p>\n<p>Thus, the required equations of the tangent lines are \\( y=5 \\) and \\( y=12\\cdot x+17 \\).<\/p>\n<h3 class=\"example\">Example 3. Find at what angles the curves ( y=f_1(x)=x^2 ) and ( y=f_2(x)=x^3 ) intersect<\/h3>\n<p>First, let\u2019s find the points of intersection of the given curves. To do this, equate the right-hand sides of the equations:<\/p>\n<p>\\[<br \/>\nx^2=x^3.<br \/>\n\\]<\/p>\n<p>Move everything to one side:<\/p>\n<p>\\[<br \/>\nx^3-x^2=0.<br \/>\n\\]<\/p>\n<p>Factor out the common factor:<\/p>\n<p>\\[<br \/>\nx^2\\cdot(x-1)=0.<br \/>\n\\]<\/p>\n<p>From this, \\( x=0 \\) or \\( x=1 \\). So, we have two points of intersection: \\( O(0,0) \\) and \\( M(1,1) \\).<\/p>\n<p>Now find the derivatives of both functions:<\/p>\n<p>\\[<br \/>\nf&#8217;_1(x)=2\\cdot x, \\qquad f&#8217;_2(x)=3\\cdot x^2.<br \/>\n\\]<\/p>\n<p>First, consider the point \\( O(0,0) \\). At this point:<\/p>\n<p>\\[<br \/>\nf&#8217;_1(0)=2\\cdot 0=0, \\qquad f&#8217;_2(0)=3\\cdot 0^2=0.<br \/>\n\\]<\/p>\n<p>So, the tangent lines to both curves at the point \\( O(0,0) \\) have the same slope. Both tangent lines coincide with the x-axis. Therefore, the angle between the curves at this point is \\( 0^\\circ \\).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4059 aligncenter\" src=\"https:\/\/www.mathros.net.ua\/en\/wp-content\/uploads\/2026\/07\/equation-of-a-tangent-line-and-equation-of-a-normal-line-to-a-curve4.jpg\" alt=\"Graphs of the functions \\( y=x^2 \\) and \\( y=x^3 \\), with tangent lines drawn at the point \\( M(1,1) \\)\" width=\"600\" height=\"350\" srcset=\"https:\/\/www.mathros.net.ua\/en\/wp-content\/uploads\/2026\/07\/equation-of-a-tangent-line-and-equation-of-a-normal-line-to-a-curve4.jpg 600w, https:\/\/www.mathros.net.ua\/en\/wp-content\/uploads\/2026\/07\/equation-of-a-tangent-line-and-equation-of-a-normal-line-to-a-curve4-300x175.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Now consider the point \\( M(1,1) \\). At this point, the slopes of the tangent lines are:<\/p>\n<p>\\[<br \/>\nk_1=f&#8217;_1(1)=2\\cdot 1=2, \\qquad k_2=f&#8217;_2(1)=3\\cdot 1^2=3.<br \/>\n\\]<\/p>\n<p>We define the angle between the curves as the angle between their tangent lines. Use the formula:<\/p>\n<p>\\[<br \/>\n\\tan(\\varphi)=\\left|\\frac{k_2-k_1}{1+k_1\\cdot k_2}\\right|.<br \/>\n\\]<\/p>\n<p>Substitute \\( k_1=2 \\), \\( k_2=3 \\):<\/p>\n<p>\\[<br \/>\n\\tan(\\varphi)=\\left|\\frac{3-2}{1+2\\cdot 3}\\right|.<br \/>\n\\]<\/p>\n<p>We get:<\/p>\n<p>\\[<br \/>\n\\tan(\\varphi)=\\frac{1}{7}.<br \/>\n\\]<\/p>\n<p>Therefore,<\/p>\n<p>\\[<br \/>\n\\varphi=\\arctan\\left(\\frac{1}{7}\\right).<br \/>\n\\]<\/p>\n<p>If we write the angle approximately in degrees, we get \\( \\varphi\\approx 8.13^\\circ \\).<\/p>\n<p>So, the curves \\( y=x^2 \\) and \\( y=x^3 \\) intersect at the point \\( O(0,0) \\) at an angle of \\( 0^\\circ \\), and at the point \\( M(1,1) \\) at an angle of \\( 8.13^\\circ \\).<\/p>\n<h2>What to Study Next: Topics for Further Learning<\/h2>\n<p>Next, it is worth moving on to topics that help you work with derivatives faster and more confidently. They are needed in almost every <a title=\"What is calculus\" href=\"https:\/\/en.wikipedia.org\/wiki\/Calculus\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">calculus<\/a> problem. So these articles are a good continuation of this topic.<\/p>\n<ol>\n<li><a title=\"Differentiation rules and table of derivatives\" href=\"https:\/\/www.mathros.net.ua\/en\/differentiation-rules-and-table-of-derivatives.html\">Differentiation Rules and Table of Derivatives: Calculations Without Limits<\/a> \u2014 This article will discuss the main rules for finding derivatives and a convenient table that helps calculate derivatives of functions quickly.<\/li>\n<li><a title=\"Derivative of a composite function\" href=\"https:\/\/www.mathros.net.ua\/en\/chain-rule-for-derivatives.html\">Derivative of a Composite Function: Using the Chain Rule<\/a> \u2014 This article will explain how to find the derivative of a function that contains another function inside it, and when to use the chain rule.<\/li>\n<li><a title=\"Derivative of an implicit function\" href=\"https:\/\/www.mathros.net.ua\/en\/implicit-differentiation.html\">Derivative of an Implicit Function: Differentiating Equations<\/a> \u2014 This article will look at how to find a derivative when a function is not given explicitly, but through an equation with two variables.<\/li>\n<\/ol>\n<h2>Equation of a Tangent Line in Code: From Formula to Program<\/h2>\n<p>If you are interested in programming, this topic can easily be turned into a small computational project. The flowchart below shows an algorithm that checks the point of intersection for two curves, finds the slopes of the tangent lines, and calculates the angle between the curves in degrees.<\/p>\n<p>Try to implement this algorithm in <em>Pascal<\/em>, <a title=\"What is Python\" href=\"https:\/\/www.mathros.net.ua\/en\/what-is-python.html\"><em>Python<\/em><\/a>, <em>C++<\/em>, <em>JavaScript<\/em>, or any other language you feel comfortable working with. This way, you will not just repeat the formulas. You will see how the equation of a tangent line helps build a real computational tool.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4068 aligncenter\" src=\"https:\/\/www.mathros.net.ua\/en\/wp-content\/uploads\/2026\/07\/equation-of-a-tangent-line-and-equation-of-a-normal-line-to-a-curve5.jpg\" alt=\"Flowchart of an algorithm that uses the equation of a tangent line to find the angle between two curves at their point of intersection\" width=\"660\" height=\"452\" srcset=\"https:\/\/www.mathros.net.ua\/en\/wp-content\/uploads\/2026\/07\/equation-of-a-tangent-line-and-equation-of-a-normal-line-to-a-curve5.jpg 660w, https:\/\/www.mathros.net.ua\/en\/wp-content\/uploads\/2026\/07\/equation-of-a-tangent-line-and-equation-of-a-normal-line-to-a-curve5-300x205.jpg 300w\" sizes=\"(max-width: 660px) 100vw, 660px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The equation of a tangent line and the equation of a normal line to a curve help us understand how<\/p>\n","protected":false},"author":1,"featured_media":4070,"comment_status":"open","ping_status":"closed","sticky":false,"template":"template-centered.php","format":"standard","meta":{"footnotes":""},"categories":[358],"tags":[539,363,555,559,558],"class_list":["post-4047","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-derivative-and-differential","tag-calculus","tag-derivative-examples","tag-derivative-of-a-function","tag-normal-line-equation","tag-tangent-line-equation"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/posts\/4047","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/comments?post=4047"}],"version-history":[{"count":17,"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/posts\/4047\/revisions"}],"predecessor-version":[{"id":4049,"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/posts\/4047\/revisions\/4049"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/media\/4070"}],"wp:attachment":[{"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/media?parent=4047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/categories?post=4047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/tags?post=4047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}