A vector is a directed line segment described by its components (a, b), where a = x2 - x1 and b = y2 - y1. Its magnitude is sqrt(a^2 + b^2). Scalar multiplication k*(a, b) = (ka, kb) produces a parallel vector. Vector addition (a1 + a2, b1 + b2) can be visualized tip-to-tail. The dot product of (a1, b1) and (a2, b2) is a1a2 + b1b2, which equals the product of the magnitudes times the cosine of the angle between them. If the dot product is zero, the vectors are perpendicular. A unit vector in the direction of (a, b) is (a, b) divided by its magnitude. The standard unit vectors are i = (1, 0) and j = (0, 1). A vector-valued function p(t) = (x(t), y(t)) gives the position of a particle at time t. The velocity vector is v(t) = (x'(t), y'(t)), and the speed is its magnitude. The sign of x'(t) tells you left or right; the sign of y'(t) tells you up or down.
Given u = (3, -4) and v = (2, 1), find the dot product, the angle between them, and the unit vector in the direction of u.