An ideal op-amp is defined to have:
1) infinite input resistance: Rin -> infinity
2) zero output resistance: Ro -> 0
3) infinite gain: G -> infinity
[tex]V_{in} = V_{+} - V_{-}[/tex] And [tex]V_{out} = G\cdot V_{in}[/tex]
This is the starting place. Every op-amp circuit can solved by applying these conditions.
Of course, in reality nothing is ideal. A real op-amp integrated circuit is a non-ideal approximation of an ideal op-amp. As an example, it may have parameters like Rin = 100K, Rout = 4 or G = 20,000.
But solving circuits such as the non-inverting amp above, it kind of assumes that you have to use the ideal op-amp model, unless it's stated otherwise and you are given op-amp parameters.
So what's really going with the non-inverting op-amp circuit, and why has the ideal op-amp been defined the way it is?
The answer to that comes from control theory which is a huge subject that deals with feedback systems. In such a system, some of the output is fed back to the input of some element with defined input and output.
In this case, the defined element is the op-amp. You can see, the voltage divider formed by R1 and R2 samples the output voltage and feeds a fraction of it to the input terminal V_.
From a voltage divider set up,
[tex]V_{-} = V_{out} \cdot \frac{R_1}{R_1+R_2}[/tex] And [tex]V_{+} = V_{in}[/tex]
As to not confuse those variables used in the schematics above that use V_in in two different places for different things.
Let's call
[tex]V_{d} = V_{+} - V_{-}[/tex]
[tex]V_{out} = G\cdot V_{d}[/tex]
Having established this, you can follow this calculations to obtain the gain of the amplifier which is defined as
[tex]A = \frac{v_{out}}{v_{in}}[/tex] and it can be seen that as you take the limit of the op-amp gain G to infinity things nicely cancel and simplify where A converges to a finite value.
This is the long way of solving the problem, but it gives insight into what really happens. There are also shortcuts you can do that are derived from the op-amp definitions and control theory. From condition 1, infinite input resistance will block input currents so that I_ = 0 and I+ = 0. And from control theory under negative feedback conditions, the output will try to cancel the input, so that v_d = 0.
With
[tex]V_d = 0[/tex]
It follows that [tex]V_{+} = V_{-}[/tex]
And [tex]V_{in}=V_{+}=V_{-}[/tex]
By applying KCL, Kirchhoff's Current Law at V_:
[tex]\frac{V_{in}}{R_1} = \frac{V_{out} - V_{in}}{R_2} + I_{-}[/tex]
With I_ = 0, if you carry this out, the gain comes out to:
[tex]A = 1+\frac{R_2}{R_1}[/tex]
The shortcut doesn't always work with op-amp circuits, so you have to be careful. But just in case, long way will always work.