Professional Documents
Culture Documents
Steps:
3 2 1 1 2 3
3 2 1 1 2 3
Steps:
Steps:
Steps:
Steps:
Since we know that the equation of Standard normal Curve f[x]= and range, x=-
√
3 to x=3
Use following command to plot it
QN 7 Plot the graph of x2, -x2and Sin[10 x] on the interval [-2π, 2π].
Steps:
Steps:
QN 9 Plot a parametric curve (Sin(t), Cos(t), t/3) , the value of 't' ranged from 0 to 13 in
3D.
Steps:
QN. 10 Sketch the surface of revolution generated when the curve z = x from x=, 0 to
x = 4, is rotated about the z-axis.
Steps:
QN 11. Use Manipulate to control the graph of f(x) = a sin (b x + c), 0 ≤ x < 2 π, with
controls for a, b, and c varying between 1 and 10. Move the sliders and observe the
affect upon the graph.
Step:
QN. 12 Show that the function f(x)= (x^3+2x^2+15x+2) Sinπx satisfies Rolle's Theorem on
the interval [0, 1] and find the value of c referred to in the theorem
Steps:
Open the mathematica notebook
Mathematica automatically puts us into Input mode
First to test whether given equation satisfies Rolle’s theorem or not
Type f[x_]:= 3 + 2 + 15 + 2 Sin G
Then calculate f[0] and f[1]
Now to find root use following command and then press Shift+Enter key
FindRoot[f’[c]==0,{c,0,1}]
To plot the [x] and f[c] together we use the following command
Plot[{f[x],f’[c]},{x,0,1}] and press Shift +Enter Key
QN. 13 Sketch the graph of f (x) = x4-50x2+300 and its derivative, on the set of axes for-
10<x<10
Steps:
Type f[x_]=x^4-50x^2+300
t[x_,h_]:=f[h]+f'[h](x-h)/;h-0.5<x<h+0.5
then use the following command for complete action
Manipulate[ Show[Plot[{f[x],t[x,h]},{x,-10,10},PlotStyle-
>{Red,{Green,Thickness[0.01]}}],Graphics[{PointSize[0.02],Po
int[{h,f[h]}]}]],{h,-10,10}]
Steps:
To find area between these curve using mathematica ,we need to see where they intersect
and if so where by plotting graphs
Clear[f,g,x]
x_ = 1 − ^2
x_ = ^4 − 3 ^2
Notice that f is graphed in red where g is in blue
Filling option in the command fills in the reason between two graphs in Yellow. The
bounded reason between two curves seems to lie between x=-2 and x=2 To ascertain this,
we solve for the intersection points in order to obtain limits of the integration
Make a sure that Solve command works properly due to both are algebraic equations.
To solve type: point = Solve ==
Hence, the intersection points are: and noting that f(x) is greater than g(x) in that
interval[-2, 2]
We need to single integral for calculating area between these two curves and on [ -2, 2]
the area given by
J
IK − //M and Press Shift +Enter Key
Steps:
QN 16 Plot the straight line 2x+3y=1 in mathematica using Contour Plot. Show axes and
axes level.Take a range from -2 to 2
Steps:
QN 17 Solve and Plot two linear equations, x+y=7 and x-y=1 in mathematica using solve
and contour plot command. Show Axis and intersection point. Take range from -6 to 6.
Steps:
Steps:
QN 19 Plot a helix ( a Sin[u],a Cos[u],u/10) using parametric plot 3D. And manipulate the
parameter 'a' from 1 to 5.
Solution:
QN 20 Plot the surface, (u+v, u-v, u2+v2) ,using parametric plot D,where u and v ranges
from -3 to 3
Solution:
QN 21 Sphere Plot
Steps:
Steps:
To plot Tangent Plane and measure its movement in the surface we use the following
commands
Show
Manipulate
Graphics3D
Arrow
ParametricPlot3D
And other well-known Commands which we use in the foregone section
To perform the complete action type the following command and press Shift +Enter Key
Manipulate Show ParametricPlot3D {Z + [, Z − [, Z
+ [ }, {Z, −3,3}, {[, −3,3}, BoxRatios → {1,1,1}, PlotStyle
→ Yellow, AxesLabel → {S − Axis, T − Axis, ] − Axis}, ImageSize
→ Large , Graphics3D {Red, PointSize 0.02 , Point {Z + [, Z − [, Z
+ [ } }/. {Z → a, [
→ b} , Graphics3D Arrow {{Z + [, Z − [, Z + [ }, {1 + Z + [, 1 + Z
− [, 2Z + Z + [ }}/. {Z → a, [
→ b} , Graphics3D Arrow {{Z + [, Z − [, Z + [ }, {1 + Z + [, −1 + Z
− [, Z + 2[ + [ }}/. {Z → a, [
→ b} , ParametricPlot3D {Z + [, Z − [, Z + [ } + {1,1,2Z}
+ c{1, −1,2[} /. {Z → a, [ → b}, { , −2,2}, {c, −2,2}, PlotStyle
→ Blue , {a, −3,3}, {b, −3,3}
QN 24
QN 25 Continuous probability
Steps:
Steps:
Steps:
h=x2+y2+z2-4;
g=(x-1)2+y2-1;
ContourPlot3D[{h==0,g==0},{x,-2,2},{y,-2,2},{z,-
2,2},BoxRatios->{1, 1, 1},AxesLabel->{X-Axis,Y-Axis,Z-
Axis},PlotRange->Full]
Steps:
QN 30 Plot a helix (a Sin[u], a Cos[v], uv) using Parametric Plot 3D. And Manipulate the
parameter 'a' from1 to 5.
Solution:
QN 31 Limit of a function
Steps:
Steps:
QN 33 Test of Limits
Steps:
To test Left hand and right hand limit, we calculate both in separate way but first we are
going to calculate limit of a function for this
Type limit=Limit[Abs[x] /x, x->0]and press Shift + Enter Key
For calculating Right Hand limit, we use the following
rightlimit=Limit[Abs[x] /x, x->0,Direction->-1] and press Shift +Enter Key
for calculating Left Hand Limit, we use following commands
leftlimit=Limit[Abs[x]/x,x->0,Direction->1] and press Shift+Enter Key
to check these all are equal or not
type limit=rightlimit=leftlimit and press Shift+ Enter Key
if the result is false then these values are not equal , true these are equal
Steps:
QN 35 Application of Integration
Consider the semi circle x2+y2=16, y>= 0 shown in the figure. Find the height h, so that the
shaded area is 25% of the total area.
Solution:
First we plot the given equation of semicircle using ContourPlot command and also use
manipulate command for manipulate the height h
For this type Manipulate[ContourPlot[{x^2 +y^2 ==16,y==h}, {x,-
4.1,4.1},{y,0,4.1},AspectRatio->Automatic], {h,0,4}]
To find out the value of y we use solve command as
Solve[x^2 +y^2 ==16,y] and press Shift+ Enter Key
The we get two values of y but we take only positive value
Now we can define function as f[x_]:= Sqrt[16-x^2]; and press Enter Key
In order to find area of the function we use the following Command
2*Integrate[f[x],{x,0,h}, Assumption->0<h<4] and press Shift+Enter Key
Since our area base fully dependable in the value of h so we input it as A[h_]:=
And type A[4] and press Shift +Enter Key
To plot it in the graph we use simply Plot Command as
Type Plot[A[h],{h,0,4}] and press Shift+ Enter Key
To find the value of h
Type FindRoot[A[h]==2pi,{h,1}] and Press Shift +Enter Key
QN 36 Formula Expansions
Steps: