MVC lecture 5&6
MVC lecture 5&6
Lecture 5,6
dated 24&25-02-2025
Course Title:- Multi-Variable Calculus
Class:- BS-Computer Science – Fall-23-A
Semester : Spring 25
1
12.5 Equations of Lines and Planes
Equations of Lines and Planes
Figure 1 4
Equations of Lines and Planes
But, since a and v are parallel vectors, there is a scalar t
such that a = t v. Thus
Figure 2
6
Equations of Lines and Planes
If the vector v that gives the direction of the line L is written
in component form as v = a, b, c, then we have
t v = t a, t b, t c.
where t
or r = (5 + t) i + (1 + 4t) j + (3 – 2t) k
9
Example 1 – Solution cont’d
x=5+t y = 1 + 4t z = 3 – 2t
10
Equations of Lines and Planes
The vector equation and parametric equations of a line are
not unique. If we change the point or the parameter or
choose a different parallel vector, then the equations
change. For instance, if, instead of (5, 1, 3), we choose the
point (6, 5, 1) in Example 1, then the parametric equations
x=5+t y = 1 + 4t z = 3 – 2t
of the line become
x=6+t y = 5 + 4t z = 1 – 2t
11
Equations of Lines and Planes
Or, if we stay with the point (5, 1, 3) but choose the parallel
vector 2i + 8j – 4k, we arrive at the equations
x = 5 + 2t y = 1 + 8t z = 3 – 4t
12
Equations of Lines and Planes
Another way of describing a line L is to eliminate the
parameter t from Equations 2.
13
Equations of Lines and Planes
Notice that the numbers a, b, and c that appear in the
denominators of Equations 3 are direction numbers of L,
that is, components of a vector parallel to L.
14
Equations of Lines and Planes
In general, we know from Equation 1 that the vector
equation of a line through the (tip of the) vector r0 in the
direction of a vector v is r = r0 + t v.
If the line also passes through (the tip of) r1, then we can
take v = r1 – r0 and so its vector equation is
r = r0 + t(r1 – r0) = (1 – t)r0 + tr1
The line segment from r0 to r1 is given by the parameter
interval 0 t 1.
15
Planes
16
Planes
Although a line in space is determined by a point and a
direction, a plane in space is more difficult to describe.
Figure 6
18
Planes
The normal vector n is orthogonal to every vector in the
given plane. In particular, n is orthogonal to r – r0 and so
we have
Solution:
Putting a = 2, b = 3, c = 4, x0 = 2, y0 = 4, and z0 = –1 in
Equation 7, we see that an equation of the plane is
2(x – 2) + 3(y – 4) + 4(z + 1) = 0
or 2x + 3y + 4z = 12
To find the x-intercept we set y = z = 0 in this equation and
obtain x = 6. 21
Example 4 – Solution cont’d
Figure 7
22
Planes
By collecting terms in Equation 7 as we did in Example 4,
we can rewrite the equation of a plane as
23
Planes
Two planes are parallel if their normal vectors are parallel.
For instance, the planes x + 2y – 3z = 4 and
2x + 4y – 6z = 3 are parallel because their normal vectors
are n1 = 1, 2, –3 and
n2 = 2, 4, –6
and n2 = 2n1.
If two planes are not parallel,
then they intersect in a straight
line and the angle between the
two planes is defined as the
acute angle between their
Figure 9
normal vectors
(see angle in Figure 9). 24
12.6 Cylinders and Quadric Surfaces
26
Cylinders
27
Cylinders
A cylinder is a surface that consists of all lines
(called rulings) that are parallel to a given line and pass
through a given plane curve.
30
Quadric Surfaces
31
Quadric Surfaces
A quadric surface is the graph of a second-degree
equation in three variables x, y, and z. The most general
such equation is
Solution:
By substituting z = 0, we find that the trace in the xy-plane
is x2 + y2 /9 = 1, which we recognize as an equation of an
ellipse. In general, the horizontal trace in the plane z = k is
34
Example 3 – Solution cont’d
The ellipsoid
Figure 4
35
Example 4
Use traces to sketch the surface z = 4x2 + y2.
Solution:
If we put x = 0, we get z = y2, so the yz-plane intersects the
surface in a parabola. If we put x = k (a constant), we get
z = y2 + 4k2.
This means that if we slice the graph with any plane parallel
to the yz-plane, we obtain a parabola that opens upward .
Similarly, if y = k, the trace is
z = 4x2 + k2,
which is again a parabola that opens upward.
36
Example 4 – Solution cont’d
Solution:
The traces in the vertical planes x = k are the parabolas
z = y2 – k2, which open upward. The traces in y = k are the
parabolas z = –x2 + k2, which open downward.
38
Example 5 – Solution cont’d
Figure 6
39
Example 5 – Solution cont’d
40
Example 5 – Solution cont’d
Figure 8
Solution:
The trace in any horizontal plane z = k is the ellipse
z=k
but the traces in the xz- and yz-planes are the hyperbolas
42
Example 6 – Solution cont’d
Figure 9
43
Quadric Surfaces
The idea of using traces to draw a surface is employed in
three-dimensional graphing software for computers.
44
Quadric Surfaces
Table 1 shows
computer-drawn
graphs of the six
basic types of quadric
surfaces in standard
form.
46
Applications of Quadric Surfaces
47
Applications of Quadric Surfaces
48