第五章 定积分


说明:为了复习高数,该文章是学习课程 《高等数学》同济版 全程教学视频(宋浩老师)而记录的笔记,笔记来源于本人。若有侵权,请联系本人删除。笔记难免可能出现错误或笔误,若读者发现笔记有错误,欢迎在评论里批评指正。参考书籍: 高等数学上册(同济_第7版)

一、定积分的概念(定义、几何意义、近似计算)、性质

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

二、微积分的基本公式(积分上限函数、牛顿-莱布尼茨公式)

在这里插入图片描述

三、定积分的换元法

在这里插入图片描述
在这里插入图片描述
画例(5)两个图的代码需要两个.m文件,一个文件用于放画阴影的函数dohatch,该函数的原代码的链接为:MATLAB怎么实现对一个函数的特定区间加上阴影。另一个文件用于画图,是主文件。
函数dohatch的代码:

function h = dohatch(x,y,angle,color,style,step,width)
%DOHATCH  Hatches a two-dimensional domain.
%   DOHATCH(x,y,ANG,COL,'Style',D,W) is similar to the FILL command
%   but fills the closed contour with hatch lines instead of uniform
%   color. Vectors x and y are the coordinates of the boundary line of
%   the domain to be hatched. Scalar ANG is the slope of the hatches
%   (in degrees). COL is the color of the hatching which could both be
%   a 1-by-3 vector ([red green blue] ), or a color specifier ('r','g',
%   'b', 'w','y','c','m'). 'Style' specifys the linestyle ('-','--','-.',
%   ':'). And also, D is the steps (distances between hatches), W the
%   linewidth (thickness) of the hatch lines (the last two in points).
%
%   H = DOHATCH(...) returns the handle of the hatching.
%
%   Note:
%   This is a simplified version of the function HATCH (File ID: #2075)
%   in MathWorks FileExchange website, running in manual style instead of
%   in automatic style, because the original version still has a few bugs
%   under some circumstances.
%
%   See also: FILL, LINE.

%   Revised by Kastin
%   June, 28, 2015

if nargin>7||nargin<2
    error('MATLAB:dohatch:WrongNumOfInputs',...
        'Wrong number of inputs.')
end

% Here we do not check the validation of inputs any more for clearity. 

% Defaults
angledflt = 45;        % Angle in degrees
colordflt = [1 1 1];   % Color
styledflt = '-';       % Linestyle
widthdflt = 1;         % Thickness of the lines
stepdflt = 10;         % Distance between hatches

if nargin<7, width = widthdflt; end
if nargin<6, step = stepdflt;   end
if nargin<5, style = styledflt; end
if nargin<4, color = colordflt; end
if nargin<3, angle = angledflt; end

angle = angle*pi/180;             % Degrees to radians
x=x(:).'; y=y(:).';
yi = find(~isnan(x)&~isnan(y));
x = x(yi); y = y(yi);             % Remove NaN's
x = [x x(1)]; y = [y y(1)];       % Close loop
ll = length(x);

% Transform the coordinates
oldu = get(gca,'units');
set(gca,'units','points')
sza = get(gca,'pos'); sza = sza(3:4);
xlim = get(gca,'xlim');
ylim = get(gca,'ylim');

islx = strcmp(get(gca,'xscale'),'log');
isly = strcmp(get(gca,'yscale'),'log');
if islx     % If log scale in x
	xlim = log10(xlim);
	x = log10(x);
end
if isly     % If log scale in y
	ylim = log10(ylim);
	y = log10(y);
end

xsc = sza(1)/(xlim(2)-xlim(1)+eps);
ysc = sza(2)/(ylim(2)-ylim(1)+eps);

ca = cos(angle); sa = sin(angle);
x0 = mean(x); y0 = mean(y);  % Central point
x = (x-x0)*xsc; y = (y-y0)*ysc;
yi = x*ca+y*sa;              % Rotation
y = -x*sa+y*ca;
x = yi;
y = y/step;    % Make steps equal to one

% Compute the coordinates of the hatch line
yi = ceil(y);
ll = length(y);
yd = [yi(2:ll)-yi(1:ll-1) 0];
dm = max(abs(yd));
fnd = find(yd);
lfnd = length(fnd);
A = sign(yd(fnd));
edm = ones(dm,1);
A = A(edm,:);
if size(A,1)>1, A = cumsum(A); end
fnd1 = find(abs(A)<=abs(yd(edm,fnd)));
A = A+yi(edm,fnd)-(A>0);
xy = (x(fnd+1)-x(fnd))./(y(fnd+1)-y(fnd));
xi = x(edm,fnd)+(A-y(edm,fnd)).*xy(edm,:);
yi = A(fnd1);
xi = xi(fnd1);

% Sorting points of the hatch line ........................
li = length(xi); 
xi0 = min(xi); xi1 = max(xi);
yi0 = min(yi); yi1 = max(yi);
ci = yi*(xi1-xi0)+xi;
[ci,num] = sort(ci);
xi = xi(num); yi = yi(num);
if floor(li/2)~=li/2
        xi = [xi xi(li)];
        yi = [yi yi(li)];
end

% Organize to pairs and separate by  NaN's
li = length(xi);
xi = reshape(xi,2,li/2);
yi = reshape(yi,2,li/2);
xi = [xi; ones(1,li/2)*nan];
yi = [yi; ones(1,li/2)*nan];
xi = xi(:)'; yi = yi(:)';

% Transform to the original coordinates
yi = yi*step;
xy = xi*ca-yi*sa;
yi = xi*sa+yi*ca;
xi = xy/xsc+x0;
yi = yi/ysc+y0;

hl = line('xdata',xi,'ydata',yi,...
    'color',color,'linestyle',style,'linewidth',width);
set(gca,'units',oldu)   % Set axes units back

if nargout>0, h=hl; end

主文件的代码:

%MATLAB代码
%第一张图
x=-4:0.001:4;y=1/2*x.^2;
figure(1)
hold on;
plot(x,y);plot([-3.5 -3.5],[0 1/2*(-3.5).^2],'--');plot([3.5 3.5],[0 1/2*3.5.^2],'--');%画图
%将坐标轴放到原点
ax = gca;
ax.XAxisLocation = 'origin'; 
ax.YAxisLocation = 'origin'; 
set(gca,'xtick',-5:1:5,'ytick',-1:1:9);%刻度间隔设为1
axis equal;%同样的刻度范围显示出来是等长的
xlabel('x');ylabel('y');%给出x、y轴
legend("y_1=1/2*x^2","x_2=-3.5","x_3=3.5");
%在函数的一个区间内填充阴影
idx=x>=-3.5&x<=3.5;
xi=x(idx);
dohatch([xi xi(end) xi(1)],[y(idx) 0 0],30,'b','-.',8,1)
hold off

%第二张图
x1=-4:0.001:4;y1=1/7*x1.^3;
figure(2)
hold on;
plot(x1,y1);plot([-3.5 -3.5],[0 1/7*(-3.5).^3],'--');plot([3.5 3.5],[0 1/7*3.5.^3],'--');%画图
%将坐标轴放到原点
ax = gca;
ax.XAxisLocation = 'origin'; 
ax.YAxisLocation = 'origin'; 
set(gca,'xtick',-10:1:10,'ytick',-10:1:10);%刻度间隔设为1
axis equal;%同样的刻度范围显示出来是等长的
xlabel('x');ylabel('y');%给出x、y轴
legend("y_1=1/7*x^3","x_2=-3.5","x_3=3.5");
%在函数的一个区间内填充阴影
idx1=x1>=0&x1<=3.5;
x1i=x1(idx1);
dohatch([x1i x1i(end) x1i(1)],[y1(idx1) 0 0],30,'b','-.',8,1)
idx1=x1>=-3.5&x1<=0;
x1i=x1(idx1);
dohatch([x1i x1i(end) x1i(1)],[y1(idx1) 0 0],-30,'b','-.',8,1)
hold off

在这里插入图片描述
在这里插入图片描述

四、分部积分

在这里插入图片描述

五、反常积分(无穷限、无界函数的反常积分)、伽马函数

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
根据以下考纲筛选考试重点**第一章 函数、极限与连续** 1. 函数 (1)理解函数的概念,掌握函数的表示法,会建立简单应用问题中的函数关系。 (2)了解函数的有界性、单调性、周期性和奇偶性。 (3)理解复合函数及分段函数的概念。 (4)掌握基本初等函数的性质及其图形,理解初等函数的概念。 2.数列与函数的极限 (1)理解数列极限和函数极限(包括左极限和右极限)的概念,了解极限的性质。 (2)掌握极限四则运算法则,会应用两个重要极限。 3.函数的连续性 (1)理解函数连续性的概念(含左连续与右连续),会判别函数间断点的类型。 (2)了解连续函数的性质和初等函数的连续性,了解闭区间上连续函数的性质(有界性定理、最大值和最小值定理、介值定理)及其简单应用。 **第二章 导数与微分** 1.导数概念 理解导数的概念及可导性与连续性之间的关系,了解导数的几何意义及物理意义。 2.函数的求导法则 掌握基本初等函数的导数公式、导数的四则运算法则及复合函数的求导法则。 3.高阶导数 理解高阶导数的概念,会求简单函数的高阶导数。 4.函数的微分 理解微分的概念,掌握导数与微分之间的关系,会求函数的微分。 **第三章 导数的应用** 1.洛必达法则 掌握用洛必达法则求未定式极限的方法。 2.函数的单调性、极值、最大值与最小值 (1)掌握函数单调性的判别方法及其应用。 (2)掌握函数极值、最大值和最小值的求法,会求解较简单的应用问题。 **第四章 不定积分** 1.不定积分的概念与性质 理解原函数与不定积分的概念,掌握不定积分的基本性质和基本积分公式。 2.不定积分的方法 掌握不定积分的换元积分法和分部积分法。 **第五章 定积分及其应用** 1.定积分的概念与性质 理解定积分的概念,了解定积分的几何意义、基本性质。 2.定积分的计算方法 理解积分上限的函数并会求它的导数,掌握牛顿-莱布尼茨公式以及定积分的换元积分法和分部积分法。 3. 会利用定积分计算平面图形的面积。
03-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

知乎云烟

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值