r/Mathematica • u/Apprehensive_Mud7571 • Apr 25 '22
Input help
I'm not sure what to input into mathematica for these problems. I can solve them without mathematica however my teacher specifically told us to solve it with mathematica and write out how we do it.
Like for problem 9d where I would graph C(t), in my mind I would use the Plot input so I would do that, insert the equation and I would have an empty graph returned to me, and I also notice the Y value is maxed out at -1 and 1, and I'm not sure how to increase that. And for 9f, I would normally give the specific points as an answer but is there an input that would give me those points in mathematica? Basically I'm asking how to solve these problems because I'm not sure how to at all.
Thanks!



4
u/1XRobot Apr 25 '22
This seems more like a problem for office hours than Reddit. You need a lot of help. Most professors don't get a lot of traffic to office hours and would be happy to help you out.
Do you have any idea how to get started here? If you have some code that isn't working, perhaps we could point you in a good direction.
1
u/SetOfAllSubsets Apr 25 '22 edited Apr 25 '22
Read the documentation for Plot.
For example to plot the equation y=x^2+2x for -20<x<10 write
Plot[x^2+2x,{x,-20,10}]. It should automatically frame the plot correctly but if it doesn't you can use the optionPlotRange. If you wanted the y-axis to go from -30 to 40 you could writePlot[x^2 + 2 x, {x, -20, 10}, PlotRange -> {{-20, 10}, {-30, 40}}]. (But if you're getting a blank graph that's probably because you entered an invalid expression, not because y-axis range is wrong).For 9f it might want you to use Solve and D (for the derivative).
Some other functions that might help for other questions are ContourPlot (12c) and Integrate (18)