{"id":810,"date":"2025-06-20T17:15:08","date_gmt":"2025-06-20T17:15:08","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/calculus2\/?post_type=chapter&#038;p=810"},"modified":"2025-07-22T15:05:32","modified_gmt":"2025-07-22T15:05:32","slug":"direction-fields-and-eulers-method-learn-it-2","status":"publish","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/calculus2\/chapter\/direction-fields-and-eulers-method-learn-it-2\/","title":{"raw":"Direction Fields and Euler's Method: Learn It 2","rendered":"Direction Fields and Euler&#8217;s Method: Learn It 2"},"content":{"raw":"<h2 data-type=\"title\">Using Direction Fields<\/h2>\r\n<p class=\"whitespace-normal break-words\">You can use a direction field to predict the behavior of solutions to a differential equation without knowing the actual solution. For example, the direction field in Figure 2 serves as a guide to the behavior of solutions to the differential equation [latex]y^{\\prime} = 3x + 2y - 4[\/latex].<\/p>\r\n<p class=\"whitespace-normal break-words\">Before developing this method, let's revisit an important concept - linear approximation.<\/p>\r\n\r\n<section class=\"textbox recall\" aria-label=\"Recall\">\r\n<p class=\"whitespace-normal break-words\">The <strong>linear approximation<\/strong> of a function at a given point, also known as the <strong>linearization<\/strong>, is equivalent to the equation of the tangent line to the graph of the function at that point.<\/p>\r\n<p class=\"whitespace-normal break-words\">Since the slope of a function [latex]f(x)[\/latex] at [latex](x_0, y_0)[\/latex] is given by [latex]f'(x_0)[\/latex], the linear approximation of a function [latex]f(x)[\/latex] at point [latex](x_0, y_0)[\/latex] is:<\/p>\r\n<p class=\"whitespace-normal break-words\" style=\"text-align: center;\">[latex]L(x) = y_0 + f'(x_0)(x - x_0)[\/latex]<\/p>\r\n<p class=\"whitespace-normal break-words\">For values near the point [latex](x_0, y_0)[\/latex], we have [latex]L(x) \\approx f(x)[\/latex]. In other words, [latex]L(x)[\/latex] can predict function values near [latex](x_0, y_0)[\/latex].<\/p>\r\n<p class=\"whitespace-normal break-words\">The actual change in function output, [latex]\\Delta y[\/latex], can be approximated using the slope at [latex](x_0, y_0)[\/latex]:<\/p>\r\n<p class=\"whitespace-pre-wrap break-words\" style=\"text-align: center;\">[latex]\\Delta y \\approx f'(x_0) \\Delta x[\/latex]<\/p>\r\n\r\n<\/section>To use a direction field, start by choosing any point in the field. The line segment at that point serves as a signpost telling you what direction to go from there.\r\n\r\nLet's continue with our equation [latex]y^{\\prime} = 3x + 2y - 4[\/latex]. Suppose a solution to this differential equation passes through point [latex](0, 1)[\/latex]. The slope of the solution at that point is:\r\n<p class=\"whitespace-normal break-words\" style=\"text-align: center;\">[latex]y^{\\prime} = 3(0) + 2(1) - 4 = -2[\/latex]<\/p>\r\n<p class=\"whitespace-normal break-words\">Now let [latex]x[\/latex] increase slightly to [latex]x = 0.1[\/latex]. Using linear approximation:<\/p>\r\n<p class=\"whitespace-normal break-words\" style=\"text-align: center;\">[latex]L(x) = y_0 + f'(x_0)(x - x_0) = 1 + (-2)(x - 0) = 1 - 2x[\/latex]<\/p>\r\n<p class=\"whitespace-pre-wrap break-words\">Substituting [latex]x = 0.1[\/latex] gives an approximate [latex]y[\/latex] value of [latex]0.8[\/latex].<\/p>\r\n<p class=\"whitespace-normal break-words\">At this new point, the slope changes according to the differential equation. You can keep progressing, recalculating the slope as you take small steps to the right, and watch how the solution behaves. Figure 3 shows the solution passing through point [latex](0, 1)[\/latex].<\/p>\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"459\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/4175\/2019\/04\/11233932\/CNX_Calc_Figure_08_02_002.jpg\" alt=\"A graph of the direction field for the differential equation y\u2019 = 3 x + 2 y \u2013 4 in all four quadrants. In quadrants two and three, the arrows point down and slightly to the right. On a diagonal line, roughly y = -x + 2, the arrows point further and further to the right, curve, and then point up above that line. The solution passing through the point (0, 1) is shown. It curves down through (-5, 10), (0, 2), (1, 0), and (3, -10).\" width=\"459\" height=\"464\" data-media-type=\"image\/jpeg\" \/> Figure 3. Direction field for the differential equation [latex]y^{\\prime} =3x+2y - 4[\/latex] with the solution passing through the point [latex]\\left(0,1\\right)[\/latex].[\/caption]\r\n<p class=\"whitespace-normal break-words\">This curve is the graph of the solution to the <strong>initial-value problem<\/strong>:<\/p>\r\n<p class=\"whitespace-normal break-words\" style=\"text-align: center;\">[latex]y^{\\prime} = 3x + 2y - 4, \\quad y(0) = 1[\/latex]<\/p>\r\n<p class=\"whitespace-normal break-words\">This curve is called a <strong>solution curve<\/strong> passing through the point [latex](0, 1)[\/latex]. The exact solution to this initial-value problem is:<\/p>\r\n<p class=\"whitespace-normal break-words\" style=\"text-align: center;\">[latex]y = -\\frac{3}{2}x + \\frac{5}{4} - \\frac{1}{4}e^{2x}[\/latex]<\/p>\r\n<p class=\"whitespace-normal break-words\">The graph of this exact solution is identical to the curve in Figure 3.<\/p>\r\n\r\n<section class=\"textbox example\" aria-label=\"Example\">\r\n<div id=\"fs-id1170571119933\" data-type=\"problem\">\r\n<p id=\"fs-id1170573295181\">Create a direction field for the differential equation [latex]y^{\\prime} ={x}^{2}-{y}^{2}[\/latex] and sketch a solution curve passing through the point [latex]\\left(-1,2\\right)[\/latex].<\/p>\r\n\r\n<\/div>\r\n[reveal-answer q=\"44558898\"]Hint[\/reveal-answer]\r\n[hidden-answer a=\"44558898\"]\r\n<div id=\"fs-id1170573593135\" data-type=\"commentary\" data-element-type=\"hint\">\r\n<p id=\"fs-id1170573262665\">Use [latex]x[\/latex] and [latex]y[\/latex] values ranging from [latex]-5[\/latex] to [latex]5[\/latex]. For each coordinate pair, calculate [latex]y^{\\prime} [\/latex] using the right-hand side of the differential equation.<\/p>\r\n\r\n<\/div>\r\n[\/hidden-answer]\r\n\r\n[reveal-answer q=\"44558899\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"44558899\"]\r\n<div id=\"fs-id1170573299269\" data-type=\"solution\">\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"459\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/4175\/2019\/04\/11233936\/CNX_Calc_Figure_08_02_003.jpg\" alt=\"A graph of the direction field for the differential equation y\u2019 = x ^ 2 \u2013 y ^ 2. Along y = x and y = -x, the lines are horizontal. On either side of y = x and y = -x, the lines slant and direct solutions along those two functions. The rest of the lines are vertical. The solution going through (-1, 2) is shown. It curves down from about (-2.75, 10), through (-1, 2) and about (0, 1.5), and then up along the diagonal to (10, 10).\" width=\"459\" height=\"464\" data-media-type=\"image\/jpeg\" \/> Figure 4.[\/caption]\r\n\r\n<\/div>\r\n[\/hidden-answer]\r\n\r\n<\/section><section class=\"textbox watchIt\" aria-label=\"Watch It\">[caption]Watch the following videos to see the worked solution to the above example.<center><iframe src=\"\/\/plugin.3playmedia.com\/show?mf=6722736&amp;p3sdk_version=1.10.1&amp;p=20361&amp;pt=375&amp;video_id=NmwwRLHZtkw&amp;video_target=tpm-plugin-zrpsnm0j-NmwwRLHZtkw\" width=\"800px\" height=\"450px\" frameborder=\"0\" marginwidth=\"0px\" marginheight=\"0px\" data-mce-fragment=\"1\"><\/iframe><\/center>You can view the <a href=\"https:\/\/oerfiles.s3.us-west-2.amazonaws.com\/Calculus+II\/Transcripts\/4.2.1_transcript.html\" target=\"_blank\" rel=\"noopener\">transcript for \"4.2.1\" here (opens in new window)<\/a>.<center><iframe src=\"\/\/plugin.3playmedia.com\/show?mf=6722737&amp;p3sdk_version=1.10.1&amp;p=20361&amp;pt=375&amp;video_id=8HNOR0-GDe8&amp;video_target=tpm-plugin-0tskvtbs-8HNOR0-GDe8\" width=\"800px\" height=\"450px\" frameborder=\"0\" marginwidth=\"0px\" marginheight=\"0px\" data-mce-fragment=\"1\"><\/iframe><\/center>You can view the <a href=\"https:\/\/oerfiles.s3.us-west-2.amazonaws.com\/Calculus+II\/Transcripts\/4.2.2_transcript.html\" target=\"_blank\" rel=\"noopener\">transcript for \"4.2.2\" here (opens in new window)<\/a>.\r\n\r\n<\/section>","rendered":"<h2 data-type=\"title\">Using Direction Fields<\/h2>\n<p class=\"whitespace-normal break-words\">You can use a direction field to predict the behavior of solutions to a differential equation without knowing the actual solution. For example, the direction field in Figure 2 serves as a guide to the behavior of solutions to the differential equation [latex]y^{\\prime} = 3x + 2y - 4[\/latex].<\/p>\n<p class=\"whitespace-normal break-words\">Before developing this method, let&#8217;s revisit an important concept &#8211; linear approximation.<\/p>\n<section class=\"textbox recall\" aria-label=\"Recall\">\n<p class=\"whitespace-normal break-words\">The <strong>linear approximation<\/strong> of a function at a given point, also known as the <strong>linearization<\/strong>, is equivalent to the equation of the tangent line to the graph of the function at that point.<\/p>\n<p class=\"whitespace-normal break-words\">Since the slope of a function [latex]f(x)[\/latex] at [latex](x_0, y_0)[\/latex] is given by [latex]f'(x_0)[\/latex], the linear approximation of a function [latex]f(x)[\/latex] at point [latex](x_0, y_0)[\/latex] is:<\/p>\n<p class=\"whitespace-normal break-words\" style=\"text-align: center;\">[latex]L(x) = y_0 + f'(x_0)(x - x_0)[\/latex]<\/p>\n<p class=\"whitespace-normal break-words\">For values near the point [latex](x_0, y_0)[\/latex], we have [latex]L(x) \\approx f(x)[\/latex]. In other words, [latex]L(x)[\/latex] can predict function values near [latex](x_0, y_0)[\/latex].<\/p>\n<p class=\"whitespace-normal break-words\">The actual change in function output, [latex]\\Delta y[\/latex], can be approximated using the slope at [latex](x_0, y_0)[\/latex]:<\/p>\n<p class=\"whitespace-pre-wrap break-words\" style=\"text-align: center;\">[latex]\\Delta y \\approx f'(x_0) \\Delta x[\/latex]<\/p>\n<\/section>\n<p>To use a direction field, start by choosing any point in the field. The line segment at that point serves as a signpost telling you what direction to go from there.<\/p>\n<p>Let&#8217;s continue with our equation [latex]y^{\\prime} = 3x + 2y - 4[\/latex]. Suppose a solution to this differential equation passes through point [latex](0, 1)[\/latex]. The slope of the solution at that point is:<\/p>\n<p class=\"whitespace-normal break-words\" style=\"text-align: center;\">[latex]y^{\\prime} = 3(0) + 2(1) - 4 = -2[\/latex]<\/p>\n<p class=\"whitespace-normal break-words\">Now let [latex]x[\/latex] increase slightly to [latex]x = 0.1[\/latex]. Using linear approximation:<\/p>\n<p class=\"whitespace-normal break-words\" style=\"text-align: center;\">[latex]L(x) = y_0 + f'(x_0)(x - x_0) = 1 + (-2)(x - 0) = 1 - 2x[\/latex]<\/p>\n<p class=\"whitespace-pre-wrap break-words\">Substituting [latex]x = 0.1[\/latex] gives an approximate [latex]y[\/latex] value of [latex]0.8[\/latex].<\/p>\n<p class=\"whitespace-normal break-words\">At this new point, the slope changes according to the differential equation. You can keep progressing, recalculating the slope as you take small steps to the right, and watch how the solution behaves. Figure 3 shows the solution passing through point [latex](0, 1)[\/latex].<\/p>\n<figure style=\"width: 459px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/4175\/2019\/04\/11233932\/CNX_Calc_Figure_08_02_002.jpg\" alt=\"A graph of the direction field for the differential equation y\u2019 = 3 x + 2 y \u2013 4 in all four quadrants. In quadrants two and three, the arrows point down and slightly to the right. On a diagonal line, roughly y = -x + 2, the arrows point further and further to the right, curve, and then point up above that line. The solution passing through the point (0, 1) is shown. It curves down through (-5, 10), (0, 2), (1, 0), and (3, -10).\" width=\"459\" height=\"464\" data-media-type=\"image\/jpeg\" \/><figcaption class=\"wp-caption-text\">Figure 3. Direction field for the differential equation [latex]y^{\\prime} =3x+2y - 4[\/latex] with the solution passing through the point [latex]\\left(0,1\\right)[\/latex].<\/figcaption><\/figure>\n<p class=\"whitespace-normal break-words\">This curve is the graph of the solution to the <strong>initial-value problem<\/strong>:<\/p>\n<p class=\"whitespace-normal break-words\" style=\"text-align: center;\">[latex]y^{\\prime} = 3x + 2y - 4, \\quad y(0) = 1[\/latex]<\/p>\n<p class=\"whitespace-normal break-words\">This curve is called a <strong>solution curve<\/strong> passing through the point [latex](0, 1)[\/latex]. The exact solution to this initial-value problem is:<\/p>\n<p class=\"whitespace-normal break-words\" style=\"text-align: center;\">[latex]y = -\\frac{3}{2}x + \\frac{5}{4} - \\frac{1}{4}e^{2x}[\/latex]<\/p>\n<p class=\"whitespace-normal break-words\">The graph of this exact solution is identical to the curve in Figure 3.<\/p>\n<section class=\"textbox example\" aria-label=\"Example\">\n<div id=\"fs-id1170571119933\" data-type=\"problem\">\n<p id=\"fs-id1170573295181\">Create a direction field for the differential equation [latex]y^{\\prime} ={x}^{2}-{y}^{2}[\/latex] and sketch a solution curve passing through the point [latex]\\left(-1,2\\right)[\/latex].<\/p>\n<\/div>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q44558898\">Hint<\/button><\/p>\n<div id=\"q44558898\" class=\"hidden-answer\" style=\"display: none\">\n<div id=\"fs-id1170573593135\" data-type=\"commentary\" data-element-type=\"hint\">\n<p id=\"fs-id1170573262665\">Use [latex]x[\/latex] and [latex]y[\/latex] values ranging from [latex]-5[\/latex] to [latex]5[\/latex]. For each coordinate pair, calculate [latex]y^{\\prime}[\/latex] using the right-hand side of the differential equation.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q44558899\">Show Solution<\/button><\/p>\n<div id=\"q44558899\" class=\"hidden-answer\" style=\"display: none\">\n<div id=\"fs-id1170573299269\" data-type=\"solution\">\n<figure style=\"width: 459px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/4175\/2019\/04\/11233936\/CNX_Calc_Figure_08_02_003.jpg\" alt=\"A graph of the direction field for the differential equation y\u2019 = x ^ 2 \u2013 y ^ 2. Along y = x and y = -x, the lines are horizontal. On either side of y = x and y = -x, the lines slant and direct solutions along those two functions. The rest of the lines are vertical. The solution going through (-1, 2) is shown. It curves down from about (-2.75, 10), through (-1, 2) and about (0, 1.5), and then up along the diagonal to (10, 10).\" width=\"459\" height=\"464\" data-media-type=\"image\/jpeg\" \/><figcaption class=\"wp-caption-text\">Figure 4.<\/figcaption><\/figure>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n<section class=\"textbox watchIt\" aria-label=\"Watch It\">Watch the following videos to see the worked solution to the above example.<\/p>\n<div style=\"text-align: center;\"><iframe loading=\"lazy\" src=\"\/\/plugin.3playmedia.com\/show?mf=6722736&amp;p3sdk_version=1.10.1&amp;p=20361&amp;pt=375&amp;video_id=NmwwRLHZtkw&amp;video_target=tpm-plugin-zrpsnm0j-NmwwRLHZtkw\" width=\"800px\" height=\"450px\" frameborder=\"0\" marginwidth=\"0px\" marginheight=\"0px\" data-mce-fragment=\"1\"><\/iframe><\/div>\n<p>You can view the <a href=\"https:\/\/oerfiles.s3.us-west-2.amazonaws.com\/Calculus+II\/Transcripts\/4.2.1_transcript.html\" target=\"_blank\" rel=\"noopener\">transcript for &#8220;4.2.1&#8221; here (opens in new window)<\/a>.<\/p>\n<div style=\"text-align: center;\"><iframe loading=\"lazy\" src=\"\/\/plugin.3playmedia.com\/show?mf=6722737&amp;p3sdk_version=1.10.1&amp;p=20361&amp;pt=375&amp;video_id=8HNOR0-GDe8&amp;video_target=tpm-plugin-0tskvtbs-8HNOR0-GDe8\" width=\"800px\" height=\"450px\" frameborder=\"0\" marginwidth=\"0px\" marginheight=\"0px\" data-mce-fragment=\"1\"><\/iframe><\/div>\n<p>You can view the <a href=\"https:\/\/oerfiles.s3.us-west-2.amazonaws.com\/Calculus+II\/Transcripts\/4.2.2_transcript.html\" target=\"_blank\" rel=\"noopener\">transcript for &#8220;4.2.2&#8221; here (opens in new window)<\/a>.<\/p>\n<\/section>\n","protected":false},"author":15,"menu_order":13,"template":"","meta":{"_candela_citation":"[]","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"part":669,"module-header":"- Select Header -","content_attributions":[],"internal_book_links":[],"video_content":null,"cc_video_embed_content":{"cc_scripts":"","media_targets":[]},"try_it_collection":null,"_links":{"self":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/pressbooks\/v2\/chapters\/810"}],"collection":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/wp\/v2\/users\/15"}],"version-history":[{"count":5,"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/pressbooks\/v2\/chapters\/810\/revisions"}],"predecessor-version":[{"id":1400,"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/pressbooks\/v2\/chapters\/810\/revisions\/1400"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/pressbooks\/v2\/parts\/669"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/pressbooks\/v2\/chapters\/810\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/wp\/v2\/media?parent=810"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/pressbooks\/v2\/chapter-type?post=810"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/wp\/v2\/contributor?post=810"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/wp\/v2\/license?post=810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}