A-Level · Computer Graphics

Convex Combinations

Drag either slider to move vector e between c and d. Because α + β = 1, the tip of e always stays on the dashed line connecting the two vector tips.

Interactive convex combination e = alpha*c + beta*d Two sliders control alpha and beta, moving the white arrow e between the yellow vector c and the magenta vector d. y x c d e
α 0.60
β 0.40
c = (2, 9)     d = (10, 7)
e = (α × c) + (β × d) =
About this resource · A-Level

What is a convex combination?

A convex combination of two vectors c and d is a vector e = αc + βd, where α and β are both at least 0 and α + β = 1. Geometrically, the tip of e always lies somewhere on the straight line segment joining the tips of c and d.

Drag either slider and the other adjusts so they still sum to 1. When α = 1, e is exactly c. When β = 1, e is exactly d. Anything in between moves e smoothly along the line. This idea is used in computer graphics to blend colours, interpolate positions and define shapes.

On the AQA specification, convex combinations appear within the vectors topic, alongside vector addition, scalar multiplication and the dot product.

Exam tips

Specification

Vectors and convex combinations, AQA 7517.

Related resources

Browse all free Computer Science resources →

Want one-to-one help with this topic? I'm Damian Biasone, a qualified Computer Science teacher with 20 years' experience, tutoring GCSE and A-Level students online.

AQA A-Level (7517) tuition