Doug C. answered 10/24/25
Math Tutor with Reputation to make difficult concepts understandable
Consider the base of the box in the x-y plane.
Let one corner of the box be located at (0,0,0).
Moving along the x-axis for a length of 15 takes you to (15,0,0).
Along the y-axis for a width of 7-> (15,7,0).
The vector from the origin to that far corner is <15,7,0> which is the diagonal of the base.
From that far corner move up 16 in the z direction for the height -> (15,7, 16).
The vector from the origin to that point is <15,7, 16>. This represents the diagonal of the box.
We want to find the angle between the vectors v1=<15,7,0> and v2=<15,7,16>.
cosθ= (v1dot v2)/(|v1||v2|)
The dot product is: (15)(15) + (7)(7) + (0)(16) = 274
Magnitude of v1= √(152+72+02) = √274
Magnitude of v2= √(152+72+162) = √530
cosθ = (274)/[√274 √530] ≈ 0.719013999916
θ = cos-1(0.719013999916) ≈ 0.768413765187
This Desmos 3D graphs helps picture the diagonals:
desmos.com/3d/h7jlmgrkq9