play phryzby with physics

Two Unit Vectors Added

solved Vectors

Q. î and ĵ are unit vectorsA=1, B=1 along x- and y- axisφ=90° respectively. What is the magnitude of the vector î + ĵ?

A = 1B = 1R = ?φ = 90°
Outputs
sizeR?

How it's solved

Solved with Vectors

Given

  • A=1 from “unit vectors”
  • B=1 from “unit vectors”
  • φ=90° from “along x- and y- axis”

Find R.

Working
  1. law of cosinesR2=A2+B2+2⋅A⋅B⋅cos⁡φ
  2. R2=12+12+2⋅1⋅1⋅cos⁡90°
  3. R=1.41421356
  4. R≈1.41to 3 significant figures
Conclusion

The two unit vectors are at right angles, so their sum is the diagonal of a unit square, longer than either but shorter than the two laid end to end.

The web of concepts

given read from the words equation asked

The Ruby that solves it

The question and its solution are small Ruby files. The engine runs them.

question.rb
1require_relative "../physics"23question :two_unit_vectors_added do4  kind :numerical5  describes "î and ĵ are unit vectors along x- and y- axis respectively. %{size}?"6  asks size: "What is the magnitude of the vector î + ĵ"7end
solution.rb
1require_relative "../questions/two_unit_vectors_added"2require_relative "../science/motion_in_a_plane/vectors"34solve :two_unit_vectors_added, using: Vectors do5  deduce_from "unit vectors", A: 1, B: 16  deduce_from "along x- and y- axis", phi: "90 deg"7  take size: :R8  answer find_value(:size, figures: 3)910  conclusion "The two unit vectors are at right angles, so their sum is the diagonal of a unit square, longer " \11             "than either but shorter than the two laid end to end."12end
playground.rb
1require_relative "../solutions/two_unit_vectors_added"23play_with :two_unit_vectors_added do4  title "Two Unit Vectors Added"5end
The laws it drew on
quantitywrittenunitswithinfrom
volumevolume——Vectors
massmass——Vectors
speedspeed——Vectors
densitydensity——Vectors
number of molesn——Vectors
angular frequencyangularfrequency——Vectors
workwork——Vectors
currentcurrent——Vectors
temperaturetemperature——Vectors
pressurepressure——Vectors
timetime——Vectors
powerpower——Vectors
total path lengths——Vectors
energyenergy——Vectors
gravitational potentialgravitationalpotential——Vectors
coefficient of frictionμ——Vectors
chargecharge——Vectors
accelerationacceleration——Vectors
velocityvelocity——Vectors
displacementdisplacement——Vectors
angular velocityangularvelocity——Vectors
forceforce——Vectors
angular momentumangularmomentum——Vectors
linear momentumplin——Vectors
electric fieldelectricfield——Vectors
average velocityaveragevelocity——Vectors
magnetic momentmagneticmoment——Vectors
relative velocityvAB——Vectors
impulseimpulse——Vectors
first vectorA—0 … ∞Vectors
second vectorB—0 … ∞Vectors
angle betweenφ—0 … 3.142Vectors
resultantR—0 … ∞Vectors
resultant directionβ—0 … 3.142Vectors
directionα—-3.142 … 3.142Vectors
x componentAx——Vectors
y componentAy——Vectors
A=Ax2+Ay2
magnitude from components
R2=A2+B2+2⋅A⋅B⋅cos⁡φ
law of cosines
R⋅sin⁡β=B⋅sin⁡φ
law of sines
R⋅cos⁡β=A+B⋅cos⁡φ
along the first
Ax=A⋅cos⁡α
resolved along x
Ay=A⋅sin⁡α
resolved along y