tag:blogger.com,1999:blog-16667088859005397812018-03-05T23:44:33.472-08:00Math 911Damián Vallejonoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-1666708885900539781.post-19013615135142868602013-05-17T17:38:00.001-07:002013-05-17T19:13:25.628-07:00Linear Functions<div style="text-align: center;"><u><b>Linear functions.</b></u></div><div style="text-align: center;"><br /></div><div style="text-align: center;"><br /></div><div style="text-align: left;">Alright! now that we built the basis (defining functions and linear equations) we can talk about linear functions, don't mix that up with linear transformations, we will talk about that eventually. Now it will come to light why the word linear. At this point, it would be good if you get some graphing software, such as Matlab, Derive, Mathematica, Octave or even google. Some of them are free, some not, Matlab can get quite expensive depending on the license you buy. I will make a post about some of them, eventually, and for this one, I will use Derive, because it is the simplest one. We will see about that later.</div><div style="text-align: left;">How does a linear function look like? well, it is a function, so it has to relate two sets, and satisfy the condition that, for every element of the domain, there is one and only one corresponding element in the codomain.</div><div style="text-align: left;">y = mx +b <-- this is the "face" of a linear function. Why m? why b? what is variable? what is fixed?</div><div style="text-align: left;">m and b are fixed numbers, what I wrote is the slope intercept form, we'll see about that name.</div><div style="text-align: left;">For now, m and b are fixed numbers, x and y are the variables. So, an example of a linear function is </div><div style="text-align: left;">y=3x+2 or y=7.5x+8/4.</div><div style="text-align: left;">This is not the only face a linear function can have. You can have </div><div style="text-align: left;">Ax+By = C <--- this is called the standard form</div><div style="text-align: left;">you can go from one to the other performing the same operations on both sides as we did in the linear equations post. Let's see how to go from the standard to the slope intercept</div><div style="text-align: left;">Ax+By = C <---- we need to get y alone on the left side, so let's subtract Ax from both sides</div><div style="text-align: left;">By = -Ax +C <--- now let's divide both sides by B</div><div style="text-align: left;">y = -A/Bx +C/B</div><div style="text-align: left;">so, m = -A/B and b = C/B.</div><div style="text-align: left;">Alright, that is how they can look like. They are equations, because there is an equal sign somewhere in there, and they are linear, because no variable is raised to no power (remember there is an implicit hidden power of 1, x^1= x ) and no variable is input of any weird function, such as cos(x) or e^x or Ln(x) or such. So, linear.</div><div style="text-align: left;">Ok, what we can do with these things? can we solve them? the answer is no, we can't.</div><div style="text-align: left;">There are infinite pairs (x,y) that satisfy y = x +4, think about it.</div><div style="text-align: left;">If x is 1, y is 5, so (1,5) is a possible solution, but if x is 2, y is 6, so (2,6) might as well be the solution. So hopefully you understand that it doesn't make any sense to say "solve y = x+4"</div><div style="text-align: left;">So, what can we do with these linear functions? graph them, solve for particular values of x OR y.</div><div style="text-align: left;">And that's pretty much it, so let's graph this. How can we do that?</div><div style="text-align: left;">Well, as we saw, there are infinte pairs that make that equation true, if we set a two dimesional space, where x is the horizontal coordinate and y is the vertical coordinate, the pair (1,5) determines a point in that plane, and so does (2,6) and (3,7) and they don't have to be integers, (1.5,5.5) also satisfies the equation. So let's graph all those points along with a couple more (that I get just by selecting random x's and seeing what y ends up being) and see what we get</div><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-vwoY5Q7qg1Y/UZa5aJoRYMI/AAAAAAAAACo/caXQtMoxVo0/s1600/Gr%C3%A1ficas-2D+1-1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="236" src="http://1.bp.blogspot.com/-vwoY5Q7qg1Y/UZa5aJoRYMI/AAAAAAAAACo/caXQtMoxVo0/s640/Gr%C3%A1ficas-2D+1-1.jpg" width="640" /></a></div><div style="text-align: left;">.</div><div style="text-align: left;">This is something we can actually do with pen and paper, and hopefully you will see that if you join the points you get a straight line, now I'm not going to prove that, but I can show you a graph that I get form Derive if I input y=x+4</div><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-M7qrv27fZuI/UZa6D3ANbWI/AAAAAAAAACw/D4b7-Xiehxg/s1600/Gr%C3%A1ficas-2D+1-222.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="238" src="http://4.bp.blogspot.com/-M7qrv27fZuI/UZa6D3ANbWI/AAAAAAAAACw/D4b7-Xiehxg/s640/Gr%C3%A1ficas-2D+1-222.jpg" width="640" /></a></div><div style="text-align: left;"><br /></div><div style="text-align: left;">What Derive does is basically plot thousands of points, now we don't got time for that, and we are smart. If we have two points, we can draw a line, right? that is all we need, two points, a pen, paper and a ruler, more than two points is redundant, hopefully that makes sense.</div><div style="text-align: left;">And this is the reason that they are called linear, because the graph is a line.</div><div style="text-align: left;">Ok, there are a few more elements to discuss, and the reason why the slope intercept form is "better" than the standard (it is easier to do some things with the standard though)</div><div style="text-align: left;">First, what gives the name to the slope intercept form. Remember it was y=mx+b</div><div style="text-align: left;">m is the slope, we will talk about that later</div><div style="text-align: left;">and b "is the intercept" Acutally, (0,b) is the y intercept, if you notice, at the y axis, x is 0 (because x is the shift with respect to the y-axis, positive to the right, negative to the left)</div><div style="text-align: left;">So, just by looking at it, we can tell the slope and we can tell the y-intercept (point of intersection of the line and the y axis).</div><div style="text-align: left;">The slope is the number with the x, and it makes sense to call it slope too.</div><div style="text-align: left;">Picture this scenario, we have y = mx, no b (or b=0, however you want to see it)</div><div style="text-align: left;">there is a fixed point here, (0,0) no matter what m is, if x is 0, y is 0.</div><div style="text-align: left;">So, say m is 1, y=x, we can get the point (1,1) and draw a line with that and (0,0)</div><div style="text-align: left;">but if m is 2? we get (1,2) instead, and if m=100, we get (1,100) let's see how that looks like.</div><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-ZD8BkWcCOxA/UZbMFlSvgbI/AAAAAAAAADA/0EOTtZjKkkU/s1600/abc.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="238" src="http://1.bp.blogspot.com/-ZD8BkWcCOxA/UZbMFlSvgbI/AAAAAAAAADA/0EOTtZjKkkU/s640/abc.jpg" width="640" /></a></div><div style="text-align: left;"><br /></div><div style="text-align: left;">the green is y=x, the purlpe y=2x and the brownish is y=100x</div><div style="text-align: left;">so, as the slope grows, the line gets steeper, and that is what we think about when we see the word slope, right? a big slope, a very steep thing, so if the slope is 100, it should be steep, compared to what? well, to a slope of 1, if the slope is small, say 0.0001 , then we should expect almost no slope,</div><div style="text-align: left;">if the slope is 0, we should have an horizontal line (that is what one imangines with "no slope" )</div><div style="text-align: left;">and if the slope is negative, the line "goes down" ( as x increases y decreases)</div><div style="text-align: left;">so a slope of -100 for example, would be very steep, but pointing down.</div><div style="text-align: left;">Hopefully all this makes sense, I hope to get some feedback. I will put a couple of problems, but we will come back to this, in a more practical sense. Let me know what you think in the comments.</div><div style="text-align: left;"><br /></div><div style="text-align: left;">1) 3x +2y = 7 <---- what is the slope here?</div><div style="text-align: left;">2) 5y = 3+x <--- write this in the slope intercept form</div><div style="text-align: left;">3) 5x+7y = 11 <--- what is the y-intercept here?</div>Damián Vallejohttps://plus.google.com/117116605714570464138noreply@blogger.com0tag:blogger.com,1999:blog-1666708885900539781.post-46820883229918626212013-05-17T13:35:00.001-07:002013-05-17T19:13:40.051-07:00Functions<div style="text-align: center;"><u><b> Functions.</b></u></div><div style="text-align: left;"><br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;">Ok, today we are going to talk about functions. You have to be aware that this is a HUGE topic in math and here I only want to give a simple word definition on what functions are, so we can move on to linear functions, graphing and all that stuff. So a function, a function is, in simple words, a relation between two sets. You have set A (that could be a bucket of dirty socks) and set B (that could be a bucket of gloves), a function is a relation between the elements of those sets (for example, pair the sock with the glove of the same color). Now, there is a condition that a function must satisfy. All elements of the input set (the set you apply the function to) must have a corresponding element in the output set and ONLY ONE. That is why we make a difference bewteen the input set and the output set, and they are called Domain and Codomain (or Range) respectively. So you have to specify what sets you will use, and for a given relation, you can define the function with a pair of sets and not with another pair. </div><div style="text-align: left;">Let's see real examples of this. Say set A ={1,2,3,4} (the numbers 1,2,3 and 4) and set B={2,4,6,8}, so we define a relation, with A as the domain and B as the Codomain and the relation is as follows f(a) = 2a. What does this mean? That for an input "a" (a is an element of A, i.e 1,2,3 or 4)</div><div style="text-align: left;">we get the outcome by multiplying it by 2. Now, is this relation a function? Well, we have to see if it satisfies the condition, does each element of A have a corresponding element in B? let's see, </div><div style="text-align: left;">f(1) = 2*1 = 2 so, (1,2) is the ordered pair. (an orderer pair is what the words say, two things, in a particular order) Is 2 in B? yes, does 1 have any other corresponding element in B? no, if we multiply 2*1 we will get 2 and only 2. So far we have no problem, but we can't say it is a function yet, we have to see if this holds for 2,3 and 4. And it does, you can check that f(2) =4, f(3) = 6 and f(4) = 8. All 4,6 and 8 are in B and for none of the a's (2,3 and 4) we have more than one corresponding element in B. So f(a)= 2a is a function if we use A={1,2,3,4} as the domain and B={2,4,6,8} as the codomain. What happens if we flip the roles? what if we want B to be the domain? Same relation</div><div style="text-align: left;">f(b) = 2b ( we use b now because B is the domain, we could have used x in both cases, the a and b were to emphatize the domain). Well, it works for 2, f(2) = 4 and the pair (2,4) with 2 in B and 4 in A is valid pair, because 4 is in A, but none of the others, f(4) = 8, 8 is not in A (and that is enough to prove it is not a fucntion, but let's see the rest) f(6)= 12, 12 is not i n A, and f(8) = 16, not in A.</div><div style="text-align: left;">Som the same relation, f(x) = 2x, is a function with domain A and codomain B, but it is NOT a function with domain B and codomain A. Let's see a couple of examples.</div><div style="text-align: left;">I will use X for the domain set and x for the domain's elemets and same with Y and y with the codomain.</div><div style="text-align: left;">X={1,2,3,4} ; Y={1,2,3,4}</div><div style="text-align: left;">f(x) =2</div><div style="text-align: left;">This relation (we can't call it function yet) relates all x's with the number 1. If we were to list the</div><div style="text-align: left;">ordered pairs, we would have (1,2), (2,2), (3,2) and (4,2). Is it a function? You may say no, because all elements of X have the same corresponding element in Y, you would have fallen in my trap (muahaha) the condition is that all elements of X have one and only one correspondinf element in Y. And that happens, all of them have one and only one, who cares if all have the same, there's no rule with that, there is also no rule that says there can't be unpaired elements in the Codomain. So this is indeed a function. Another example....</div><div style="text-align: left;">I will just give the orderer pairs here, same X and Y as before. I will use the notation "(x,f(x))" for the set of all the ordered pairs given by the relation.</div><div style="text-align: left;">"(x,f(x))" = {(1,1), (2,1), (2,2),(3,3),(4,4)}</div><div style="text-align: left;">Is this relation a function?? NO!! why? because 2 (the "x 2") has two corresponding elements, so not a function.</div><div style="text-align: left;">I will leave some problems for you to work, relations, you tell me if they are function or not, and if not, why? Leave your answers in the comments.</div><div style="text-align: left;"><br /></div><div style="text-align: left;">1) X={1,2,3,4} and Y={2,3,4,5}</div><div style="text-align: left;">f(x) = x+1</div><div style="text-align: left;"><br />2) X={1,2,3,4} and Y={2,3,4}</div><div style="text-align: left;">f(x) = x+1</div><div style="text-align: left;"><br /></div><div style="text-align: left;">3) X={0,2,4,8} and Y={2,3,4,5} </div><div style="text-align: left;">"(x,f(x))" = {(0,2),(2,3),(4,4)} </div><div style="text-align: left;"><br /></div><div style="text-align: left;">4) X={1,2,3,4} and Y={2,3,4,5}</div><div style="text-align: left;">f(x) = 1 </div><div style="text-align: left;"><br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;"><br /></div>Damián Vallejohttps://plus.google.com/117116605714570464138noreply@blogger.com0tag:blogger.com,1999:blog-1666708885900539781.post-12897989691076058632013-05-15T16:27:00.001-07:002013-05-17T19:13:54.444-07:00Linear equations<div style="text-align: center;"><u><b>Linear equations.</b></u></div><div style="text-align: center;"></div><div style="text-align: center;"><br /></div><div style="text-align: center;"></div><div style="text-align: center;"><br /></div><div style="text-align: left;">Alright! we are going to talk about linear equations today. Why? Well, it is one of the most simple and basic concepts in math and it leads to many others, so it seems like a good place to start.<br />First of all, what is an equation? Well, the word kind of says it, equation, equ, equal, right? An equation is just two things that are equal to each other, like 5=3+2. That is an equation, it has a left side, 5, and a right side, 3+2. There's no mistery there.<br />Now, what is a linear equation? That is a little (not much) more complicated. A linear equation is an equation that has a variable, that can appear many times, but it is always raised to the power of 1, or what is the same, it has no exponents. Now, I said power of 1 and no exponents, that may sound like a contradiction, right? if it is raised to the power of 1 you may say, "hey! there is an exponent, it is 1" and you wouldn't be half wrong, but if we raise something to the power of 1, we get the same thing, like 10 for example, 10^1 is 10 to the power of 1 (the caret is the standard symbol for exponents) but that is just 10, any number or expression raised to the power of 1 is just itslef.<br />So, writing no exponent is the same as writing exponent 1.<br />Ok, enough with that. Let's see how a linear equation looks like.<br />5x = 2x +1 <---- that is a linear equation right there, x is the variable, and since it has no exponent (or an implicit exponent of 1) it is linear.<br />5x^2 = 2x+1 <--- this is NOT a linear equation, why? well, there is an x with exponent of 2, that's why. There may be other things, like cos(x) or e^x that do have the x's with no exponents, but they are "inside" functions, so those don't count as linear either.<br />And what do we do with this so called "linear equations"? well, we solve them. And what is solving a linear equation? getting x's value, get x = "a number". Once we did that, we can say the equation is solved, people tend to say "solve for x" in cases like this.<br />How do we solve a linear equation? well, we have an equation, that is, two things that are equal to each other, like twin brothers. If you do something to one of them (like cut one of the brother's arm off) they will no longer be equal, but if you do the same to both (cut the other's arm also) they will remain equal.<br />So, that is the idea, a little less bloody than the twin parallelism though. We do the same on both sides, whatever we want, but the same thing.<br />So, let's solve the one in the example<br />5x=2x +1 <---- we want to solve this for x, so we should get all the x terms on one side and group them. Say we choose the left side to be the "x side", then we need to get the 2x out of the right side.<br />What can we do to make that happen? Well, let's look at what 2x is doing to the rest of the side, the<br />rest of the side is just +1, and 2x is clearly added to it, so to make it dissapear, we subtract 2x from both sides, let's do that and see what happens.<br />5x -2x = 2x +1 -2x <---- we have 2x and -2x on the right side, that is just 0 (if that doesn't make sense<br />think on 2 dollars -2 dollars, people tend to get smarter when they think about money)<br />So the right side is just 1 since 1+0 =1, we can say that the 2x's cancelled (in an addition/subtraction sense).<br />So we have<br />5x -2x = 1 <--- now we need to group on the left side, we have 5x -2x, that is 3x (again, think about<br />money if it doesn't make sense, 5 bucks -2 bucks)<br />So we have<br />3x =1<br />Now, we didn't solve for x yet, the goal was to get x= "a number" but we have 3x, and that is 3 times x, we never write the multiplication sign (that is an asterisk * in standard writing) because it is (or should be) understood that it is a multiplication. So, in the same train of thoughts, we have to do the opposite operation to cancel it, opposite of multiplication is division, so we divide both sides by 3<br />3x /3 = 1/3<br />the 3's cancell on the left (in a multiplication/division sense)<br />so we have left just x, then<br />x= 1/3<br />And that is how we solve linear equations.<br />Now I would like to talk about that "cancelling" idea, because there are (for now) two different kinds<br />of cancelling, the addition/subtraction sense and the multiplication/division sense.<br />Why they are different? well, think of this, we have a 5 and we do stuff to it, stuff that cancels.<br />So, we add 3 to it and subtract 3 after that. We get 5+3-3 and we can do that in any order<br />(5+3) -3 = 8-3 = 5<br />5 +(3-3) = 5+0 = 5<br />or even (5-3) +3 = 2 +3 = 5<br />the second one is the one I care about, that is where we can see the cancelling, 3-3 = 0<br />and if we add 0 to 5 it is still 5, so when two numbers cancel in an addition/subtraction sense, they cancel to 0.<br />However, that is not the case in mulitplication/division. Let's use the same number, we start with 5, multiply it and divide it by 3, we can do it in any order too.<br />(5*3)/3 = 15/3 = 5<br />5*(3/3) = 5*1 = 5<br />but it is the second one where we can see the cancelling in a mulitplication/division sense.<br />3/3 = 1, and if we mulitply a number by 1 (same way if we add 0 to a number) we don't change it.<br />So, in this case they cancel, yes, but not to 0, they cancel to 1.<br />I hope this was helpful for all you people struggling with this, remember that "Sucking at something is the first step to becoming sorta good at something" - Jake the dog.<br /> One thing I didn't mention, but it's worth doing, the variable doesn't have to be just one, we can extend this concept to many variables, for example<br />y = 2x +3z +40w<br />that is a linear equation too, we have to careful with the exponent idea here, every variable adds to the exponent in a term, say we have xy as one of the terms. both x and y have no exponent (equivalent to exponent 1) but as a whole the term "has exponent 2" so that is non linear also.<br />Ok, quizz time, you have to tell if the equations are or aren't linear, and if not, why? leave the answers in the comment section. When possible, solve the equations.<br /><br />1) 3x +2 = 20<br />2) 3x^2+2 = 20<br />3) 3x+2x+3x+1= 2x+20<br />4) y= 2x+3<br />5) cos(x) = 12x+15<br />6) e^x = 2y<br />7) 1/x = x+y<br />8) xy= 3z<br /><br /><br /><br /><br /><br /><br /><br /><br /></div>Damián Vallejohttps://plus.google.com/117116605714570464138noreply@blogger.com0