<p>Sarorah:</p>
<ol>
<li>I don't think the answer is 255 miles. If the plane had continued on its original heading of N 25 W after the first 120 miles, it would be exactly 120+135 = 255 miles from its original position. Since it deviated from its original course, it will be < 255 miles from the start.</li>
</ol>
<p>Let A be the starting point, and let B be the ending point after the first leg. Extend AB arbitratrily beyond B, and draw BC at an angle of (47-25) = 22 degrees away from AB<em>extended, so that BC (the second leg of the trip) = 135. Now drop a line from C to AB</em>extended, so that it ends at a point D on AB_extended, and angle CDB is 90 degrees. BCD should now be a right-angled triangle, with angle B = 22 degrees, and BC = 135 .</p>
<p>Now, BD = BC cos(B) = 135 cos(22 degrees)
and CD = BC sin(B) = 135 sin( 22 degrees)</p>
<p>Draw the line AC. This is the hypotenuse of a larger right-angled triangle ACD, and length(AC) = distance of C from the starting point A.</p>
<p>AC^2 = CD^2 + AD^2
so AC = sqrt( CD^2 + (AB + BD)^2 )
= sqrt( (135 sin(22))^2 + (120 + 135 cos(22))^2 )</p>
<p>Plug in the numbers for sin(22) and cos(22), and see what you get.</p>
<ol>
<li>If I understand your question correctly, you need to solve for x so that
[tan(x)]^2 = sqrt(2) sec(x) /2
or [sin(x) / cos(x)]^2 = 1/ (sqrt(2) .cos(x))
[sin(x)]^2 = cos(x) / sqrt(2)
1 - [cos(x)]^2 = cos(x) / sqrt(2)</li>
</ol>
<p>For simplicity, set y = cos(x). Then the equation becomes
1 - y^2 = y / sqrt(2)
sqrt(2) - sqrt(2).y^2 - y = 0
sqrt(2).y^2 + y - sqrt(2) = 0</p>
<p>This is a quadratic in y, solve:
y = [ -1 +/- sqrt( 1 + 4 sqrt(2)sqrt(2)) ] / [2 sqrt(2)]
= -1 +/- sqrt(9) / [2 sqrt(2)]
= 2 / 2 sqrt(2) or -4 / 2 sqrt(2)
= 1 / sqrt(2) or - sqrt(2) ; discard the latter, it's > 1 and infeasible for cos(x)</p>
<p>So y = cos(x) = 1/sqrt(2) , implying that x = 45 degrees or 315 degrees
In radians, that's pi/4 or 7 pi/4 .</p>