# HP 50g Derivatives, Integrals, and Summations Tutorial

Arguably of the best reasons for getting a calculator with a CAS (computer algebra system) is to solve derivatives, integrals, and summations symbolically. Here’s how to do it with the HP 50g.

NOTE: This (and all of my other) tutorial assumes that the calculator is in RPN mode. If you are not using RPN mode, take the time to learn it and you will be very glad you did!

### Derivatives

To take the derivative of an expression where the independent variable is ‘X’, first enter the expression onto the stack.

Next press [LSHIFT], then [CALC] to open up the calculus menu. Select {DERVX}, which stands for “derivative with respect to X”, and press the {OK} soft button.

### Indefinite Integrals

To take the indefinite integral of an expression where the independent variable is ‘X’, first enter the expression onto the stack.

Next press [LSHIFT], then [CALC] to open up the calculus menu. Select {INTVX}, which stands for “integral with respect to X”, and press the {OK} soft button.

### Definite Integrals

To take the definite integral of an expression, open up the equation writer by pressing [RSHIFT] then [EQW]. To enter an integral press [RSHIFT] and then the integral button (same as the [TAN] button). Your calculator should look like this:

Enter values for all the “dots” by entering the desired values and then pressing the [RIGHT ARROW] button to move to the next location. A possible input could look like this.

It should be noted that in the equation writer the calculator can integrate with respect to any variable, just make sure to put the desired variable in the differential. Once the integral is set up correctly, press [ENTER] to output the expression onto the stack.

To evaluate the expression, press [EVAL]. Hopefully your calculator shows this!

### Summations

Finding the value of a summation is similar to solving a definite integral. Open up the equation writer by pressing [RSHIFT] then [EQW]. To enter an summation press [RSHIFT] and then the sigma button (same as the [SIN] button).

Enter values for all the “dots” by entering the desired values and then pressing the [RIGHT ARROW] button to move to the next location. A possible input could look like this.

Press [ENTER] to output the expression onto the stack.

To evaluate the expression, press [EVAL]. Hopefully your calculator shows this!

# HP 50g Variables and Folders Tutorial

This is a basic tutorial on managing variables and folders on the HP 50g calculator. Deleting variables is easy once you know what to, but it gives people trouble at the start when learning how to use this calculator. Using folders effectively is important because it helps with organizing variables and lets you have more than one sets of variables or constants saved for different types of problems or classes. The file browser is useful for navigating folders but also good for helping you delete large amounts of variables quickly.

NOTE: This (and all of my other) tutorial assumes that the calculator is in RPN mode. If you are not using RPN mode, take the time to learn it and you will be very glad you did!

### Creating and Using Variables

Creating and using variables is easy to do if you know how. To create a variable, put the contents that you want to store in the variable on the first line of the stack. Next, type in the name of the variable you want to use. The name of the variable can be anything that starts with a letter and be as long as you want, however I suggest you limit it to four characters or less because that’s all that will be displayed when you’re choosing the variable. Once you typed in the name, all you have to do is press STO and the variable will be created.

To put the contents of the variable onto the stack, press the VAR button, and then press the soft button for the variable you want to use. If there are more than six variables and you want to see more, press NXT and this will show the next six. If you want to put the actual variable name onto the stack as opposed to the contents, for example if you want to save something else into that variable, first press the ‘ (apostrophe) button and then press the variables soft button. There is a very nice shortcut for saving over variables without having to press so many buttons. First make sure that your variables are visible by pressing VAR. Then put the contents that you want to store onto the stack, then press (but don’t hold) the white shift key, and finally press the variables soft button. This will make variables a lot easier to work with.

The HP 50g can sometimes be a finicky calculator, so it is important to know whether to enter the variable with or without apostrophes. If you want to just use the contents of the variable and don’t care about having the symbolic representation, then just use the variable as described in the earlier section. If you want to keep the variable as a symbol until you are ready to evaluate the expression, then enter the variable with the apostrophe. When you are ready to evaluate the expression on the stack, press EVAL, and this will automatically make the appropriate substitutions and evaluate the expression. Another time that the apostrophe is required is in the matrix writer and also when creating a vector. I find it easier, however, to just use the equation writer for inputting expressions into a matrix, as this takes care of all the formatting and apostrophes for you. Another thing that makes matters more confusing is that if the variable being used is is empty, then the calculator will automatically put apostrophes around it for you and just assume it is a symbolic variable.

If you keep these things in mind, you should be able to find your errors should something go wrong!

### Deleting Variables

Why does deleting variables require its own section? Because it can be tricky and annoying. I would have thought that when creating this calculator HP would have made some easy and quick way to delete variables without jumping through menus, but as far as I know, they didn’t. It could be that they simply expected the user to overwrite variables instead of deleting and re-creating them. I like to keep my calculator organized and I suggest that you remove any variables that aren’t in use to avoid unexpected behaviors should you make a mistake.

To delete a variable you have to first put the variables symbol on the stack. Like explained above, first press the ‘ button, enter the variables name, and then press ENTER. Once the variable is on the stack, press the TOOL button. Next press the PURGE soft button. This will remove the variable from memory. If you want to delete multiple variables, first put them all on the stack, and then keep pressing PURGE until all of them are gone. Eventually you will become very quick at deleting them and it will be less of a hassle.

Another way to delete variables is by using the file browser. This way takes more time for deleting single variables, but can be much faster for deleting large amounts of variables. To open the file browser, press LSHIFT (left shift) and then FILES. This should open up a similar looking screen as below. The only difference will be that I have a folder named WRK that I use to solve random problems in.

Now you have to browse to the folder containing the variables. If you have never changed a directory (directory and folder are synonymous) then your variables will be in the “Home” directory. To change directory, highlight the directory you want to switch to using the arrow keys, and then press the OK soft button. Then press ENTER next to any variable or object that you want to delete to select it. A number will appear to the left of any item to indicate that it’s selected.

Once you have finished making your choices press NXT (which changes to the next page of the soft menus) and then press the PURGE soft button. When it asks you “Are You Sure”, press the ALL soft button. You can also select multiple variables quickly in the file browser by just holding down the ENTER button until it gets to the bottom instead of selecting each variable individually. To exit the file browser press CANCEL (same as the ON button).

### Creating Folders and Deleting Folders

First you have to open up the file browser. Press LSHIFT and then FILES. Next you have to move to the location that you want to create the folder in. Highlight the directory you want to switch to using the arrow keys, and then press the OK soft button. Press NXT to move to the next page of the soft menu, and then select NEW.

Don’t type anything in the “Object:” field. Move down to “Name:” using the arrow keys, type in a name, and press ENTER. Then move down next to “Directory” and press the CHK soft button. If you don’t put a check mark next to “Directory” it won’t work. Then press the OK soft button. The new folder is now created. To switch to that folder to work in, find the folder in the file browser and press the CHDIR soft button. To move up one level of folders, press LSHIFT and then UPDIR. Deleting folders works exactly the same way as deleting variables.

### Accessing Variables and Organizing Folders

Lastly, a quick note about accessing variables in regards to nested folders. A nested folder is a folder that is inside of another folder. A folder inside of another folder is also said to be at a “lower level” than the “higher level” folder containing it. Variables can be accessed from all higher level folders, but not from lower level folders. This is important because it provides a useful way of organizing folders and variables.

An example of this would be to create a folder called “Electrical Engineering”. Inside of that folder you might want to define some equations or create some custom defined constants that you wouldn’t want to accidentally overwrite. Then inside of the “Electrical Engineering” folder you could create another folder called “Work”. When you are working on electrical engineering you would go into “Electrical Engineering > Work”. Now you are free to create whatever variables you want without overwriting anything else, while still being able to access all of your equations and constants. If you organize different folders like this it will be easy to manage everything without having your calculator become a mess.

# HP 50g Basic Graphing Tutorial

Graphing on the HP 50g took me a while to get used to. You have to go through a few separate menus to create a nice looking graph. This threw me for a loop because I was used to a calculator that had most the options for creating a graph in one place. Here is a little guide that will get you acquainted with the very basics of creating a graph on this calculator. There are three main steps.

NOTE: This (and all of my other) tutorial assumes that the calculator is in RPN mode. If you are not using RPN mode, take the time to learn it and you will be very glad you did!

### Entering the Function

The first step is to enter the function. While holding LS (left shift) press F1. This will open up the list of functions to be graphed. Push the ADD soft button to open up the equation editor and enter the equation. Push ENTER to return to the function list. You can add as many functions to be graphed as you want, just keep pushing add and typing them in. In this example we will be graphing $Y1(X)=(X+2)^2$. Your screen should look like this.

### Setting up the Tick Marks

You might be wondering why you would need to adjust the tick marks. A very annoying feature of this calculator is that by default, the ticks correspond to pixels on the screen as opposed to the values of the independent variable. To change these ticks hold LS and press F4. This should open up the “Plot Setup” menu. To change the tick marks to correspond to the independent variable you need to remove the check mark next to “Pixels”. The value of the horizontal and vertical tick marks can be changed by adjusting the values of “H-Tick” and “V-Tick”. The “Plot Setup” menu should now look something like this.

### Setting up the Window

The final step is to set up the dimensions of the window. While holding LS press F2 to open up the “Plot Window” menu. The two values for H-View and the two values for V-View specify the dimensions of the graph. We will want to view the graph from $-5 \lt X \lt 2$ and $-1 \lt Y1(X) \lt 4$. The “Plot Window” menu should now look like this.

Once this is done we are ready to view the graph. press the ERASE soft button and then the DRAW soft button, and the graph should appear! If you don’t press ERASE, the new graph will be drawn over the previous graph and it will become a big mess. To change the window settings, you must first press CANCEL (which is the same button as the ON button). If you don’t first cancel out of the graph, you won’t be able to switch between the graph menus. The final graph should look like this.