If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

### Course: Algebra (all content)>Unit 7

Lesson 14: Combining functions

Given that f(x)=9-x^2 and g(x)=5x^2+2x+1, Sal finds (f+g)(x). Created by Sal Khan and Monterey Institute for Technology and Education.

## Want to join the conversation?

• I'm 72 and trying to learn again math that I studied over 50 years ago and hence I am somewhat challenged. My question: When you speak of functions such as f(x) or g(x) and then define them as you do on the videos as, for example f(x)=9+x2 or g(x) +5x2 + 2x +1, where do these equations come from? Are they just stated or do they come from a real problem? Thanks.
• Wow, you're an inspiration to me sir. Keep it up! :)
• towards the end at .. Sal says "There are two constants i.e. 0 degree terms"
Is he referring to the power of 9 and -1 ?
If so .. 9 to the power of 0 i.e. [9^0] would be equalt to 1 right??
as anything to the power 0 is one...
• 0 degree terms means the variable is raised to 0.
• Couldn't you have simplified it down further to 2(2x^2 + x + 5)?
• Yes, but there is no particular reason to do so. As you move into higher levels of math, the emphasis is less on "simplest form" and more on a practical or useful form. With polynomials, you often see them left in standard form. Factoring is typically done to the extent there is a reason to do so.
• Trying to solve in/out box math problem. What function will work for this: f(x)=y function must work for all when X =1 and y=1; X=2 and y=7; X=3 and y=19; and x=4 and y=37.
• Beware : A finite number of points is not enough to define a unique function. There is an infinite number of functions that could fit these four points, but most of them would give you "wrong" values on any other values. The best way to find the correct one, is by algebra and calculus based on careful problem analysis; but this is not always possible...
However, we can find a quite simple function that would work on these. Let's rewrite:
1 |--> 1
2 |--> 7 = 1.2.3 + 1
3 |--> 19 = 2.3.3 + 1
4 |--> 37 = 3.4.3 + 1
Looks like there is a pattern, isn't it ?
x |--> (x-1).(x).(3) +1
or f(x)=3x(x-1)+1
This is a rare case where guessing works... Otherwise, you would have to use a regression algorithm to fit the values against some function family (linear, quadratics, exponentials...). In this case, a linear regression would give pretty bad results, but a quadratics should give you the same answer, yet in expanded form:
f(x)=3x²+3x+1.
A graph (to scale) can be quite helpful to guess the appropriate function family.
Finally, you should give a try at oeis.org, and search for "1,7,19,37" : there is more than 80 registered sequences that fit these few numbers, amongst which is the sequence of hexagonal numbers
a003215(n)=3*n*(n+1)+1
which is very similar to our function !
Have fun !
• is this tenth or ninth grade math, you see im using khan for homeschooling but I don't know what is what. and also would you mind giving me some adding function practice problems? that would be so helpful. thanks! :)
• Can (f+g)(x) be written as f+g(x)?
• No never. Jacob
(f+g)(x) it means f(x)+g(x)
they shared common "x" variable..
so, you can't write (f+g)(x) as a f+g(x)..

i hope this will helps you!
Thank you!🙂🙂.
(1 vote)
• 4x^2+2x+10 could simplify to 2(2x^2+x+5), is there a reason why he did not do that? Just curious...
• He could've done it, but the question didn't ask for it. It's not mandatory for you to simplify your equation so he just did what the question asked and left it.
• Would the same rule apply to a subtracting function whereby the equation is like that above aside for subtraction signs in place of the addition?
• Yes, (f - g)(x) is the same as f(x) - g(x). In this case it would be

``(9 - x^2) - (5x^2 + 2x + 1)= 9 - x^2 - 5x^2 - 2x - 1= -6x^2 - 2x + 8``
• But what if you are adding a quadratic and a cubic function? How do you add them when they are different powers?