a) Define a function to be x^3+3x-4 and define another function to be x^2-5x+10. **Note: Use different names for each function.
b) Plot both functions from part a on the same graph from x=-5 to x=5. Define a range of 0 to 100 with the PlotRange option. Use the PlotLegends option to label the functions with their "Expressions". You may need to refer to the "Lab 3 Functions Continued" instructional notebook or the Documentation Center to see how options are used.
In mathematica
Mathematica CODE:
f[x_] := x^3 + 3*x - 4
g[x_] := x^2 - 5*x + 10
Plot[{f[x] = x^3 + 3*x - 4, g[x] = x^2 - 5*x + 10}, {x, -5,
5},
PlotRange -> {0, 100}, PlotLegends -> "Expressions"]
SCREENSHOT including output plot:
Get Answers For Free
Most questions answered within 1 hours.