If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Optimization: area of triangle & square (Part 1)

AP.CALC:
FUN‑4 (EU)
,
FUN‑4.B (LO)
,
FUN‑4.B.1 (EK)
,
FUN‑4.C (LO)
,
FUN‑4.C.1 (EK)
Sal constructs an equilateral triangle & a square whose bases are 100m together, such that their area is the smallest possible. Created by Sal Khan.

Want to join the conversation?

  • leaf green style avatar for user scott.t.petersen
    Would it not have been much easier (and faster) to recognize a 30-60-90 triangle at and use simple geometry to realize the sides are at ratios of 1, 2, sqrt(3) -> as S/2, S, (S/2)*Sqrt(3)?
    (14 votes)
    Default Khan Academy avatar avatar for user
    • male robot hal style avatar for user Jesse
      Absolutely. But you can learn to trust a new method by first ensuring that it is consistent with other methods in cases where you can apply the other method. Then when you are outside of a familiar context, you can apply the more general method.
      (24 votes)
  • spunky sam blue style avatar for user Vincent
    h can be found way faster by using s * sin(60)

    I don't understand why this long method is shown, what is the advantage?
    (5 votes)
    Default Khan Academy avatar avatar for user
    • piceratops ultimate style avatar for user Just Keith
      The method shown can be adapted to a variety of triangles and quadrilaterals, so it is good to know a general method. You can only use the sine if you know the angle.

      So, while use of the sine might have made this particular problem a little simpler, it wouldn't help in a more general case. Though, I would concur that it would be good to know both methods, so that you can choose whatever happens to be easier for a particular problem.
      (17 votes)
  • blobby green style avatar for user Nick Ketter
    Instead of using his "aside" with the triangle beginning at , I did something similar but using x/3 instead of 'S'. In other words, I said:
    Using the Pythagorean Theorem: ((x/3)/2)^2+h^2 = (x/3)^2
    h^2 = (x/3)^2-(x/6)^2
    h = x/3-x/6
    h=x/6

    Obviously this differs from Sal's answer but I can't figure out why?
    (3 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user princessfifi39
    would you use the same formula for an isoscles triangle
    (0 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user ktbric13
    How would you do this same problem but with a circle instead of a triangle?
    (3 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user Jack Parker
    Near the beginning of the video, Sal decides arbitrarily to call "x" the length of the left-hand section of wire (the one that the triangle will be formed from). What if we chose to call "x" the length of the side that the square was made out of? It seems to me that how you choose to define "x" and which shape you make out of which section ("x" vs "100-x") affects the character of the function used to find the combined area. If the problem didn't stipulate which side the square was made from and which side the triangle was made from, wouldn't you have to work through the entire problem both ways in order to be sure that you'd effectively minimized it?
    (2 votes)
    Default Khan Academy avatar avatar for user
  • male robot johnny style avatar for user jonathan bernal
    i am so lost @ for the combined area of the triangle and square we added the two area's together. why is he multiplying by (x/3)^2 when he already found the area to be ( squareroot of 3/ 4 ) ?
    (2 votes)
    Default Khan Academy avatar avatar for user
    • leafers ultimate style avatar for user TripleB
      The area is not √3/4
      It's √3/4 s²
      And he determined earlier that
      s = x/3

      In this problem there are some unknowns. You aren't trying to calculate the area as a number because you may not have enough information to do that initially.
      So Sal is creating a function for finding the area.

      It may help to watch the next video in which he calculates the actual area.
      (2 votes)
  • piceratops ultimate style avatar for user Joshua Ogunmefun
    At when Sal says," We are going to minimize the combined area of the triangle and the square" Does he mean he wants to find the smallest possible area of the square and triangle combined?
    (2 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user Ella Jones
    why don't you use the equation 1/2 ab sin(c) to find the area of the triangle? is it not the same answer?
    (2 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user Ehden
    I paused the video and tried it my way. Not sure if it's correct though.

    I set the sides of the triangle to x and the sides of the square to y. From there, I set the combined area as, f(x) = √3/4 x² + y².

    I related x and y with the equation 100 = 3x + 4y. From there, I solved for y, and substituted it in for y in f(x). Then I found the critical points and used the 2nd derivative test. Is my method correct?
    (1 vote)
    Default Khan Academy avatar avatar for user
    • duskpin sapling style avatar for user Vu
      When you do optimization problem, you want to have 1 variable. So instead of calling x and y. You can call one piece of the wire x, then the remaining piece must be 100-x.
      Now when you make an equilateral triangle from x, then each side is not x but x/3. So the area is (√3s²)/4 and s=x/3, similarly, the side of the square is going to be the second piece divide into 4, or (100-x)/4, and the area is s² or [(100-x)/4)²

      Then take the derivative and find the critical number, then use either first or second derivative test of your choice. However, this is a close interval, [0,100], So you want to include the lower bound, 0, and the upper bound, 100 (in other words, endpoints) as your critical numbers.
      (2 votes)

Video transcript

Let's say that I have a 100 meter long wire. So that is my wire right over there. And it is 100 meters. And I'm going to make a cut someplace on this wire. And so let's say I make the cut right over there. With the left section of wire-- I'm going to obviously cut it in two-- with the left section, I'm going to construct an equilateral triangle. And with the right section, I'm going to construct a square. And my question for you and for me is, where do we make this cut in order to minimize the combined areas of this triangle and this square? Well, let's figure out. Let's define a variable that we're trying to minimize, or that we're trying to optimize with respect to. So let's say that the variable x is the number of meters that we decide to cut from the left. So if we did that, then this length for the triangle would be x meters, and the length for the square would be, well, if we use x up for the left hand side, we're going to have 100 minus x for the right hand side. And so what would the dimensions of the triangle and the square be? Well, the triangle sides are going to be x over 3, x over 3, and x over 3 as an equilateral triangle. And the square is going to be 100 minus x over 4 by 100 minus x over 4. Now it's easy to figure out an expression for the area of the square in terms of x. But let's think about what the area of an equilateral triangle might be as a function of the length of its sides. So let me do a little bit of an aside right over here. So let's say we have an equilateral triangle. Just like that. And its sides are length s, s, and s. Now we know that the area of a triangle is 1/2 times the base times the height. So in this case, the height we could consider to be altitude, if we were to drop an altitude just like this. This length right over here, this is the height. And this would be perpendicular, just like that. So our area is going to be equal to one half times our base is s. 1/2 times s times whatever our height is, times our height. Now how can we express h as a function of s? Well, to do that we just have to remind ourselves that what we've drawn over here is a right triangle. It's the left half of this equilateral triangle. And we know what this bottom side of this right triangle is. This altitude splits this side exactly into two. So this right over here has length s over 2. So to figure out what h is, we could just use the Pythagorean theorem. We would have h squared plus s over 2 squared plus s over 2 squared is going to be equal to the hypotenuse squared, is going to be equal to s squared. So you would get h squared plus s squared over 4 is equal to s squared. Subtract s squared over 4 from both sides, and you get h squared is equal s squared minus s squared over 4. Now, to do this I could call it s squared. I could call this 4s squared over 4, just to be able to have a common denominator. And 4s squared minus s squared over 4 is going to be equal to 3s squared over 4. So we get h squared is equal to 3s squared over 4. Now we can take the principal root of both sides, and we get h is equal to the square root of 3 times s over 2. So now we can just substitute back right over here and we get our area. Our area is equal to 1/2 s times h. Well h is this business. So it's s times this. So it's 1/2 times s times the square root of 3s over 2, which is going to be equal to s times s is s squared. So this is going to be square root of 3 s squared over 2 times 2 over 4. So this is the area of an equilateral triangle as the function of the length of its sides. So what's the area of this business going to be? So the area of our little equilateral triangle-- let me write a combined area. And let me do that in a neutral color. So let me do that in white. So the combined area, I'll write it A sub c is going to be equal to the area of my triangle A sub t plus the area of my square. Well, the area of my triangle, we know what it's going to be. It's going to be square root of 3 times the length of a side squared divided by 4. So it's going to be square root of 3. Let me do that in that same yellow color. It's going to be-- make sure I switch colors. It's going to be square root of 3 over 4 times a side squared, times x over 3 squared. All I did is the length of a side is x over 3. We already know what the area is. It's the square root of 3 over 4 times the length of a side squared. And then the area of this square right over here, the area of the square is just going to be 100 minus x over 4 squared. So our area, our combined area-- and maybe I can write it like this-- our combined area as a function of where we make the cut is all of this business right over here. And this is what we need to minimize. So we need to minimize that right over there. And I will do that in the next video.