yego.me
💡 Stop wasting time. Read Youtube instead of watch. Download Chrome Extension

Example visually evaluating discrete functions


2m read
·Nov 11, 2024

What we have here is a visual depiction of a function, and this is a depiction of y is equal to h of x. Now, when a lot of people see function notation like this, they can see it as somewhat intimidating until you realize what it's saying. All a function is just something that takes an input. In this case, it's taking x as an input, and then the function does something to it, and then it spits out some other value which is going to be equal to y.

So, for example, what is h of 4 based on this graph that you see right over here? Pause this video and think through that. Well, all h of 4 means is when I input 4 into my function h, what y am I spitting out? Or another way to think about it: when x is equal to 4, what is y equal to? Well, when x is equal to 4, my function spits out that y is equal to 3. We know that from this point right over here. So, y is equal to 3, so h of 4 is equal to 3.

Let's do another example. What is h of 0? Pause the video, try to work that through. Well, all this is saying is if I input x equals 0 into the function, what is going to be the corresponding y? Well, when x equals 0, we see that y is equal to 4. So it's as simple as that: given the input, what is going to be the output? And that's what these points represent. Each of these points represents a different output for a given input.

Now, it's always good to keep in mind one of the things that makes it a function is that for a given x that you input, you only get one y. For example, if we had two dots here, then all of a sudden we have a problem at figuring out what h of six would be equal to, because it could be equal to 1 or it could be equal to 3. So, if we had this extra dot here, then this would no longer be a function. In order for it to be a function, for any given x, it has to output a unique value. It can't output two possible values.

Now, the other way is possible. It is possible to have two different x's that output the same value. For example, if this was circled in, what would h of negative 4 be? Well, h of negative 4, when x is equal to negative 4, when you put that into our function, it looks like the function would output 2. So, h of negative 4 would be equal to 2.

But h of 2 is also equal to—we see very clearly there—when we input a 2 into the function, the corresponding y value is 2 as well. So it's okay for two different x values to map to the same y value; that works. But if you had some type of an arrangement, some type of a relationship where, for a given x value, you had two different y values, then that would no longer be a function. But the example they gave us is a function, assuming I don't modify it.

More Articles

View All
A Story of Community and Climate | Explorers Fest
Magic, you are in the tire desert of India. We climb down from the dune, and he shows me this well. It’s a hand-dug well that is giving water not even three feet under. And there’s water there. There are several such wells peppered along the dunes. This i…
Paying yourself first | Budgeting and saving | Financial Literacy | Khan Academy
You might have heard the term “paying yourself first,” and this just means putting your safety, your needs, especially your future needs, first before you think about other things. So let’s give ourselves an example. Let’s say that you want to buy a lapt…
Pablo Escobar Goes to War | Narco Wars
INTERVIEWER: You learned English in Colombia or in the United States or– Watching TV, man. INTERVIEWER: Watching TV? Watching TV, hiding all the time. My name is Sebastián Marroquín, formerly Juan Pablo Escobar. I am the son of Pablo Escobar. I grew up…
Generalizabilty of survey results example | AP Statistics | Khan Academy
Niketi took a random sample of 10 countries to study fertility rate and life expectancy. She noticed a strong negative linear relationship between those variables in the sample data. Here is computer output from a least squares regression analysis for usi…
YC Fireside: Surbhi Sarna + Reshma Shetty and Jason Kelly - Founders of Ginkgo Bioworks
Hi, welcome Reshma and Jason and everybody on the call. Hi, my gosh, I am so excited to chat with the two of you, pioneers in the field of synthetic biology. So to kick us off, the audience today is going to be a mix of people with a tech background and …
What is computer science? | Intro to CS - Python | Khan Academy
You’ve probably seen somewhere the definition of computer science as the study of computers, and that probably wasn’t particularly helpful because what does it mean to study a computer? To get to a better definition, it’ll be helpful for us to answer a f…