As we noted in Chapter 1, in this book we are limiting ourselves to mathematical tools that the student can reasonably expect to find in a generic work environment. That is one of the reasons for focusing on using spreadsheets and Excel. However, we will also look at using free web tools, particularly as a means of doing symbolic manipulation. Differentiation is one of those operations that can be done with free tools available on the web. The student in this course will be expected to routinely do symbolic differentiation by hand. However, it is good to be able to check your work. We also want tools that will work reliably with messier problems.
In working with derivatives, we have looked at three basic problems:
Given a function, find a formula for its derivative. A related question is finding the marginal function.
Given a function, find the value of the derivative at a particular point. We do this when we want a rate of change at a particular point.
Given a function, find where the derivative is 0. We do this when we are trying to find minimum or maximum values of the function.
There are a number of websites that will take symbolic derivatives. We start with Wolfram|Alpha, which is available at http://www.wolframalpha.com 1 .
Example4.4.1.A simple derivative with Alpha.
Use Wolfram|Alpha to find the derivative of \(x^3+5x+7\text{.}\)
When you call the website, you get an input bar much as you would with your favorite search engine.
The interface for Wolfram|Alpha is rather robust. While Wolfram|Alpha lets you use a Math Input pallette, we can ask the question in plain English. In our case, we would like to find the derivative of \(x^3+5x+7\) with respect to \(x\text{.}\) Some of the ways of asking that question are:
find the derivative of (x^3+5x+7)
find the derivative of (x^3+5x+7) with respect to x
derivative of (x^3+5x+7)
differentiate (x^3+5x+7) with respect to x
differentiate (x^3+5x+7)
D (x^3+5x+7)
d/dx (x^3+5x+7)
(x^3+5x+7)’
For all of these, the website provides the same answer.
Note that the response tells us the question that Wolfram|Alpha is answering. This helps us check that we have been properly understood.
It is worthwhile to note that Wolfram|Alpha has an option to show step-by-step solutions with a paid subscription. Alternatives can be found by searching for "symbolic derivative calculator".
Wolfram|Alpha understands the convention that the variable for math problems is typically \(x\text{.}\) If we don’t specify the variable with respect to which we are differentiating, it will guess that \(x\) is our variable. Other letters are treated as constants unless we use function notation with parentheses. Thus we can use Wolfram|Alpha to check our differentiation rules.
It should be noted that Wolfram|Alpha will not work with long variable names like Principal or MonthlyPayment. We simply need to change variables to work with Wolfram|Alpha.
We want to evaluate the derivative with respect to \(q\) when \(q=1000\text{.}\)
Thus, when \(\quantity=1000\text{,}\) increasing production by 1 widget increases cost by $12.
The third basic derivative problem was to find a maximum or minimum. For extrema problems, we want to find where the derivative is 0, since the extrema can only occur at endpoints and critical points.
Example4.4.4.Exploring a business example.
The cost and demand price functions of widgets are given by:
When looking for a maximum, we always start by looking at a graph of the function in question.
From the graph, it is clear that we have a single maximum for the profit function and it occurs near \(q=200\text{.}\) To find this point, we want to take the derivative and set it equal to zero, or we want to use the solve command on the derivative. We enter the command
solve(derivative 100q/(1+.01q)-(2000+10q+.001q^2 ) with respect to q)
.
We need to do a bit of interpretation since Wolfram|Alpha is using numerical methods with complex numbers. In particular, the answers have a zero imaginary part. We are also looking for a positive number. Thus, we conclude profit is maximized at 209.8 widgets.
In looking at free software on the web for taking derivatives we started with Wolfram|Alpha because we can use it throughout the book when Excel does not solve our needs. It is also supported by the company that produces Mathematica®, so it should stay available for the foreseeable future. Another useful source are the solvers from Symbolab https://www.symbolab.com/solver 2 . Symbolab has a collection of solvers for the topics in this course.
It also has a section that lets you do drill and practice with the techniques we have learned. Like Wolfram|Alpha, it gives the option of step-by-step solutions. I find the site a bit more user friendly for math students.
For individual problems we may want to use other software. For finding derivatives, a quick web search found http://www.derivative-calculator.net/ 3 which is nicer if you are simply checking your work. As with Wolfram|Alpha, the derivative calculator shows you the problem in math form so you can check your syntax.
However, the show steps formatting is nicer since hovering over one step shows the change for that step in the next line.
You may find other websites for doing derivatives as well.
This question checks your reading comprehension of the material is section 4.4, Differentiation Using Computer Algebra, of Business Calculus with Excel. Based on your reading, select all statements that are correct. There may be more than one correct answer. The statements may appear in what seems to be a random order.
The free tools for differentiation all use the same syntax.
Desmos is a free tool available on the web that does symbolic differentiation.
Wolfram|Alpha is a free tool available on the web that does symbolic differentiation.
Differentiation can be done with free tools available on the web.
Some free tools give step by step work for symbolic differentiation.
Symbolab is a free tool available on the web that does symbolic differentiation.
None of the above
ExercisesExercises: Differentiation Using Computer Algebra Problems
Wolfram returns several forms (they differ by some simple algebra). We can choose the one that has the form we find most useful. In this case we could choose for instance:
Note that Wolfram allows us to copy the text. Hover over the answer and under “A” and you will find plaintext that can be copied. This can be edited into a word document or an Excel document.
Wolfram does not work well with whole word variables. Edit the equation (you can do this in Wolfram) and let \(\price = P(q)\) and \(quantity = q\text{.}\) This gives the following derivative:
We set the derivative equal to 0. The general answer is complicated but the real valued answer is what we are looking for.
So the critical point is at \(q = 613.965\text{.}\)
We want to graph over some interval that contains \(q = 613.965\text{.}\) Big pictures are usually nice, so let’s choose the interval \([0,1500]\text{.}\)
The function has a (local) maximum at the critical point.