<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="HTMLFiles/pmathml.xsl"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
        "HTMLFiles/xhtml-math11-f.dtd">

<!-- Created by Wolfram Mathematica 5.1 -->

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 <title>
  ketju.xml
 </title>
 <link href="../navi/css/sovell.css" rel="stylesheet" type="text/css"/>
 <link href="HTMLFiles/Default.css" rel="stylesheet" type="text/css" />
</head>

<body>

<p><a href="../mma/ketju.nb">ketju.nb</a></p>

<p class="Title">
 Roikkuva ketju
</p>



<p class="Text">
 Tarkastellaan kitkattoman, taipuisan ketjun potentiaalienergiaa. Jos ketju riippuu molemmista p&auml;ist&auml; kiinnitettyn&auml;, se hakee muodon, joka antaa potentiaalienergialle minimiarvon.&nbsp;&nbsp;Variaatiolaskennan avulla voidaan osoittaa, ett&auml; kun ketjun potentiaalienergialla on minimi, niin ketjun muoto <span>y = y(x)</span> noudattaa differentiaaliyht&auml;l&ouml;&auml;
</p>



<p class="DisplayFormula">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mfrac>
   <mrow>
    <msup>
     <mi>d</mi>
     <mn>2</mn>
    </msup>
    <mo>&InvisibleTimes;</mo>
    <mi>y</mi>
   </mrow>
   <mrow>
    <mi>d</mi>
    <mo>&InvisibleTimes;</mo>
    <msup>
     <mi>x</mi>
     <mn>2</mn>
    </msup>
   </mrow>
  </mfrac>
  <mo>=</mo>
  <mrow>
   <mi>k</mi>
   <mo>&InvisibleTimes;</mo>
   <mrow>
    <msqrt>
     <mrow>
      <mn>1</mn>
      <mo>+</mo>
      <msup>
       <mrow>
        <mo>(</mo>
        <mfrac>
         <mrow>
          <mi>d</mi>
          <mo>&InvisibleTimes;</mo>
          <mi>y</mi>
         </mrow>
         <mrow>
          <mi>d</mi>
          <mo>&InvisibleTimes;</mo>
          <mi>x</mi>
         </mrow>
        </mfrac>
        <mo>)</mo>
       </mrow>
       <mn>2</mn>
      </msup>
     </mrow>
    </msqrt>
    <mo>.</mo>
   </mrow>
  </mrow>
 </mrow>
</math>
</p>

<p class="Text">
 T&auml;ss&auml; <span class="DisplayFormulaInline">k</span> on ketjun pituuden ep&auml;suorasti m&auml;&auml;r&auml;&auml;v&auml; tekij&auml;. Tarkastellaan roikkuvan ketjun muotoa eri reunaehdoilla. Poistetaan ensin vanhat muuttujat.
</p>



<p class="Input">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mi>Remove</mi>
  <mo>[</mo>
  <ms>Global`*</ms>
  <mo>]</mo>
 </mrow>
</math>
</p>

<p class="Text">
 Muodostetaan ketjua kuvaava toisen kertaluvun differentiaaliyht&auml;l&ouml;.&nbsp;&nbsp;Valitaan <span class="DisplayFormulaInline">k=1</span>. 
</p>



<p class="CellLabel">
 In[1]:=
</p>



<p class="Input">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mrow>
   <mi>k</mi>
   <mo>=</mo>
   <mn>1</mn>
  </mrow>
  <mo>;</mo>
  <mrow>
   <mi>yht</mi>
   <mo>=</mo>
   <mtext> </mtext>
   <mrow>
    <mrow>
     <mrow>
      <mi>y</mi>
      <mtext>''</mtext>
     </mrow>
     <mo>[</mo>
     <mi>x</mi>
     <mo>]</mo>
    </mrow>
    <mo>==</mo>
    <mrow>
     <mi>k</mi>
     <mo>&InvisibleTimes;</mo>
     <mrow>
      <mi>Sqrt</mi>
      <mo>[</mo>
      <mrow>
       <mn>1</mn>
       <mo>+</mo>
       <mrow>
        <mrow>
         <mrow>
          <mi>y</mi>
          <mo>'</mo>
         </mrow>
         <mo>[</mo>
         <mi>x</mi>
         <mo>]</mo>
        </mrow>
        <mo>^</mo>
        <mn>2</mn>
       </mrow>
      </mrow>
      <mo>]</mo>
     </mrow>
    </mrow>
   </mrow>
  </mrow>
 </mrow>
</math>
</p>

<p class="CellLabel">
 Out[1]=
</p>



<p class="Output">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mrow>
   <msup>
    <mi>y</mi>
    <mi>&prime;&prime;</mi>
   </msup>
   <mo>[</mo>
   <mi>x</mi>
   <mo>]</mo>
  </mrow>
  <mo>&Equal;</mo>
  <msqrt>
   <mrow>
    <mn>1</mn>
    <mo>+</mo>
    <msup>
     <mrow>
      <msup>
       <mi>y</mi>
       <mo>&prime;</mo>
      </msup>
      <mo>[</mo>
      <mi>x</mi>
      <mo>]</mo>
     </mrow>
     <mn>2</mn>
    </msup>
   </mrow>
  </msqrt>
 </mrow>
</math>
</p>

<p class="Text">
 Valitaan reunaehdot symmetrisesti origon molemmin puolin. Ketju olkoon kiinnitetty pisteiss&auml; <span>x = 1</span> ja <span>x = -1</span>.
</p>



<p class="CellLabel">
 In[2]:=
</p>



<p class="Input">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mi>reunaehto1</mi>
  <mo>=</mo>
  <mrow>
   <mo>{</mo>
   <mrow>
    <mrow>
     <mrow>
      <mi>y</mi>
      <mo>[</mo>
      <mrow>
       <mo>-</mo>
       <mn>1</mn>
      </mrow>
      <mo>]</mo>
     </mrow>
     <mo>==</mo>
     <mn>0</mn>
    </mrow>
    <mo>,</mo>
    <mrow>
     <mrow>
      <mi>y</mi>
      <mo>[</mo>
      <mn>1</mn>
      <mo>]</mo>
     </mrow>
     <mo>==</mo>
     <mn>0</mn>
    </mrow>
   </mrow>
   <mo>}</mo>
  </mrow>
 </mrow>
</math>
</p>

<p class="CellLabel">
 Out[2]=
</p>



<p class="Output">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mo>{</mo>
  <mrow>
   <mrow>
    <mrow>
     <mi>y</mi>
     <mo>[</mo>
     <mrow>
      <mo>-</mo>
      <mn>1</mn>
     </mrow>
     <mo>]</mo>
    </mrow>
    <mo>&Equal;</mo>
    <mn>0</mn>
   </mrow>
   <mo>,</mo>
   <mrow>
    <mrow>
     <mi>y</mi>
     <mo>[</mo>
     <mn>1</mn>
     <mo>]</mo>
    </mrow>
    <mo>&Equal;</mo>
    <mn>0</mn>
   </mrow>
  </mrow>
  <mo>}</mo>
 </mrow>
</math>
</p>

<p class="Text">
 Ratkaistaan yht&auml;l&ouml;:
</p>



<p class="CellLabel">
 In[3]:=
</p>



<p class="Input">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mi>rtk1</mi>
  <mo>=</mo>
  <mtext> </mtext>
  <mrow>
   <mi>DSolve</mi>
   <mo>[</mo>
   <mrow>
    <mrow>
     <mi>Flatten</mi>
     <mo>[</mo>
     <mrow>
      <mo>{</mo>
      <mrow>
       <mi>yht</mi>
       <mo>,</mo>
       <mi>reunaehto1</mi>
      </mrow>
      <mo>}</mo>
     </mrow>
     <mo>]</mo>
    </mrow>
    <mo>,</mo>
    <mrow>
     <mi>y</mi>
     <mo>[</mo>
     <mi>x</mi>
     <mo>]</mo>
    </mrow>
    <mo>,</mo>
    <mi>x</mi>
   </mrow>
   <mo>]</mo>
  </mrow>
 </mrow>
</math>
</p>

<p class="Message">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mrow>
   <mi>Solve</mi>
   <mtext>::</mtext>
   <mi>ifun</mi>
  </mrow>
  <mo>&InvisibleTimes;</mo>
  <mrow>
   <mo>:</mo>
   <mtext> </mtext>
  </mrow>
  <semantics>
   <mrow>
    <mtext>Inverse functions are being used by </mtext>
    <mi>Solve</mi>
    <mtext>, so some solutions may not be found; use Reduce for complete solution information. </mtext>
    <maction actiontype='highlight'>
     <mi>More&hellip;</mi>
    </maction>
   </mrow>
   <annotation encoding='Mathematica'>&quot;Inverse functions are being used by \\!\\(Solve\\), so some solutions may not be found; use Reduce for complete solution information. \\!\\(\\*ButtonBox[\\\&quot;More\[Ellipsis]\\\&quot;, ButtonStyle-&gt;\\\&quot;RefGuideLinkText\\\&quot;, ButtonFrame-&gt;None, ButtonData:&gt;\\\&quot;Solve::ifun\\\&quot;]\\)&quot;</annotation>
  </semantics>
 </mrow>
</math>
</p>

<p class="CellLabel">
 Out[3]=
</p>



<p class="Output">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mo>{</mo>
  <mrow>
   <mrow>
    <mo>{</mo>
    <mrow>
     <mrow>
      <mi>y</mi>
      <mo>[</mo>
      <mi>x</mi>
      <mo>]</mo>
     </mrow>
     <mo>&rightarrow;</mo>
     <mrow>
      <mrow>
       <mi>Cosh</mi>
       <mo>[</mo>
       <mn>1</mn>
       <mo>]</mo>
      </mrow>
      <mo>-</mo>
      <mrow>
       <mi>Cosh</mi>
       <mo>[</mo>
       <mi>x</mi>
       <mo>]</mo>
      </mrow>
     </mrow>
    </mrow>
    <mo>}</mo>
   </mrow>
   <mo>,</mo>
   <mrow>
    <mo>{</mo>
    <mrow>
     <mrow>
      <mi>y</mi>
      <mo>[</mo>
      <mi>x</mi>
      <mo>]</mo>
     </mrow>
     <mo>&rightarrow;</mo>
     <mrow>
      <mrow>
       <mo>-</mo>
       <mrow>
        <mi>Cosh</mi>
        <mo>[</mo>
        <mn>1</mn>
        <mo>]</mo>
       </mrow>
      </mrow>
      <mo>+</mo>
      <mrow>
       <mi>Cosh</mi>
       <mo>[</mo>
       <mi>x</mi>
       <mo>]</mo>
      </mrow>
     </mrow>
    </mrow>
    <mo>}</mo>
   </mrow>
  </mrow>
  <mo>}</mo>
 </mrow>
</math>
</p>

<p class="Text">
 Ratkaisualgoritmissa k&auml;ytet&auml;&auml;n monihaaraisia k&auml;&auml;nteisfunktioita, mist&auml;<span style='font-style: italic;'>&nbsp;&nbsp;</span><span style='font-family: Courier New;'>DSolve</span> antaa varoituksen. Ketjun muoto noudattaa hyperbolista kosinia, jonka kuvaajaa t&auml;st&auml; syyst&auml; kutsutaankin <span style='font-style: italic;'>ketjuk&auml;yr&auml;ksi</span>. Sievennet&auml;&auml;n tulosta.
</p>



<p class="CellLabel">
 In[4]:=
</p>



<p class="Input">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mi>kaari1</mi>
  <mo>=</mo>
  <mrow>
   <mrow>
    <mrow>
     <mi>y</mi>
     <mo>[</mo>
     <mi>x</mi>
     <mo>]</mo>
    </mrow>
    <mo>/.</mo>
    <mi>rtk1</mi>
   </mrow>
   <mo>//</mo>
   <mi>FullSimplify</mi>
  </mrow>
 </mrow>
</math>
</p>

<p class="CellLabel">
 Out[4]=
</p>



<p class="Output">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mo>{</mo>
  <mrow>
   <mrow>
    <mrow>
     <mi>Cosh</mi>
     <mo>[</mo>
     <mn>1</mn>
     <mo>]</mo>
    </mrow>
    <mo>-</mo>
    <mrow>
     <mi>Cosh</mi>
     <mo>[</mo>
     <mi>x</mi>
     <mo>]</mo>
    </mrow>
   </mrow>
   <mo>,</mo>
   <mrow>
    <mrow>
     <mo>-</mo>
     <mrow>
      <mi>Cosh</mi>
      <mo>[</mo>
      <mn>1</mn>
      <mo>]</mo>
     </mrow>
    </mrow>
    <mo>+</mo>
    <mrow>
     <mi>Cosh</mi>
     <mo>[</mo>
     <mi>x</mi>
     <mo>]</mo>
    </mrow>
   </mrow>
  </mrow>
  <mo>}</mo>
 </mrow>
</math>
</p>

<p class="Text">
 Valitaan ratkaisuista se, joka aukeaa yl&ouml;sp&auml;in<span style='font-style: italic;'> </span><span style='font-family: Courier New;'>(</span><span>cosh(x)</span><span style='font-family: Courier New;'>)</span><span style='text-decoration: none;'> ja</span> piirret&auml;&auml;n kuvaaja ketjun riippumisasennolle.
</p>



<p class="CellLabel">
 In[5]:=
</p>



<p class="Input">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mi>Plot</mi>
  <mo>[</mo>
  <mrow>
   <mrow>
    <mi>kaari1</mi>
    <mo>[</mo>
    <mrow>
     <mo>[</mo>
     <mn>2</mn>
     <mo>]</mo>
    </mrow>
    <mo>]</mo>
   </mrow>
   <mo>,</mo>
   <mrow>
    <mo>{</mo>
    <mrow>
     <mi>x</mi>
     <mo>,</mo>
     <mrow>
      <mo>-</mo>
      <mn>1</mn>
     </mrow>
     <mo>,</mo>
     <mn>1</mn>
    </mrow>
    <mo>}</mo>
   </mrow>
   <mo>,</mo>
   <mrow>
    <mi>AspectRatio</mi>
    <mo>-&gt;</mo>
    <mi>Automatic</mi>
   </mrow>
  </mrow>
  <mo>]</mo>
 </mrow>
</math>
</p>

<p class="Graphics">
 <img src="HTMLFiles/ketju_1.gif" alt="[Graphics:HTMLFiles/ketju_1.gif]"  width="288" height="78"  style="vertical-align:middle" />
</p>

<p class="CellLabel">
 Out[5]=
</p>



<p class="Output">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mo>&hybull;</mo>
  <mo>&InvisibleTimes;</mo>
  <mi>Graphics</mi>
  <mo>&InvisibleTimes;</mo>
  <mo>&hybull;</mo>
 </mrow>
</math>
</p>

<p class="Text">
 Ent&auml; kun ketjun toinen p&auml;&auml; on merkitt&auml;v&auml;sti korkeammalla? Muutetaan reunaehtoja ja ratkaistaan yht&auml;l&ouml;t.
</p>



<p class="CellLabel">
 In[6]:=
</p>



<p class="Input">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mi>reunaehto2</mi>
  <mo>=</mo>
  <mrow>
   <mo>{</mo>
   <mrow>
    <mrow>
     <mrow>
      <mi>y</mi>
      <mo>[</mo>
      <mrow>
       <mo>-</mo>
       <mn>1</mn>
      </mrow>
      <mo>]</mo>
     </mrow>
     <mo>==</mo>
     <mn>0</mn>
    </mrow>
    <mo>,</mo>
    <mrow>
     <mrow>
      <mi>y</mi>
      <mo>[</mo>
      <mn>1</mn>
      <mo>]</mo>
     </mrow>
     <mo>==</mo>
     <mn>3</mn>
    </mrow>
   </mrow>
   <mo>}</mo>
  </mrow>
 </mrow>
</math>
</p>

<p class="CellLabel">
 Out[6]=
</p>



<p class="Output">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mo>{</mo>
  <mrow>
   <mrow>
    <mrow>
     <mi>y</mi>
     <mo>[</mo>
     <mrow>
      <mo>-</mo>
      <mn>1</mn>
     </mrow>
     <mo>]</mo>
    </mrow>
    <mo>&Equal;</mo>
    <mn>0</mn>
   </mrow>
   <mo>,</mo>
   <mrow>
    <mrow>
     <mi>y</mi>
     <mo>[</mo>
     <mn>1</mn>
     <mo>]</mo>
    </mrow>
    <mo>&Equal;</mo>
    <mn>3</mn>
   </mrow>
  </mrow>
  <mo>}</mo>
 </mrow>
</math>
</p>

<p class="CellLabel">
 In[7]:=
</p>



<p class="Input">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mi>rtk2</mi>
  <mo>=</mo>
  <mtext> </mtext>
  <mrow>
   <mrow>
    <mi>DSolve</mi>
    <mo>[</mo>
    <mrow>
     <mrow>
      <mi>Flatten</mi>
      <mo>[</mo>
      <mrow>
       <mo>{</mo>
       <mrow>
        <mi>yht</mi>
        <mo>,</mo>
        <mi>reunaehto2</mi>
       </mrow>
       <mo>}</mo>
      </mrow>
      <mo>]</mo>
     </mrow>
     <mo>,</mo>
     <mrow>
      <mi>y</mi>
      <mo>[</mo>
      <mi>x</mi>
      <mo>]</mo>
     </mrow>
     <mo>,</mo>
     <mi>x</mi>
    </mrow>
    <mo>]</mo>
   </mrow>
   <mo>//</mo>
   <mi>N</mi>
  </mrow>
 </mrow>
</math>
</p>

<p class="Message">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mrow>
   <mi>Solve</mi>
   <mtext>::</mtext>
   <mi>ifun</mi>
  </mrow>
  <mo>&InvisibleTimes;</mo>
  <mrow>
   <mo>:</mo>
   <mtext> </mtext>
  </mrow>
  <semantics>
   <mrow>
    <mtext>Inverse functions are being used by </mtext>
    <mi>Solve</mi>
    <mtext>, so some solutions may not be found; use Reduce for complete solution information. </mtext>
    <maction actiontype='highlight'>
     <mi>More&hellip;</mi>
    </maction>
   </mrow>
   <annotation encoding='Mathematica'>&quot;Inverse functions are being used by \\!\\(Solve\\), so some solutions may not be found; use Reduce for complete solution information. \\!\\(\\*ButtonBox[\\\&quot;More\[Ellipsis]\\\&quot;, ButtonStyle-&gt;\\\&quot;RefGuideLinkText\\\&quot;, ButtonFrame-&gt;None, ButtonData:&gt;\\\&quot;Solve::ifun\\\&quot;]\\)&quot;</annotation>
  </semantics>
 </mrow>
</math>
</p>

<p class="CellLabel">
 Out[7]=
</p>



<p class="Output">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mo>{</mo>
  <mrow>
   <mrow>
    <mo>{</mo>
    <mrow>
     <mrow>
      <mi>y</mi>
      <mo>[</mo>
      <mi>x</mi>
      <mo>]</mo>
     </mrow>
     <mo>&rightarrow;</mo>
     <mrow>
      <mn>0.5</mn>
      <mtext> </mtext>
      <mrow>
       <mo>(</mo>
       <mrow>
        <mrow>
         <mo>-</mo>
         <mn>2.0040929578560043</mn>
        </mrow>
        <mo>+</mo>
        <mrow>
         <mn>3.2429238271499368</mn>
         <mtext> </mtext>
         <mrow>
          <mi>Cosh</mi>
          <mo>[</mo>
          <mi>x</mi>
          <mo>]</mo>
         </mrow>
        </mrow>
        <mo>+</mo>
        <mrow>
         <mn>2.552754384717965</mn>
         <mtext> </mtext>
         <mrow>
          <mi>Sinh</mi>
          <mo>[</mo>
          <mi>x</mi>
          <mo>]</mo>
         </mrow>
        </mrow>
       </mrow>
       <mo>)</mo>
      </mrow>
     </mrow>
    </mrow>
    <mo>}</mo>
   </mrow>
   <mo>,</mo>
   <mrow>
    <mo>{</mo>
    <mrow>
     <mrow>
      <mi>y</mi>
      <mo>[</mo>
      <mi>x</mi>
      <mo>]</mo>
     </mrow>
     <mo>&rightarrow;</mo>
     <mrow>
      <mn>0.5</mn>
      <mtext> </mtext>
      <mrow>
       <mo>(</mo>
       <mrow>
        <mrow>
         <mn>8.004092957856004</mn>
         <mtext>&ZeroWidthSpace;</mtext>
        </mrow>
        <mo>-</mo>
        <mrow>
         <mn>3.2429238271499368</mn>
         <mtext> </mtext>
         <mrow>
          <mi>Cosh</mi>
          <mo>[</mo>
          <mi>x</mi>
          <mo>]</mo>
         </mrow>
        </mrow>
        <mo>+</mo>
        <mrow>
         <mn>2.552754384717966</mn>
         <mtext> </mtext>
         <mrow>
          <mi>Sinh</mi>
          <mo>[</mo>
          <mi>x</mi>
          <mo>]</mo>
         </mrow>
        </mrow>
       </mrow>
       <mo>)</mo>
      </mrow>
     </mrow>
    </mrow>
    <mo>}</mo>
   </mrow>
  </mrow>
  <mo>}</mo>
 </mrow>
</math>
</p>

<p class="Text">
 J&auml;lleen ep&auml;varmuutta aiheuttava k&auml;&auml;nteisfunktio. Sievennet&auml;&auml;n tulosta:
</p>



<p class="CellLabel">
 In[8]:=
</p>



<p class="Input">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mi>kaari2</mi>
  <mo>=</mo>
  <mrow>
   <mrow>
    <mrow>
     <mi>y</mi>
     <mo>[</mo>
     <mi>x</mi>
     <mo>]</mo>
    </mrow>
    <mo>/.</mo>
    <mi>rtk2</mi>
   </mrow>
   <mo>//</mo>
   <mi>Simplify</mi>
  </mrow>
 </mrow>
</math>
</p>

<p class="CellLabel">
 Out[8]=
</p>



<p class="Output">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mo>{</mo>
  <mrow>
   <mrow>
    <mrow>
     <mo>-</mo>
     <mn>1.0020464789280021</mn>
    </mrow>
    <mo>+</mo>
    <mrow>
     <mn>1.6214619135749684</mn>
     <mtext> </mtext>
     <mrow>
      <mi>Cosh</mi>
      <mo>[</mo>
      <mi>x</mi>
      <mo>]</mo>
     </mrow>
    </mrow>
    <mo>+</mo>
    <mrow>
     <mn>1.2763771923589824</mn>
     <mtext> </mtext>
     <mrow>
      <mi>Sinh</mi>
      <mo>[</mo>
      <mi>x</mi>
      <mo>]</mo>
     </mrow>
    </mrow>
   </mrow>
   <mo>,</mo>
   <mrow>
    <mrow>
     <mn>4.002046478928002</mn>
     <mtext>&ZeroWidthSpace;</mtext>
    </mrow>
    <mo>-</mo>
    <mrow>
     <mn>1.6214619135749684</mn>
     <mtext> </mtext>
     <mrow>
      <mi>Cosh</mi>
      <mo>[</mo>
      <mi>x</mi>
      <mo>]</mo>
     </mrow>
    </mrow>
    <mo>+</mo>
    <mrow>
     <mn>1.276377192358983</mn>
     <mtext> </mtext>
     <mrow>
      <mi>Sinh</mi>
      <mo>[</mo>
      <mi>x</mi>
      <mo>]</mo>
     </mrow>
    </mrow>
   </mrow>
  </mrow>
  <mo>}</mo>
 </mrow>
</math>
</p>

<p class="Text">
 Tulokseksi saadaan hieman monimutkaisempi riippumisk&auml;yr&auml;. Valitaan yl&ouml;sp&auml;in aukeava ratkaisu ja piirret&auml;&auml;n sen kuvaaja. (Mathematican eri versiot saattavat antaa ratkaisut eri j&auml;rjestyksess&auml;, joten on tutkittava, kumpi ratkaisu aukeaa oikeaan suuntaan.)
</p>



<p class="CellLabel">
 In[9]:=
</p>



<p class="Input">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mi>Plot</mi>
  <mo>[</mo>
  <mrow>
   <mrow>
    <mi>kaari2</mi>
    <mo>[</mo>
    <mrow>
     <mo>[</mo>
     <mn>1</mn>
     <mo>]</mo>
    </mrow>
    <mo>]</mo>
   </mrow>
   <mo>,</mo>
   <mrow>
    <mo>{</mo>
    <mrow>
     <mi>x</mi>
     <mo>,</mo>
     <mrow>
      <mo>-</mo>
      <mn>1</mn>
     </mrow>
     <mo>,</mo>
     <mn>1</mn>
    </mrow>
    <mo>}</mo>
   </mrow>
   <mo>,</mo>
   <mrow>
    <mi>AspectRatio</mi>
    <mo>-&gt;</mo>
    <mi>Automatic</mi>
   </mrow>
  </mrow>
  <mo>]</mo>
 </mrow>
</math>
</p>

<p class="Graphics">
 <img src="HTMLFiles/ketju_2.gif" alt="[Graphics:HTMLFiles/ketju_2.gif]"  width="192" height="288"  style="vertical-align:middle" />
</p>

<p class="CellLabel">
 Out[9]=
</p>



<p class="Output">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mo>&hybull;</mo>
  <mo>&InvisibleTimes;</mo>
  <mi>Graphics</mi>
  <mo>&InvisibleTimes;</mo>
  <mo>&hybull;</mo>
 </mrow>
</math>
</p>

<p class="Text">
 Kun k&auml;yr&auml;n yht&auml;l&ouml; ilmaistaan muodossa<span style='font-style: italic;'> </span><span style='font-family: Courier New;font-style: italic;'>y = f(x)</span>, saadaan k&auml;yr&auml;n pituus <span style='font-family: Courier New;font-style: italic;'>L</span> laskemalla
</p>



<p class="DisplayFormula">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mrow>
   <mi>L</mi>
   <mo>=</mo>
   <mrow>
    <msubsup>
     <mo>&Integral;</mo>
     <msub>
      <mi>x</mi>
      <mn>1</mn>
     </msub>
     <msub>
      <mi>x</mi>
      <mn>2</mn>
     </msub>
    </msubsup>
    <mrow>
     <msqrt>
      <mrow>
       <mn>1</mn>
       <mo>+</mo>
       <msup>
        <mrow>
         <mi>y</mi>
         <mo>'</mo>
        </mrow>
        <mn>2</mn>
       </msup>
      </mrow>
     </msqrt>
     <mo>&InvisibleTimes;</mo>
     <mrow>
      <mo>&DifferentialD;</mo>
      <mi>x</mi>
     </mrow>
    </mrow>
   </mrow>
  </mrow>
  <mo>,</mo>
 </mrow>
</math>
</p>

<p class="Text">
 miss&auml; <span class="DisplayFormulaInline">y'=<span class="DisplayFormulaInline"><math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mfrac>
  <mrow>
   <mi>d</mi>
   <mo>&InvisibleTimes;</mo>
   <mi>y</mi>
  </mrow>
  <mrow>
   <mi>d</mi>
   <mo>&InvisibleTimes;</mo>
   <mi>x</mi>
  </mrow>
 </mfrac>
</math></span></span>. T&auml;t&auml; yht&auml;l&ouml;&auml; voidaan soveltaa my&ouml;s ratkaistuihin riippuvien ketjujen yht&auml;l&ouml;ihin. Lasketaan ensimm&auml;isen&auml; lasketun k&auml;yr&auml;n pituus. M&auml;&auml;ritell&auml;&auml;n ensin integraalin sis&auml;ll&auml; oleva funktio:
</p>



<p class="CellLabel">
 In[10]:=
</p>



<p class="Input">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mrow>
   <mi>ketju</mi>
   <mo>=</mo>
   <mtext> </mtext>
   <mrow>
    <mi>kaari1</mi>
    <mo>[</mo>
    <mrow>
     <mo>[</mo>
     <mn>1</mn>
     <mo>]</mo>
    </mrow>
    <mo>]</mo>
   </mrow>
  </mrow>
  <mo>;</mo>
  <mtext> </mtext>
  <mrow>
   <mrow>
    <mi>fkt</mi>
    <mo>[</mo>
    <mtext>x_</mtext>
    <mo>]</mo>
   </mrow>
   <mo>=</mo>
   <mrow>
    <mi>Sqrt</mi>
    <mo>[</mo>
    <mrow>
     <mn>1</mn>
     <mo>+</mo>
     <mrow>
      <mrow>
       <mi>D</mi>
       <mo>[</mo>
       <mrow>
        <mi>ketju</mi>
        <mo>,</mo>
        <mi>x</mi>
       </mrow>
       <mo>]</mo>
      </mrow>
      <mo>^</mo>
      <mn>2</mn>
     </mrow>
    </mrow>
    <mo>]</mo>
   </mrow>
  </mrow>
 </mrow>
</math>
</p>

<p class="CellLabel">
 Out[10]=
</p>



<p class="Output">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <msqrt>
  <mrow>
   <mn>1</mn>
   <mo>+</mo>
   <msup>
    <mrow>
     <mi>Sinh</mi>
     <mo>[</mo>
     <mi>x</mi>
     <mo>]</mo>
    </mrow>
    <mn>2</mn>
   </msup>
  </mrow>
 </msqrt>
</math>
</p>

<p class="Text">
 Sitten integroidaan:
</p>



<p class="CellLabel">
 In[11]:=
</p>



<p class="Input">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mrow>
  <mi>pit</mi>
  <mo>=</mo>
  <mrow>
   <mi>NIntegrate</mi>
   <mo>[</mo>
   <mrow>
    <mrow>
     <mi>fkt</mi>
     <mo>[</mo>
     <mi>x</mi>
     <mo>]</mo>
    </mrow>
    <mo>,</mo>
    <mrow>
     <mo>{</mo>
     <mrow>
      <mi>x</mi>
      <mo>,</mo>
      <mrow>
       <mo>-</mo>
       <mn>1</mn>
      </mrow>
      <mo>,</mo>
      <mn>1</mn>
     </mrow>
     <mo>}</mo>
    </mrow>
   </mrow>
   <mo>]</mo>
  </mrow>
 </mrow>
</math>
</p>

<p class="CellLabel">
 Out[11]=
</p>



<p class="Output">
 <math xmlns='http://www.w3.org/1998/Math/MathML'>
 <mn>2.350402387287603</mn>
</math>
</p>

<p class="Subtitle">
 Teht&auml;vi&auml;
</p>



<p class='Text' style='background-color: #FFFF00;'>
 <span>Portaikko suljetaan ketjulla, joka ripustetaan kahden tolpan v&auml;lille. Tolppien et&auml;isyys on 1 m ja korkeus 70 cm. <br />Ratkaise graafisesti kokeilemalla (</span><span style='font-family: Courier New;font-style: italic;'>k</span><span>:n arvoa muuttamalla ), mink&auml; pituinen ketju tarvitaan, kun ketjun alimmaiskorkeuden tulee olla 50 cm. Kun muutat </span><span style='font-family: Courier New;font-style: italic;'>k</span><span>:n arvoa, saatat kohdata yll&auml;tt&auml;vi&auml; vaikeuksia differentiaaliyht&auml;l&ouml;n ratkaisussa. Johtuen </span><span style='text-decoration: none;'>Mathematica</span><span>n k&auml;ytt&auml;m&auml;st&auml; ratkaisurutiinista ja funktioiden haaroista kompleksitasossa, ratkaisuyht&auml;l&ouml;t sis&auml;lt&auml;v&auml;t useita p&auml;&auml;llekk&auml;isi&auml; juuria. Laskentaresursseista riippuen on syyt&auml; tyyty&auml; </span><span style='font-family: Courier New;font-style: italic;'>k</span><span>:n 1 &ndash; 2 desimaalin tarkkuuteen, sill&auml; se antaa ketjun pituudelle jo alle senttimetrin tarkkuuden. Ketjun pituudeksi tulee n. 109.7 cm. </span>
</p>



<p class='Text' style='background-color: #FFFF00;'>
 <span style='text-decoration: none;'>Mathematica</span><span> ei osaa ratkaista riippuvan ketjun yht&auml;l&ouml;&auml;, mik&auml;li </span><span style='font-family: Courier New;font-style: italic;'>k</span><span>:lle ei ole m&auml;&auml;ritelty lukuarvoa. L&ouml;yd&auml;tk&ouml; yhteyden ketjun pituuden ja vakion </span><span style='font-family: Courier New;font-style: italic;'>k</span><span> v&auml;lille kokeilemalla </span><span style='font-family: Courier New;font-style: italic;'>k</span><span>:lle eri arvoja? </span>
</p>



<p class='Text' style='background-color: #FFFF00;'>
 Roikkuvan ketjun potentiaalienergiaa kuvaa integraali <span><span><math xmlns='http://www.w3.org/1998/Math/MathML'>
 <msubsup>
  <mo>&Integral;</mo>
  <msub>
   <mi>x</mi>
   <mn>1</mn>
  </msub>
  <msub>
   <mi>x</mi>
   <mn>2</mn>
  </msub>
 </msubsup>
</math></span>y(x) <span><math xmlns='http://www.w3.org/1998/Math/MathML'>
 <msqrt>
  <mrow>
   <mn>1</mn>
   <mo>+</mo>
   <mtext> </mtext>
   <mrow>
    <mrow>
     <mi>y</mi>
     <mo>'</mo>
    </mrow>
    <mo>&InvisibleTimes;</mo>
    <msup>
     <mrow>
      <mo>(</mo>
      <mi>x</mi>
      <mo>)</mo>
     </mrow>
     <mn>2</mn>
    </msup>
   </mrow>
  </mrow>
 </msqrt>
</math></span><span class="doublestruck">d</span>x</span>, kun ketjun massatiheys pituusyksikk&ouml;&auml; kohden on asetettu <span>= 1</span>. Variaatiolaskennan Eulerin yht&auml;l&ouml;n mukaan t&auml;m&auml; saa minimiarvonsa, kun <span>y y'' = 1 + <span><math xmlns='http://www.w3.org/1998/Math/MathML'>
 <msup>
  <mrow>
   <mi>y</mi>
   <mo>'</mo>
  </mrow>
  <mn>2</mn>
 </msup>
</math></span></span>. Etsi t&auml;m&auml;n yht&auml;l&ouml;n yleinen ratkaisu alkeisfunktioiden avulla. Johda edell&auml; l&auml;ht&ouml;kohdaksi otettu differentiaaliyht&auml;l&ouml; ratkaisun v&auml;litulosten avulla. Vihje: Kyseess&auml; on toisen kertaluvun yht&auml;l&ouml;, jossa muuttuja <span>x</span> ei esiinny eksplisiittisesti. <span style='text-decoration: none;'>Mathematica</span>a voi k&auml;ytt&auml;&auml; laskuissa hy&ouml;dyksi, vaikka se ei osannekaan ratkaista differentiaaliyht&auml;l&ouml;&auml; suoraan.
</p>


<p><b>Linkkej&auml;</b></p>

<p>
 <a href="../xml/perreu.xml">reunaehto</a>
<br/>
<a href="../xml/algkkp.xml">muotoa <i>y'' = f (y,y')</i> olevat differentiaaliyht&auml;l&ouml;t</a>
<br/>
</p>

<p style='font-style: italic;'>
 JP &amp; SKK 09.05.2001
</p>


<hr />
<p style='font-family: Helvetica; font-size: 8pt'>Created by
 <a href="http://www.wolfram.com"><span style='font-style: italic'>Mathematica</span></a>
 &nbsp;(April 27, 2005)</p>

</body>

</html>
