Subject Areas
  Basics
  Algebra
  Geometry
  Statistics
  Trigonometry
  Calculus
Tools / Misc
  GED
  Graphing
  Math Tools

scrnGC2: Calc Input
scrnGC3: f(x) Plot Input
scrnGC4: g(x) Plot Input
The inputs above will be hidden when the program finally gets launched. Currently, I am not hiding them even when you close the calculator. The purpose of the inputs is to help in debugging. This allows you to enter simple code on the calculator screen but the program translates the input to javascript math. Give it a try and see if you notice any obvious problems or have suggestions for improvements.
Function Operations Help
Valid HTML 4.0 Transitional
Evaluating a Function

Many functions use x as the independent variable and y or f(x) as the dependent variable. Evaluation of a function is as simple as substituting the given number in every position that it appears in the function, as shown below:

Example 1:
Given: f(x) = x² + 2x -3;   f(-2)=?

Step 1:  f(     ) = (    )² + 2 (    ) - 3
Step 2:  f(-2) = ( -2 )² + 2 ( -2 ) - 3
Step 3:  f(-2) = 4 - 4 - 3 = -3
,

Rewrite the given function, replacing each "x" with a set of parenthesis. In the example at the left, -2 is placed in each placeholder position since the function is to be evaluated for x = -2. Compute the answer following the order of operations.
Although f(x) is commonly used to express a function, any other notation can be encountered; i.e. g(m) is the function g having m as its independent variable.
Adding Functions

When two functions are added together, it is simple matter of adding similar terms.

Example 2:
Given: f(x) = x² + 2x -3
          g(x) = 3x² + 4x +5  

f(x) + g(x)=  4x² + 4x + 2
Generally, polynomials are written from highest degree to lowest degree, from left to right. In this example, the highest degree is x². Adding the x²terms from both functions results in 4x². Adding the next term, x results in 6x. Adding the constant terms, results in a +2. The sum is therefore;
4x² + 4x + 2.
Subtracting Functions

When two functions are subtracted, change the sign of all the terms being subtracted and proceed as in addition.

Example 3:
Given: f(x) = 5x² + 2x -4
           g(x) = 2x² + 3x +5

           f(x) - g(x) = ?
Solution:
          f(x) =  5x² + 2x -4
        -g(x) = -2x² - 3x -5

f(x) - g(x) =  3x² -  x - 9
Multiplying Functions

When two functions are multiplied, use generic rectangles (as shown in earlier) or use FOIL.

Example 4:
Given: f(x) = 2x -3
           g(x) = 3x +5
           f(x) * g(x) = ?
Solution:
          f(x) * g(x)
          (2x -3)*(3x +5) =  6x² + x - 15
Dividing Functions

When two functions are divided, the solution is the first function divided by the second unless the two functions share a common factor.  The main thing that you have to watch for is when the denominator goes to zero.  Setting the denominator to zero and solving will give you the number in the domain where the function is undefined.

Example 5:
Given: f(x) = 3x -2
           g(x) = 3x +5
           f(x) / g(x) = ?
Solution:
          f(x) / g(x)
          (3x - 2)/(3x +5) = (3x - 2)/(3x +5);  x  ≠  -5/3
          Note that 3x+5 cannot equal zero.


© 2002- John Schlecht. All rights reserved.