Algebraic Problem:
If A is a real constant then how many solutions does the equation
A*x^3+(2-A)*x^2-x-1
have?
First let us define the left-hand side of the equation as a function f(x).
...and check that it is working correctly:
If we fix a value for A then we can get MATHEMATICA to sketch the graph
of f(x) for us.
For example if A=-2 we obtain:
From this graph we can observe that the equation has three solutions when A=-2.
Does this agree with the algebraic solution we found?
Next we will sketch the graphs of f(x)for a range of A values between -5 and 5,
and then animate the results.
By adding modifiers to the basic plot command we can get an output
that's easier to analyze.
And then we can use this to verify the algebraic solutions that we found.
Here's a different way to examine the solutions of our equation:
The idea is to graph the equation
A*x^3+(2-A)*x^2-x-1
in the xA-plane. Then for specific values of A the number of solutions to the
equation will correspond to the number of intersections of the graph with a horizontal
line in the xA-plane.
Notice that if the original cubic equation were to change we could still run the same MATHEMATICA routines to analyze the solutions, even though a complete algebraic solution may now be very difficult or impossible.
For example, for the quartic equation
A
+ (2-A)
- x - 1 = 0
we would obtain:
| Created by Mathematica (August 22, 2006) |