MATH201/public/linear-de-lec-23.html

554 lines
12 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="The world is non-linear, many solutions, many paths to the solution. It&rsquo;s why linear equations play so nice. We just look down it&rsquo;s path and we will know that it&rsquo;s a straight line for eternity.
Linear equation:
$$a(x)\frac{ dy }{ dx }&#43;b(x)y=f(x)$$ (I&rsquo;m calling this …">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<link rel="manifest" href="./manifest.json"><meta property="og:title" content="" />
<meta property="og:description" content="The world is non-linear, many solutions, many paths to the solution. It&rsquo;s why linear equations play so nice. We just look down it&rsquo;s path and we will know that it&rsquo;s a straight line for eternity.
Linear equation: $$a(x)\frac{ dy }{ dx }&#43;b(x)y=f(x)$$ (I&rsquo;m calling this #de_L_type1) if we assume $b(x)=a&#39;(x)$ it kinda starts to look like a product rule $a(x)y&#39;&#43;a&#39;(x)y=f(x)=(ay)&#39;$ $ay=\int f(x) , dx$ &lt;-yay! We can find the solutions to y." />
<meta property="og:type" content="article" />
<meta property="og:url" content="/linear-de-lec-23.html" />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content=""/>
<meta name="twitter:description" content="The world is non-linear, many solutions, many paths to the solution. It&rsquo;s why linear equations play so nice. We just look down it&rsquo;s path and we will know that it&rsquo;s a straight line for eternity.
Linear equation: $$a(x)\frac{ dy }{ dx }&#43;b(x)y=f(x)$$ (I&rsquo;m calling this #de_L_type1) if we assume $b(x)=a&#39;(x)$ it kinda starts to look like a product rule $a(x)y&#39;&#43;a&#39;(x)y=f(x)=(ay)&#39;$ $ay=\int f(x) , dx$ &lt;-yay! We can find the solutions to y."/>
<title>Linear DE (lec 2&amp;3) - My New Hugo Site</title>
<link rel="stylesheet" href="./css/main.min.203106d73d4370d04c60441691746dd8e021e38bbbc83f65f636dc8ae886a9f3.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="./js/main.min.2dd2f7073384163751d1886bcb921097bc2af8ec60cb37deebf49f61a0eca5c3.js" integrity="sha256-LdL3BzOEFjdR0Yhry5IQl7wq&#43;Oxgyzfe6/SfYaDspcM="></script>
</head>
<body>
<style>
search-menu {
display: block;
}
#search {
height: 100%;
width: 0;
position: fixed;
background: var(--background-search);
z-index: 1;
top: 0;
left: 0;
border-right: 1px solid var(--separator-color);
overflow-x: hidden;
overflow-y: auto;
opacity: 0;
-ms-overflow-style: none;
scrollbar-width: none;
}
#search::-webkit-scrollbar { display: none; }
#search-header {
padding: 12px;
position: fixed;
padding-left: 12px;
padding-right: 12px;
background: var(--background-search);
width: 250px;
opacity: 1;
height: 50px;
z-index: 2;
border-bottom: 1px solid var(--separator-color);
}
#search .input-container {
position: relative
}
#search-input {
width: 100%;
height: 24px;
border: 1px solid var(--separator-color);
border-radius: 4px;
padding-left: 16px;
background-color: white;
display: inline-block;
}
#search-input:focus {
border: 1px solid var(--search-field-focused-color);
}
#search-header .input-container .search-icon {
position: absolute;
top: 6px;
left: 8px;
fill: darkGray;
}
#search-results img {
width: 122px;
height: 76px;
border: 1px solid var(--separator-color);
object-fit: cover;
}
#search-results {
margin-top: 50px;
overflow: auto;
height: 100%;
}
#search-results a {
width: 100%;
padding-left: 25px;
padding-right: 25px;
padding-top: 12px;
padding-bottom: 12px;
display: inline-block;
color: var(--text-base-color);
border-bottom: 1px solid var(--separator-color);
border-left: 6px solid var(--background-search);
}
#search-results a:first-child:hover, a:first-child:focus, .selected {
outline: 0;
background-color: var(--note-table-cell-selected-color);
border-left: 6px solid var(--note-table-cell-ribbon-color) !important;
}
#search-results li { text-indent: 0; }
#search-results li:before,
#search-results h1:before,
#search-results h2:before,
#search-results h3:before,
#search-results h4:before,
#search-results h5:before,
#search-results h6:before {
content: "";
visibility: hidden;
display: none;
}
</style>
<search-menu id="search" data-turbolinks-permanent>
<header id="search-header">
<div class="input-container">
<svg aria-hidden="true" style="" class="search-icon" width="12" height="12" viewBox="0 0 18 18">
<path d="M18 16.5l-5.14-5.18h-.35a7 7 0 10-1.19 1.19v.35L16.5 18l1.5-1.5zM12 7A5 5 0 112 7a5 5 0 0110 0z">
</path>
</svg>
<input type="search" autocomplete="off" id="search-input" onkeyup="performSearch()" tabindex="0" placeholder="Search note">
</div>
</header>
<ul id="search-results"></ul>
</search-menu>
<script>
</script>
<style>
#toolbar {
position: fixed;
top: 0;
right: 0;
width: 60px;
height: 100%;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
transition: 1s;
opacity: 0.5;
padding: 18px 0px 18px 0px;
}
#toolbar:hover {
opacity: 1;
}
#close-nav-icon {
display: none;
}
</style>
<aside id="toolbar">
<span style="cursor:pointer" id="open-nav-icon" onclick="handleNavVisibility()">
<svg width="18" height="18" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="var(--text-base-color)" stroke-width="1.1" cx="9" cy="9" r="7"></circle><path fill="none" stroke="var(--text-base-color)" stroke-width="1.1" d="M14,14 L18,18 L14,14 Z"></path></svg>
</span>
<span onclick="imageMode()" style="cursor:pointer;margin-top:16px;">
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="16.1" cy="6.1" r="1.1"></circle><rect fill="none" stroke="var(--text-base-color" x=".5" y="2.5" width="19" height="15"></rect><polyline fill="none" stroke="var(--text-base-color" stroke-width="1.01" points="4,13 8,9 13,14"></polyline><polyline fill="none" stroke="var(--text-base-color)" stroke-width="1.01" points="11,12 12.5,10.5 16,14"></polyline></svg>
</span>
</aside>
<main id="main">
<div id="note-wrapper" class="note-wrapper">
<p>The world is non-linear, many solutions, many paths to the solution. It&rsquo;s why linear equations play so nice. We just look down it&rsquo;s path and we will know that it&rsquo;s a straight line for eternity.</p>
<h1 id="linear-equation">Linear equation:</h1>
<p>$$a(x)\frac{ dy }{ dx }+b(x)y=f(x)$$ (I&rsquo;m calling this <a class="hashtag" onclick="focusTag(this)">de_L_type1)</a>
if we assume $b(x)=a'(x)$ it kinda starts to look like a product rule
$a(x)y'+a'(x)y=f(x)=(ay)'$
$ay=\int f(x) , dx$ <svg width="11px" height="10px" viewBox="0 0 11 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g id="left-arrow" transform="translate(5.500000, 5.000000) scale(-1, 1) translate(-5.500000, -5.000000) "> <path d="M1.77635684e-14,5 L9,5" id="rod" stroke="#000000" stroke-width="2"></path> <path d="M11,5 L6,0.5 L6,9.5 L11,5 Z" id="point" fill="#000000"></path></g></svg>yay! We can find the solutions to y.</p>
<p>we can rewrite the linear equation in what&rsquo;s called standard form:
$$\frac{ dy }{ dx }+P(x)y=Q(x)$$ (I&rsquo;m calling this <a class="hashtag" onclick="focusTag(this)">de_L_type2)</a>
we will define a function $\mu(x)$ called the integration factor, also expressed as $I(x)$
Multiply both sides by $\mu(x)$
$\mu(x) \frac{ dy }{ dx }+\underbrace{ \mu(x)P(x) }_{ \mu'(x) }y=\mu(x)Q(x)$
Like shown above we imagine if $\mu(x) P(x)=\mu'(x)$ as it starts to look like the product rule again.
$(\mu y)'=\mu(x)Q(x)$
This is nice as now we can integrate both sides as usual and get a solution for y.
$y=\frac{1}{\mu(x)}\int \mu(x)Q(x) , dx$ <a class="hashtag" onclick="focusTag(this)">remember</a>
But what is $\mu(x)$? How do we find it?
In order for $\mu(x) P(x)=\mu'(x)$ to be true, $\frac{ d\mu }{ dx }=\mu(x)P(x)\Rightarrow \frac{ d\mu }{ \mu }=P(x)dx\Rightarrow\int \frac{d\mu}{\mu}=\int P(x) , dx\Rightarrow\ \ln\mid \mu\mid=\int P(x) , dx$</p>
<blockquote>
<p>I&rsquo;m not sure why the professor allows the absolute value to be dropped in the following step, I think he said that he argues all solutions can be found even if we focus only where $\mu$ is +, idk.</p>
</blockquote>
<p>finally we get that $\mu(x)=I(x)=e^{\int P(x) , dx}\quad \Box$ <a class="hashtag" onclick="focusTag(this)">remember</a></p>
<hr>
<p><a class="hashtag" onclick="focusTag(this)">end</a> of lecture 2
<a class="hashtag" onclick="focusTag(this)">start</a> of lecture 3</p>
<h1 id="examples-of-linear-equations">Examples of linear equations:</h1>
<p><a class="hashtag" onclick="focusTag(this)">ex</a>
<a class="hashtag" onclick="focusTag(this)">de_L_type2</a> Find the general solution to the equation:</p>
<h2 id="1sinxy2cosxytanx">$$(1+\sin(x))y'+2\cos(x)y=\tan(x)$$</h2>
<p>let $a(x)=1+sin(x)\qquad b(x)=2\cos(x)$
we can see that $b(x)\ne a'(x)$ :( so we cant use
<a class="hashtag" onclick="focusTag(this)">de_L_type1</a>
let&rsquo;s rearrange it into standard form:
$y'+\frac{{2\cos(x)}}{1+\sin(x)}=\frac{\tan(x)}{1+\sin(x)}$
$P(x):=\frac{2\cos(x)}{1+\sin(x)} \qquad Q(x)=\frac{\tan(x)}{1+\sin(x)}$
then $I(x)=e^{\int {2\cos(x)}/(1+\sin(x)), dx}$
let $u=1+\sin(x) \qquad du=\cos(x)dx$
$I(x)=e^{\int \frac{2\cos(x)}{u} , \frac{du}{\cos(x)}}$
$I(x)=e^{2\ln\mid u\mid}$
$I(x)=\mid u\mid^2$
$I(x)=\mid1+\sin(x)\mid^2$
$I(x)=(1+\sin(x))^2$
$y=\frac{1}{I(x)}\int I(x)Q(x) , dx$
$y=\frac{1}{(1+\sin(x))^2}\int (\frac{(1+\sin(x))^2\tan(x)}{1+\sin(x)} , dx$
$y=\frac{1}{(1+\sin(x))^2}\int \tan(x)+\frac{\sin^2(x)}{\cos(x)} , dx$
$y=\frac{1}{(1+\sin(x))^2}(\ln\mid sec(x)\mid+\int \frac{\sin^2(x)}{\cos(x)} , dx)$</p>
<blockquote>
<p>using u substitution doesnt work for the second integral because I got $\int\frac{\sin(x)}{u}du \qquad u=\cos(x)$
could try using $\sin^2(x)=\frac{{1-\cos(2x)}}{2}$ but looks hard with the 2x term,
let&rsquo;s try using $\sin^2(x)=1-\cos^2(x)$ instead. (also because I also remember this is what we used in class)</p>
</blockquote>
<p>$y=\frac{1}{(1+\sin(x))^2}(\ln\mid sec(x)\mid+\int \frac{1-\cos^2(x)}{\cos(x)} , dx)$</p>
<p>$y=\frac{1}{(1+\sin(x))^2}(\ln\mid sec(x)\mid+\ln\mid sec(x)+\tan(x)\mid+\int -\cos(x) , dx)$
Albeit a bit ugly, we have found the general solution to the DE:
$$y=\frac{1}{(1+\sin(x))^2}(\ln\mid sec(x)\mid+\ln\mid sec(x)+\tan(x)\mid-\sin(x)+C)$$</p>
<hr>
<p><a class="hashtag" onclick="focusTag(this)">ex</a>
<a class="hashtag" onclick="focusTag(this)">IVP</a>
<a class="hashtag" onclick="focusTag(this)">de_L_type2</a></p>
<h2 id="ytanxycos2x-qquad-yleft-fracpi4-rightfrac12">$$y'+\tan(x)y=\cos^2(x) \qquad y\left( \frac{\pi}{4} \right)=\frac{1}{2}$$</h2>
<p>Looks like a linear equation with an initial value.
$P(x)=\tan(x) \qquad Q(x)=\cos^2(x) \qquad I(x)=e^{\int \tan(x) , dx}$
$I(x)=e^{\ln\mid sec(x)\mid}$
$I(x)=\mid sec(x)\mid$
$I(x)=sec(x)$</p>
<blockquote>
<p>The prof simply drops the absolute value. I don&rsquo;t understand why. Sigma asf tbh. I think it&rsquo;s because he said linear DE are nice because their solutions are unique with an IVP, non linear equations are not necessarily unique. So if we find one solution we know that we found the only solution possible.</p>
</blockquote>
<p>$y=\cos(x)\int sec(x)\cos^2(x) , dx$
$y=\cos(x)\int \cos(x) , dx$
$y=cos(x)(sin(x)+C)$
Now we issue the initial value:
$\frac{1}{2}=\cos\left( \frac{\pi}{4} \right)\sin\left( \frac{\pi}{4}+C) \right)$
$\frac{\frac{1}{2}}{\frac{1}{\sqrt{ 2 }}}=\frac{\sqrt{ 2 }}{2}=\frac{1}{\sqrt{ 2 }}=\sin\left( \frac{\pi}{4} \right)$
$C=0$
By plugging in C=0 in the general solution we get the solution to the IVP, as stated earlier, there can only be one solution to a linear IVP DE:</p>
<h3 id="ycosxsinx">$$y=\cos(x)\sin(x)$$</h3>
<hr>
<h3>Referenced in</h3>
<ul>
<li>No backlinks found</li>
</ul>
</div>
</main>
<script type="text/javascript">
</script>
</body>
</html>