Skip over navigation
Cambridge University Faculty of Mathematics NRich logo
menu search
  • Teachers expand_more
    • Early years
    • Primary
    • Secondary
    • Post-16
    • Events
    • Professional development
  • Students expand_more
    • Primary
    • Secondary
    • Post-16
  • Parents expand_more
    • Early Years
    • Primary
    • Secondary
    • Post-16
  • Problem-Solving Schools
  • About NRICH expand_more
    • About us
    • Impact stories
    • Support us
    • Our funders
    • Contact us
  • search

Or search by topic

Number and algebra

  • The Number System and Place Value
  • Calculations and Numerical Methods
  • Fractions, Decimals, Percentages, Ratio and Proportion
  • Properties of Numbers
  • Patterns, Sequences and Structure
  • Algebraic expressions, equations and formulae
  • Coordinates, Functions and Graphs

Geometry and measure

  • Angles, Polygons, and Geometrical Proof
  • 3D Geometry, Shape and Space
  • Measuring and calculating with units
  • Transformations and constructions
  • Pythagoras and Trigonometry
  • Vectors and Matrices

Probability and statistics

  • Handling, Processing and Representing Data
  • Probability

Working mathematically

  • Thinking mathematically
  • Developing positive attitudes
  • Cross-curricular contexts

Advanced mathematics

  • Decision Mathematics and Combinatorics
  • Advanced Probability and Statistics
  • Mechanics
  • Calculus

For younger learners

  • Early Years Foundation Stage

Pinhole Camera

Age 11 to 14
Challenge Level Yellow star
  • Problem
  • Getting Started
  • Student Solutions
  • Teachers' Resources
geometric diagram of pinhole camera
The diagram shows an object (a candle), the pinhole and the screen.

The candle has height h, and is a distance d from the pinhole.

The pinhole is a distance D from the screen.

The image is height H on the screen.

The red lines show the path of rays of light from the candle to the image.



You should notice that the image is upside down - can you see why?
As the length D is increased (keeping d constant) the height H should increase proportionately.
(Imagine what would happen to the rays of light if you moved the screen away from the pinhole.)
If you draw a graph of H against D it should be a straight line.

The two red triangles made by the rays of light, the candle and the screen are similar. 
One of the conditions for similarity is equal angles, which are marked in the same colour.
The two green angles are the same because they are enclosed within the same straight lines (opposite angles).
The two turquoise angles are the same because the lines marked h and H are parallel, and these two angles are therefore equal (alternating angles).
The two orange angles are equal for the same reason (alternating angles).

Because the two red triangles are similar, the sides and the heights of the triangles are in proportion, so: 
$$ \frac{H}{h} = \frac{D}{d} $$

This can be rearranged to give:
$$ H = \frac{h}{d}D $$

Drawn as a graph, with H on the vertical axis and D on the horizontal axis, provided h and d are held constant, this should give a straight line through the origin, with gradient h/d. 
  • Tech help
  • Accessibility Statement
  • Sign up to our newsletter
  • Twitter X logo

The NRICH Project aims to enrich the mathematical experiences of all learners. To support this aim, members of the NRICH team work in a wide range of capacities, including providing professional development for teachers wishing to embed rich mathematical tasks into everyday classroom practice.

NRICH is part of the family of activities in the Millennium Mathematics Project.

University of Cambridge logo NRICH logo