math210 final formula sheet

  • 格式:docx
  • 大小:15.94 KB
  • 文档页数:2

Animation
with(plots):
animate(implicitplot,[x^2-y^2=A
,x=-2..2,y=-2..2,numpoints=500],
A=-2..2, frames=51);

animate(plot, [f(x+t), x=-3..3], t=-2..2, view=[-3..3,-10.
.10], frames=51, title="Horizontal translation");

Plot
plot({f(x),g(x)},x=-2..6);
plot(x^3-x+2,x=-3..3,view=[-3..3,0..5],font=[TIMES,ROMAN,
15], title="A cubic function");

plot({x^3-x+2, -x^3+x-2}, x=-3..3);
with(plots):
p1:=plot(x^3-x+2, x=-3..3, legend="f(x)", color=red,
thickness=3):
p2:=plot(-x^3+x-2, x=-3..3, legend="-f(x)", color=blue,
thickness=3, linestyle=dot):
display(p1, p2, title="Reflection about x-axis",
font=[TIMES,
ROMAN,15],
legendstyle=[location=right,font=[TIMES,ROMAN,15]]
);
Eval
eval(A, {x = 2, y = 1/4});

Antiderivative
assume(x>0);
F:=unapply(int(f(s),s=0..x),x);
plot(F(x),x=0..2*Pi);
Cubic approximation
Hw3 problem 7

Partial fraction
convert(p,parfrac);

slant asymptote
m1:=limit(f(x)/x,x=infinity);
m2:=limit(f(x)/x,x=-infinity);
b1:=limit(f(x)-m1*x,x=infinity); b2:=limit(f(x)-m2*x,x=-
infinity);

Cauchy principle value
Hw4 problem 8

Direction field
diffeqn:=x*diff(y(x),x) + y(x) = 2*x;

with(DEtools):
DEplot(diffeqn, y(x), x=-3..3, y=-3..3,
[[y(1)=0],[y(1)=1],[y(1)=2]]);

Nemerical sol for diff equation
dsolve({diffeqn,ic}, theta(t), numeric);

with(plots):
odeplot(sol, [t,theta(t)], t=0..10);

orthogonal trajectories
hw5 problem 4

resonance
hw5 problem 5

cubic spline
hw5 problem 6